Gentoo Archives: gentoo-laptop

From: Simon Walls <simonwalls@×××××.com>
To: gentoo-laptop@l.g.o
Subject: Re: [gentoo-laptop] Grub causing kernel panic? - ThinkPad T40 - new install
Date: Fri, 03 Nov 2006 16:14:11
Message-Id: 200611032308.38875.simonwalls@gmail.com
In Reply to: [gentoo-laptop] Grub causing kernel panic? - ThinkPad T40 - new install by Greg Morin
1 Hello,
2
3 I also have had this problem. The cause was I didn't have the driver for my
4 hard drive compiled into the kernel.
5 The solution for me was:
6
7 #cd /usr/src/linux
8 #make menuconfig
9
10 Device Drivers ---->
11 ATA/ATAPI/MFM/RLL support --->
12 <*> ATI IXP chipset IDE support
13
14 The driver must be compiled into the kernel and not as a module.
15 You could also look under File Systems ---> and check that all neccessary
16 file systems are selected.
17
18 Simon Walls
19
20 On Friday 03 November 2006 15:01, Greg Morin wrote:
21 > Good day,
22 >
23 > I've installed (several times) on a ThinkPad T-40, trying both manual
24 > kernel config and genkernel. I followed the online manual explicitly (I
25 > think). The machine is currently loaded with the manual config. Either way,
26 > the results are similar.
27 >
28 > Grub shows the two boot options, then begins loading the OS.
29 >
30 > The machine begins to boot, starts loading modules, then kernel panics:
31 > VFS:Cannot open root device "hda3" or unknown-block(0,0)
32 > Please append a correct "root=" boot option
33 > Kernel panic - not syncing: VFS: Unable to mount root fs on
34 > unknown-block(0,0)
35 >
36 > There is a single fixed disk:
37 > Device Boot Size System Filesystem Mount
38 > point
39 > ======= ==== ===== ========= ========= =========
40 > /dev/hda1 * 32M Linux ext2
41 > /boot
42 > /dev/hda2 3G Linux swap none
43 > none /dev/hda3 ~71G Linux ext3
44 > /
45 >
46 > I am able to mount and use these partitions after booting from CD.
47 > /etc/fstab (/mnt/gentoo/etc/fstab when booted from disk) looks good.
48 >
49 > Filesystems ext2 and ext3 are compiled into the kernel.
50 >
51 > Grub details:
52 > device.map
53 > (hd0) /dev/hda
54 > grub.conf
55 > default 0
56 > timeout 5
57 > splashimage=(hd0,0)/boot/grub/spash.xpm.gz
58 >
59 > title=Gentoo Linux 2.6.17-r8
60 > root (hd0,0)
61 > kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/hda3
62 >
63 > title=Gentoo Linux 2.6.17-r8 (rescue)
64 > root(hd0,0)
65 > kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/hda3 init=/bin/bb
66 >
67 > I used grub-install /dev/hda with no errors. I've played around with the
68 > "root=" entry, but to no avail - not sure I'm understanding this one...
69 >
70 > The kernel image appears to be valid, with no typos in filename/grub
71 > entries.
72 >
73 > Any ideas? Seems that the kernel begins to load, but can't mount the root
74 > filesystem?
75 >
76 > Thank-you for any pointers.
77 --
78 gentoo-laptop@g.o mailing list