LinuxSir.cn,穿越时空的Linuxsir!

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

移动硬盘的盘符……

[复制链接]
发表于 2006-4-29 22:06:56 | 显示全部楼层 |阅读模式
3块移动硬盘,都是USB2.0,每次启动3块硬盘sda、sdb、sdc轮班倒,汗……因为fstab里面是写好的/dev/sdx .... 所以经常挂载失败……

怎么让/dev/sdx对应唯一的移动硬盘呢?
发表于 2006-4-29 22:38:30 | 显示全部楼层
       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.


fstab 的,不过不一定适用。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-30 11:28:44 | 显示全部楼层
thx~^^

我试过用LABEL=来写fstab,更改fstab后再mount -a可以挂载,但是重启之后在挂载分区的时候死住了,改回来又好了,我再去试试用UUID= ……

不过FC5的fstab里面,根分区的挂载就是用“LABEL=/”,但是我硬盘上有3个linux,应该有三个LABEL是“/“的分区,不知道它是怎么识别出来的……
回复 支持 反对

使用道具 举报

发表于 2006-4-30 16:34:08 | 显示全部楼层
Label=/ 应该是启动起来的内核所在的分区。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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