1 |
On 2011-10-03, Paul Hartman <paul.hartman+gentoo@×××××.com> wrote: |
2 |
> On Mon, Oct 3, 2011 at 2:01 PM, Florian Philipp <lists@×××××××××××.net> wrote: |
3 |
>> Am 03.10.2011 20:40, schrieb Grant Edwards: |
4 |
>>> Just recently I've run in to problems because my hard drives are not |
5 |
>>> detected in a predictable order, so my fstab that mount /dev/sdb1 and |
6 |
>>> /dev/sdc1 sometimes result in directory trees in the wrong places |
7 |
>>> (/dev/sda seems consistent, but I don't know why). |
8 |
>>> |
9 |
>>> What's the recommended way to fix this? |
10 |
>>> |
11 |
>> |
12 |
>> Mount by UUID or label. In /etc/fstab, specify UUID=foo or LABEL=bar |
13 |
>> instead of /dev/sdx1. You can current UUIDs and labels with `ls -l |
14 |
>> /dev/disk/by-uuid` and `ls -l /dev/disk/by-label`, respectively. |
15 |
> |
16 |
> Or another way I think is easier: run /sbin/blkid which will tell you |
17 |
> all of the info at once, such as: |
18 |
> |
19 |
> /dev/sda1: LABEL="boot" UUID="a3193af5-35e1-4908-bfbd-928e8841ead3" TYPE="ext2" |
20 |
> /dev/sda2: LABEL="root" UUID="feaa6b06-5935-491d-9aef-fe1415c380b6" TYPE="ext4" |
21 |
> /dev/sda3: LABEL="swap" UUID="da4437c5-6f19-409a-a71a-ee63be6ef2e5" TYPE="swap" |
22 |
> /dev/sda4: LABEL="home" UUID="145fb951-6f01-4cff-b221-278b72c0604f" TYPE="ext4" |
23 |
> |
24 |
> It also tells you the RAID member uuid and sub_uuid for your RAID |
25 |
> partitions, and more (man blkid). |
26 |
|
27 |
That's one I need to remember! |
28 |
|
29 |
-- |
30 |
Grant Edwards grant.b.edwards Yow! I want a WESSON OIL |
31 |
at lease!! |
32 |
gmail.com |