1 |
On 3/1/2011, at 6:17pm, Nikos Chantziaras wrote: |
2 |
> On 01/03/2011 07:43 PM, Jörg Schaible wrote: |
3 |
>> ... |
4 |
>> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device |
5 |
>> changes. With 2.6.35 and below it is alway /dev/sda3, with the new kernel it |
6 |
>> seems that anything that is internally connected with USB is assigned a |
7 |
>> device first. ... |
8 |
> |
9 |
> This has been solved long ago: Label your filesystems and mount them by label. For example, don't put "/dev/sda3" in your fstab, but label that filesystem with a name like "root_fs" and use "/dev/disk/by-label/root_fs" in fstab. |
10 |
> |
11 |
> Ext2/3/4 filesystem can be labeled with the "e2label" tool. For example: |
12 |
> |
13 |
> e2label /dev/sda3 root_fs |
14 |
> |
15 |
> After that, modify your fstab accordingly. |
16 |
|
17 |
I believe this is the supported way to use labels: |
18 |
|
19 |
$ grep -v -e "^#" -e "^$" /etc/fstab |
20 |
LABEL=boot /boot ext2 noauto,noatime 1 2 |
21 |
LABEL=/ / ext4 noatime 0 1 |
22 |
LABEL=swap none swap sw 0 0 |
23 |
/dev/cdrom /mnt/cdrom auto noauto,ro,users 0 0 |
24 |
LABEL=space /mnt/space ext4 noatime 0 3 |
25 |
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
26 |
$ |
27 |
|
28 |
Stroller. |