1 |
Apparently, though unproven, at 21:36 on Monday 03 January 2011, Jörg Schaible |
2 |
did opine thusly: |
3 |
|
4 |
> Nikos Chantziaras wrote: |
5 |
> > On 01/03/2011 07:43 PM, Jörg Schaible wrote: |
6 |
> >> Hi, |
7 |
> >> |
8 |
> >> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot device |
9 |
> >> changes. With 2.6.35 and below it is alway /dev/sda3, with the new |
10 |
> >> kernel it seems that anything that is internally connected with USB is |
11 |
> >> assigned a device first. Since my computer has an internal media bay |
12 |
> >> (and my monitor has such a thing also) the first HD moves - it I take |
13 |
> >> care it is now /dev/sde3. However, if I forget to switch on the monitor |
14 |
> >> and do this later or if an USB stick is already plugged in at boot |
15 |
> >> time, the HD gets a different device number again. |
16 |
> >> |
17 |
> >> Can somebody else confirm such a behaviour with the 2.6.36 kernel and |
18 |
> >> how can this brought back to normal operation? |
19 |
> > |
20 |
> > This has been solved long ago: Label your filesystems and mount them by |
21 |
> > label. |
22 |
> |
23 |
> I did this long ago, therefore I can switch between the old and new kernel |
24 |
> easily. |
25 |
> |
26 |
> > For example, don't put "/dev/sda3" in your fstab, but label that |
27 |
> > filesystem with a name like "root_fs" and use |
28 |
> > "/dev/disk/by-label/root_fs" in fstab. |
29 |
> > |
30 |
> > Ext2/3/4 filesystem can be labeled with the "e2label" tool. For example: |
31 |
> > e2label /dev/sda3 root_fs |
32 |
> > |
33 |
> > After that, modify your fstab accordingly. |
34 |
> |
35 |
> And how does this help the kernel to find the root device where /etc/fstab |
36 |
> is located ? |
37 |
|
38 |
Does |
39 |
|
40 |
boot=LABEL=<boot_device_label> |
41 |
|
42 |
in grub config work for you? |
43 |
|
44 |
-- |
45 |
alan dot mckinnon at gmail dot com |