Gentoo Archives: gentoo-user

From: Jo Are Rosland <joare@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Boot situation
Date: Wed, 12 Sep 2007 19:50:28
Message-Id: 20070912190500.GA13209@pogostick.net
In Reply to: Re: [gentoo-user] Boot situation by Colleen Beamer
1 On 12.09, Colleen Beamer wrote:
2 > Block dev sda3 is not a valid root device
3 > The root block device is unspecified or not detected.
4
5 Does it say anything beyond that? I'd expect it to continue with:
6
7 Please specify a device to boot, or "shell" for a shell..
8 boot() ::
9
10 The previous error message as well as this prompt are output
11 by the init script in your initrd, created by genkernel. At
12 the "boot() :: " prompt you should be able to enter "shell"
13 as a value, in order to enter a shell.
14
15 Could you try this, then do an "ls" on the "/dev" directory
16 to verify what devices have been created at this stage? Maybe
17 you have an sdb in addition to the sda, or maybe it's called
18 hda? (The former could happen if you have an external USB
19 drive plugged in, the latter if you've configured the wrong
20 driver for your disk controller). Of course, there's also
21 the possiblity that you don't see any obvious disk devices
22 at this stage. If that's the case, you haven't configured
23 your kernel with any device drivers that can handle your
24 drive, and need to have another look at the kernel config.
25
26 Also, while running the livecd, if you know which device is
27 the root device as found by the livecd, you could label it,
28 then use the label when naming the root device instead of
29 the device name. Labels are more stable than device names...
30
31 To label a file system on a device if you're using ext2/ext3,
32 use the command "e2label -L <label> <device>", eg:
33
34 e2label -L ROOT /dev/sda3
35
36 You should then change grub.conf to read:
37
38 real_root=LABEL=ROOT
39
40 instead of "real_root=/dev/sda3"
41
42 And last, specify LABEL=ROOT for root device in /etc/fstab
43 on the root device as well:
44
45 LABEL=ROOT / ext2 defaults 0 1
46
47 ... or something like that.
48
49 --
50 Jo.
51 --
52 gentoo-user@g.o mailing list