ITPub博客

首页 > 应用开发 > IT综合 > label的问题(转)

label的问题(转)

原创 IT综合 作者:tigeerfish 时间:2007-08-08 10:29:23 0 删除 编辑
label的问题(转)[@more@]

启动设备有两种表示方法

一种是:

root=/dev/hd[x][n]

这个是直接指示;

另外一种是:

root=LABEL={LABEL}

这个解析为

root= LABEL={LABEL}

你的就是这种情况

说明是根据卷标找到根设备。

代码:

[root@hostname home]# tune2fs -l /dev/hda4

tune2fs 1.32 (09-Nov-2002)

Filesystem volume name: /

......

这里看到我的hda4的LABEL是“/”

代码:

[root@hostname home]# cat /etc/grub.conf | grep root

# root (hd0,3)

# kernel /boot/vmlinuz-version ro root=/dev/hda4

root (hd0,3)

kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

在grub的注释中已经说明了root是hda4,也就是root=LABEL=/的作用。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8227599/viewspace-934396/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 配额(转)
请登录后发表评论 登录
全部评论
  • 博文量
    387
  • 访问量
    870251