On 3/1/2011, at 6:17pm, Nikos Chantziaras wrote: > On 01/03/2011 07:43 PM, Jörg Schaible wrote: >> ... >> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device >> changes. With 2.6.35 and below it is alway /dev/sda3, with the new kernel it >> seems that anything that is internally connected with USB is assigned a >> device first. ... > > 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. > > Ext2/3/4 filesystem can be labeled with the "e2label" tool. For example: > > e2label /dev/sda3 root_fs > > After that, modify your fstab accordingly.
I believe this is the supported way to use labels: $ grep -v -e "^#" -e "^$" /etc/fstab LABEL=boot /boot ext2 noauto,noatime 1 2 LABEL=/ / ext4 noatime 0 1 LABEL=swap none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro,users 0 0 LABEL=space /mnt/space ext4 noatime 0 3 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 $ Stroller.