Gentoo Archives: gentoo-user

From: "Jörg Schaible" <joerg.schaible@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Re: Changing boot device with 2.6.36
Date: Tue, 04 Jan 2011 09:51:37
Message-Id: ifuq27$vep$2@dough.gmane.org
In Reply to: Re: [gentoo-user] Re: Changing boot device with 2.6.36 by Alan McKinnon
1 Hi Alan,
2
3 Alan McKinnon wrote:
4
5 > Apparently, though unproven, at 21:36 on Monday 03 January 2011, Jörg
6 > Schaible did opine thusly:
7 >
8 >> Nikos Chantziaras wrote:
9 >> > On 01/03/2011 07:43 PM, Jörg Schaible wrote:
10 >> >> Hi,
11 >> >>
12 >> >> starting with the 2.6.36-r5 kernel of the Gentoo sources my boot
13 >> >> device changes. With 2.6.35 and below it is alway /dev/sda3, with the
14 >> >> new kernel it seems that anything that is internally connected with
15 >> >> USB is assigned a device first. Since my computer has an internal
16 >> >> media bay (and my monitor has such a thing also) the first HD moves -
17 >> >> it I take care it is now /dev/sde3. However, if I forget to switch on
18 >> >> the monitor and do this later or if an USB stick is already plugged in
19 >> >> at boot time, the HD gets a different device number again.
20 >> >>
21 >> >> Can somebody else confirm such a behaviour with the 2.6.36 kernel and
22 >> >> how can this brought back to normal operation?
23 >> >
24 >> > This has been solved long ago: Label your filesystems and mount them by
25 >> > label.
26 >>
27 >> I did this long ago, therefore I can switch between the old and new
28 >> kernel easily.
29 >>
30 >> > For example, don't put "/dev/sda3" in your fstab, but label that
31 >> > filesystem with a name like "root_fs" and use
32 >> > "/dev/disk/by-label/root_fs" in fstab.
33 >> >
34 >> > Ext2/3/4 filesystem can be labeled with the "e2label" tool. For
35 >> > example:
36 >> > e2label /dev/sda3 root_fs
37 >> >
38 >> > After that, modify your fstab accordingly.
39 >>
40 >> And how does this help the kernel to find the root device where
41 >> /etc/fstab is located ?
42 >
43 > Does
44 >
45 > boot=LABEL=<boot_device_label>
46 >
47 > in grub config work for you?
48
49 I hoped so, but actually no. Grub complains at boot time not finding the
50 root device. Is this available in the grub-0.97 series at all?
51
52 - Jörg

Replies

Subject Author
Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36 Stroller <stroller@××××××××××××××××××.uk>
Re: [gentoo-user] Re: Re: Changing boot device with 2.6.36 Andrea Conti <alyf@××××.net>