LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 806|回复: 2

/etc/fstab 問題

[复制链接]
发表于 2003-9-28 16:35:09 | 显示全部楼层 |阅读模式
想請問在該檔案上有一項是這樣的

LABLE=/       /        ext3      defaults       1 1


那 LABLE 是甚麼用的偶將甚改成

/dev/hda3     /        ext3      defaults       1 1

也能成功的開機.不明所以呢...@@!
所以想請問各位大大...^^
发表于 2003-9-28 16:59:26 | 显示全部楼层
man fstab:
Instead of giving the device explicitly, one may indicate the (ext2 or xfs) filesystem that is to be mounted by its UUID or volume label (cf. e2label(8) or xfs_admin(8)), writing LABEL=<label> or UUID=<uuid>, e.g., `LABEL=Boot' or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'. This will make the system more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem volume label.
有兴趣的话,可以再看看e2label
 楼主| 发表于 2003-9-30 15:43:51 | 显示全部楼层
那請問那些 label 名稱是在開機時加在 kernel 後的參數嗎 ?
因為我在 lilo.conf 內看到一行是
append="root=LABEL=/"
那就是 kernel 自動決定那個是 root 而無需只定一個固定的 dev/XXX 嗎?
那它跟據甚麼?頉Q定的呢...偶英文不大好所以請問各位大大一下.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表