Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Grub boots to command prompt
Date: Thu, 24 Dec 2009 16:06:07
Message-Id: 200912241752.08379.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Grub boots to command prompt by Daniel D Jones
1 On Thursday 24 December 2009 15:52:37 Daniel D Jones wrote:
2 > Just did a stage 3 install following a HD crash on a new HD. The initial
3 > install went without issue and I booted from the HD normally. I then went
4 > through and installed a bunch of packages - xorg, kde, etc. I installed
5 > genkernel, compiled a custom kernel, and updated /boot/grub/menu.lst.
6 >
7 > Upon rebooting, I ended up at a grub command line. I can setup the hard
8 > drive without errors:
9 >
10 > grub> root (hd0,0)
11 > Filesystem type is ext2fs, partition type 0x83
12 >
13 > grub> setup (hd0)
14 > Checking if "/boot/grub/stage1" exists... yes
15 > Checking if "/boot/grub/stage2" exists... yes
16 > Checking if "/boot/grub/e2fs_stage1_5" exists... yes
17 > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are
18 > embedded. succeeded
19 > Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p
20 > (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
21 > Done.
22 >
23 > No errors, says everything's good. Reboot and I'm right back at the
24 > command line.
25 >
26 > I can do
27 >
28 > root (hd0,0)
29 > kernel = /vmlinuz-blah
30 > boot
31 >
32 > and boot into the system, so I know the system and hd0,0 is bootable. (I'm
33 > writing this message on it after doing the above.)
34 >
35 > There are three hard drives in the system. I've verified that the BIOS is
36 > set to boot from the first hard drive, which grub sees as hd0. I've also,
37 > just to test it out, setup grub on hd1 and hd2, with hd0,0 set as root. I
38 ^^^^^^^^^^^^^^^^^^
39 > still get the same thing.
40
41 Your next paragraph indicates that (hd0,0) is not in fact root, but (what will
42 eventually be) /boot.
43
44 Your root is likely to be (hd0,2)
45
46
47 >
48 > Grub package version 0.97-r9 installed. /boot is mounted to sda1, an ext2
49 > partition. / is mounted to sda3, an ext3 partition.
50 >
51 > I'm not seeing any error messages on bootup or in grub. I have no idea
52 > where to go with this and so far, web searches haven't been helpful.
53 > Anyone have a clue?
54 >
55
56 --
57 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Grub boots to command prompt Daniel D Jones <ddjones@××××××××××××.org>