On Mon, Oct 3, 2011 at 2:40 PM, Grant Edwards <[email protected]> wrote: > Just recently I've run in to problems because my hard drives are not > detected in a predictable order, so my fstab that mount /dev/sdb1 and > /dev/sdc1 sometimes result in directory trees in the wrong places > (/dev/sda seems consistent, but I don't know why). > > What's the recommended way to fix this?
Mount by volume name or UUID. For example, from fstab: UUID=bddee12c-0047-4b4b-b1d2-9e137a9a8915 / auto noatime 0 1 UUID=857d7723-9dbf-4222-ac28-e05b87b41997 none swap sw 0 0 UUID=8d3648cf-5260-4064-b6a5-50df42acb3d8 /mnt/prevhome auto noatime 0 2 UUID=d7c17623-255b-4313-b50b-99f0f79a0681 /home auto noatime 0 2 UUID=33cc682d-0dd4-4c2b-bf37-876e9f8d3ef4 /boot auto noatime 0 2 To find the UUID: shortcircuit:4@serenity/dev/disk/by-uuid Mon Oct 03 02:49 PM !509 #9 j0 ?0 $ ls -l total 0 lrwxrwxrwx 1 root root 10 Sep 24 00:11 33cc682d-0dd4-4c2b-bf37-876e9f8d3ef4 -> ../../sda1 lrwxrwxrwx 1 root root 10 Sep 24 00:11 857d7723-9dbf-4222-ac28-e05b87b41997 -> ../../sda2 lrwxrwxrwx 1 root root 10 Sep 24 00:11 8d3648cf-5260-4064-b6a5-50df42acb3d8 -> ../../sda3 lrwxrwxrwx 1 root root 10 Sep 24 00:11 bddee12c-0047-4b4b-b1d2-9e137a9a8915 -> ../../sda4 lrwxrwxrwx 1 root root 10 Sep 24 00:11 d7c17623-255b-4313-b50b-99f0f79a0681 -> ../../dm-0 -- :wq

