View previous topic :: View next topic |
Author |
Message |
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Tue Jul 23, 2002 3:04 am Post subject: Kernel panic & kernel compile question |
|
|
Hi, I'm having some trouble booting my new Gentoo system. I get the following error:
VFS: Cannot open device "hda3" or 03:03
please append a correct "root=" boot option
kernel panic: VFS: Unable to mount root ds on 03:03
I have an MSI motherboard with a KT266A chipset and onboard ATA100. My partitions are setup as follows:
/dev/hda1, /boot, ext3
/dev/hda2, swap
/dev/hda3, /, xfs
/dev/hda4, /home, xfs
As far as I can tell I've setup Grub correctly, my /etc/fstab looks right, and I think I've got all the necessary stuff compiled into my kernel ( more later ). I've tried a few things I've seen in other posts in this forum, but so far nothing has worked.
Which brings me to the other part of my question. I'm not sure that my kernel is building correctly. It seems to just reach a certain point and stop, no error messages or anything, but nothing that indicates a successful build either. The last 3 lines it prints are:
mkdir -p pcmcia: \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.28-xfs-kds3; fi
Is that a normal way for it to stop? I keep thinking it has stopped without finishing what it was doing. I have tried running each of the make steps seperately, after the make bzImage it tells me my image is too big to fit on a floppy but no other errors, make modules seems to do quite a lot, and then print out something like "nothing to do for 'modules'", but it was obviously doing something. And then make modules_install ends up like I typed above. I really have no idea if this is normal or if something is wrong at this point, I've built kernels before, but not for some time, and for some reason this just doesn't seem right.
Anyway, can somebody tell me whether that is normal termination for a kernel build, and if so, then what might be causing my kernel panic?
Thanks,
Karl |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jul 23, 2002 4:27 am Post subject: |
|
|
Boot up the install CD, mount your /boot partition, and crack open grub/menu.lst. I think you wrote "root=hda3"; if so, change this to "root=/dev/hda3" and you should be all set.
Be sure to umount before rebooting... _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Wed Jul 24, 2002 1:16 am Post subject: |
|
|
I'm still having the problem, my menu.lst is as follows:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel (hd0,0)/bzImage root=/dev/hda3
the "kernel (hd0,0)/bzImage...." used to say "kernel /boot/bzImage...." but I changed it after reading another post somewhere in this forum. It hasn't worked either way.
Any other suggestions? |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Wed Jul 24, 2002 1:28 am Post subject: |
|
|
Ok, more information that might make a difference. I was brousing around in /lib/modules/2.4.18..../kernel/fs, and I found these subdirectories:
fat, msdos, smbfs, vfat
should I also have some for ext2/3 and xfs? those are the filesystems I am using ( xfs on my root partition ). |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Jul 24, 2002 1:35 am Post subject: |
|
|
kds wrote: | should I also have some for ext2/3 and xfs? those are the filesystems I am using ( xfs on my root partition ). |
No, not if you have compiled them directly into the kernel ("*" instead of "M") - they're in the vmlinux or bzImage file. And it is tricky to have the stuff needed to mount your root as modules - you are better off compiling it in. It can be done using initrd, but it's a hassle. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Wed Jul 24, 2002 1:45 am Post subject: |
|
|
Oh yeah, I remember now that I compiled those in. Well, that puts me at a loss again. Maybe I'll try installing LILO instead of Grub, that seemed to fix some peoples booting problems. |
|
Back to top |
|
|
andee n00b
Joined: 04 Jun 2002 Posts: 41
|
Posted: Wed Jul 24, 2002 2:39 am Post subject: |
|
|
Look at those two lines:
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
kernel (hd0,0)/bzImage root=/dev/hda3
The grub directory and bzImage are in the same directory, aren't they?
Try to put it this way:
kernel (hd0,0)/boot/bzImage root=/dev/hda3 |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Wed Jul 24, 2002 3:09 am Post subject: |
|
|
ahhh, tried it. still no go.
thanks though. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Jul 24, 2002 4:43 am Post subject: Re: Kernel panic & kernel compile question |
|
|
Are you still getting the exact same error message:
kds wrote: | VFS: Cannot open device "hda3" or 03:03 |
BTW, there's a symlink from /boot/boot to /boot, so putting in or leaving out /boot shouldn't matter. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Wed Jul 24, 2002 1:41 pm Post subject: |
|
|
yes, I'm still getting the same error. nothing so far has altered that. |
|
Back to top |
|
|
mrchuckles Tux's lil' helper
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Wed Jul 24, 2002 3:41 pm Post subject: |
|
|
Quote: | Is that a normal way for it to stop? I keep thinking it has stopped without finishing what it was doing. I have tried running each of the make steps seperately, after the make bzImage it tells me my image is too big to fit on a floppy but no other errors, make modules seems to do quite a lot, and then print out something like "nothing to do for 'modules'", but it was obviously doing something. And then make modules_install ends up like I typed above. I really have no idea if this is normal or if something is wrong at this point, I've built kernels before, but not for some time, and for some reason this just doesn't seem right. |
Yeah, that's how it should go. Did you then copy your updated kernel to a MOUNTED boot directory?
Code: | mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot
umount /boot
shutdown -r now |
It sounds like the kernel you're trying to boot doesn't have XFS support built in, because it can't open the root file system. So I'm wondering if you have a stock kernel installed w/out XFS support. |
|
Back to top |
|
|
kds n00b
Joined: 20 Jul 2002 Posts: 9
|
Posted: Thu Jul 25, 2002 12:56 am Post subject: |
|
|
Thanks to all of you for your suggestions. I finally got it working. Turns out that I just needed to have root=/dev/hdc3, rather than root=/dev/hda3. I am used to seeing my first ATA drive showing up as hda. I had posted a question about this earlier, and I thought the reply indicated that my drive showing up as /dev/hdc was a temporary thing that would switch back to /dev/hda when I booted from HD. I must have misunderstood.
Anyway, I'm able to boot now, Yay!! so thanks again. |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Thu Jul 25, 2002 6:38 am Post subject: |
|
|
Trust us, your first ATA drive is /dev/hda.
What you've got is the hard drive on your secondary channel - master, but on the secondary channel.
This make absolutely no difference whatsoever, I'm just defending the kernel's honor.
~Mac~ |
|
Back to top |
|
|
|