在运行Ubuntu12.04LTS的个人电脑中,我安装了三个SATA硬盘驱动器。其中两台安装在冷却器附近。我想在物理上切换两个驱动器(一个不在风扇附近,应该移到风扇附近)。Ubunutu会怎么处理这个开关?fstab中的设备名称,它们是否以任何方式依赖于它们在我的主板上连接到的sata端口?
编辑:
这是我的.
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=f04e6038-4412-46c4-b58d-67bfe3f8eddd / ext4 errors=remount-ro 0 1
# /Volumes/Backup was on /dev/sdb1 during installation
UUID=dc25bafb-adbc-4a65-845c-02c9253a795e /Volumes/Backup ext4 defaults 0 2
# /Volumes/Storage was on /dev/sdc1 during installation
UUID=74867f3e-acda-4efc-a6aa-7d21484d64a4 /Volumes/Storage ext4 defaults 0 2
/dev/sdc2 /Volumes/Storage ext4 defaults 0 0
#/dev/sdc1 /media/sdc1 swap sw 0 0
/dev/sdc1 none swap defaults 0 0 编辑(根据注释更改/etc/ EDIT ):
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
UUID=f04e6038-4412-46c4-b58d-67bfe3f8eddd / ext4 errors=remount-ro 0 1
UUID=dc25bafb-adbc-4a65-845c-02c9253a795e /Volumes/Backup ext4 defaults 0 2
UUID=74867f3e-acda-4efc-a6aa-7d21484d64a4 /Volumes/Storage ext4 defaults 0 2
UUID=88ee73e8-7556-40fa-b696-fbc15161036b none swap defaults 0 0 发布于 2012-09-18 13:30:25
当您重新排序驱动器时,UUID不会更改。但是,您的sdc?条目可能会更改。最好的做法是不要依赖sd?编号。最好使用UUID或标签来处理分区。
作为根:
blkid -o list -c /dev/null如果文件系统有UUID或标签,则更改使用/dev/sd?语法的条目(在您的例子中为/dev/sdc1)。使用blkid输出的值。
UUID=24467f3e-bcda-5efc-a6aa-7d21384d64a4
LABEL=swaphttps://unix.stackexchange.com/questions/48514
复制相似问题