mount the drives with their UUID's rather than the drive names..
Code:
mhepler@it-etch:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2008-11-24 04:02 24b1bd67-0de9-4782-9644-a088a434c562 -> ../../sda6
lrwxrwxrwx 1 root root 10 2008-12-14 23:47 55D123D9E79ABF54 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2008-11-24 04:02 70165487-7f4f-4a6c-9332-07d907b63976 -> ../../sda1
old /etc/fstab
(backup this file before making changes)
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda6 /home ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb1 /media/usbdisk auto user,noauto 0 0
would become
new /etc/fstab file using uuid's for consistent drive mapping
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
uuid=70165487-7f4f-4a6c-9332-07d907b63976 / ext3 defaults,errors=remount-ro 0 1
uuid=24b1bd67-0de9-4782-9644-a088a434c562 /home ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
uuid=55D123D9E79ABF54 /media/usbdisk auto user,noauto 0 0
http://linux.byexamples.com/archives...tab-with-uuid/