Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Hard drives not detected in repeatable order.
Date: Mon, 03 Oct 2011 18:59:23
Message-Id: CA+czFiBsdmX-ruKo4kEUmJpCrgCUaf4VyjN=9BudZheQfSxvUA@mail.gmail.com
In Reply to: [gentoo-user] Hard drives not detected in repeatable order. by Grant Edwards
1 On Mon, Oct 3, 2011 at 2:40 PM, Grant Edwards <grant.b.edwards@×××××.com> wrote:
2 > Just recently I've run in to problems because my hard drives are not
3 > detected in a predictable order, so my fstab that mount /dev/sdb1 and
4 > /dev/sdc1 sometimes result in directory trees in the wrong places
5 > (/dev/sda seems consistent, but I don't know why).
6 >
7 > What's the recommended way to fix this?
8
9 Mount by volume name or UUID. For example, from fstab:
10
11 UUID=bddee12c-0047-4b4b-b1d2-9e137a9a8915 / auto noatime 0 1
12 UUID=857d7723-9dbf-4222-ac28-e05b87b41997 none swap sw 0 0
13 UUID=8d3648cf-5260-4064-b6a5-50df42acb3d8 /mnt/prevhome auto noatime 0 2
14 UUID=d7c17623-255b-4313-b50b-99f0f79a0681 /home auto noatime 0 2
15 UUID=33cc682d-0dd4-4c2b-bf37-876e9f8d3ef4 /boot auto noatime 0 2
16
17
18 To find the UUID:
19
20 shortcircuit:4@serenity/dev/disk/by-uuid
21 Mon Oct 03 02:49 PM
22 !509 #9 j0 ?0 $ ls -l
23 total 0
24 lrwxrwxrwx 1 root root 10 Sep 24 00:11
25 33cc682d-0dd4-4c2b-bf37-876e9f8d3ef4 -> ../../sda1
26 lrwxrwxrwx 1 root root 10 Sep 24 00:11
27 857d7723-9dbf-4222-ac28-e05b87b41997 -> ../../sda2
28 lrwxrwxrwx 1 root root 10 Sep 24 00:11
29 8d3648cf-5260-4064-b6a5-50df42acb3d8 -> ../../sda3
30 lrwxrwxrwx 1 root root 10 Sep 24 00:11
31 bddee12c-0047-4b4b-b1d2-9e137a9a8915 -> ../../sda4
32 lrwxrwxrwx 1 root root 10 Sep 24 00:11
33 d7c17623-255b-4313-b50b-99f0f79a0681 -> ../../dm-0
34
35 --
36 :wq