View previous topic :: View next topic |
Author |
Message |
Shiriki n00b
Joined: 17 Oct 2007 Posts: 8
|
Posted: Wed Oct 17, 2007 8:35 pm Post subject: [SOLVED] Kernel panic - not syncing: VFS: Unable to mount... |
|
|
Hi there,
Just to get things clear: Yes, I am a total Linux newb and I ran straight into a brick wall on first try. And before someone yells "Use the search ffs!!1oneleven" at me: I did and I still don't get it.
So what happened:
I followed the handbook step by step to the point where it says "reboot and let grub do its job"
grub comes, begins to boot the kernel (or at least I think it does...) and then stops with the following message:
Code: |
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press Enter |
me pressing enter on an empty floppy since I have no root floppy
Code: |
end_request: I/O error, dev fd0, sector 0
VFS: Cannot open root device "hda3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
0200 4 fd0 (driver?)
1600 4194302 hdc driver: ide-cdrom
1640 4194302 hdd driver: ide-cdrom
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
|
If I read that correctly it managed to get the kernel from hda1 but couldn't read hda3 even though both are on the same physical harddrive and have the same filesystem (ext3). All the other Threads with the same error I found were SATA-driver related but if it finds the cd-rom and the burner (and I believe I saw something about hda and the harddrive name/number/whatever-you-want-to-call it fly by earlier during the boot. Could be mistaken though) that should mean I have the correct IDE driver compiled, right?
Also it tries to boot to (or from?) "(2,0)" which would be grubs name for the third harddrive, but I disconnected all my other harddrives. So there is only hda, the two CD drives and the floppy, what is it trying to do on (2,0)?
Any hints would be greatly appreciated
So Long
Shiriki
Last edited by Shiriki on Thu Oct 18, 2007 10:53 pm; edited 1 time in total |
|
Back to top |
|
|
librarian n00b
Joined: 16 Oct 2007 Posts: 13 Location: 33°57'24.27"S; 18°27'40.37"E
|
Posted: Wed Oct 17, 2007 8:55 pm Post subject: |
|
|
hi Shiriki
kernel panicing and not syncing is a fairly standard nightmare which could be caused by a number of things, usually involving something incorrect in the kernel setup. however i have seen the case where it makes mention of the Quote: | Code: | Please append a correct "root=" boot option; here are the available partitions: | | if you're lucky, you might just need to append Code: | kernel /boot/<kernel image> | in your /boot/grub/grub.conf with giving you Code: | kernel /boot/<kernel image> root=hda3 |
if that doesn't work, you'll probably want to go over your kernel settings again, particularly with regard to your floppy drivers, your nfs drivers, your chipset drivers, and your hdd drivers.
good luck
librarian _________________ AMD64X2 2400+, 1024Mb DDR2, GeForce 7150M 256Mb DDR2, Gentoo Linux 64bit (nomultilib) |
|
Back to top |
|
|
Shiriki n00b
Joined: 17 Oct 2007 Posts: 8
|
Posted: Wed Oct 17, 2007 9:15 pm Post subject: |
|
|
Hi librarian,
My grub.conf entry is
Code: |
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo root=/dev/hda3
|
as suggested in the manual.
Changing it to "root=hda3" didn't make it any better, but it didn't make it worse either *g* (which I find odd, shouldn't one be wrong syntax?)
I went over the kernel settings several times, but since I'm not sure what exactly I need I ended up including pretty much everything that look vaguely familiar...
So Long
Shiriki |
|
Back to top |
|
|
librarian n00b
Joined: 16 Oct 2007 Posts: 13 Location: 33°57'24.27"S; 18°27'40.37"E
|
Posted: Wed Oct 17, 2007 10:04 pm Post subject: oh dear |
|
|
your grub.conf looks correct, what's odd is that from the error Quote: | Code: | Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press Enter |
| it appears as if it is trying to mount the root file system via an nfs share, then failing that it's trying the floppy (your (2,0)).
try reinstalling grub, and see if that does anything... while you're there you might want to check out the drives from what grub sees...
to do this:
boot into a live disk and enter a terminal as root.
at the promptyour prompt should change to a grub prompt. tab complete the root command to get a list of devices.select your device (probably zero), now repeat for partition selection Code: | grub> root (0, <tab> | select your partition (that is the boot partition, not the root partition), probably 0 again, and finish the command Code: | grub> root (hd0,0)
grub> setup (hd0)
grub> quit |
restart and see if this helps
librarian _________________ AMD64X2 2400+, 1024Mb DDR2, GeForce 7150M 256Mb DDR2, Gentoo Linux 64bit (nomultilib) |
|
Back to top |
|
|
Shiriki n00b
Joined: 17 Oct 2007 Posts: 8
|
Posted: Wed Oct 17, 2007 11:00 pm Post subject: |
|
|
Hi,
reinstalling grub didn't do anything and tab completion doesn't work inside grub. BUT when I put in "root (hd0,0)" it told the partition was ext2fs. So I recompiled the kernel with ext2 support and changed the fstab. The kernel panic went away and I could login now.
So I guess I messed up at the very beginning and going back to square one now... -.-
Thanks for your help librarian! I'll be back if don't get right the second time
So Long
Shiriki |
|
Back to top |
|
|
librarian n00b
Joined: 16 Oct 2007 Posts: 13 Location: 33°57'24.27"S; 18°27'40.37"E
|
Posted: Thu Oct 18, 2007 7:22 am Post subject: glad you got it working |
|
|
glad you got it fixed, as i said, kernel panics are usually fixed by something in the kernel. fortunately gentoo make it so easy to edit and change the kernel. ive had some friends get a kernel panic with precompiled distros... what a mission!
good luck, enjoy
librarian
ps please add [SOLVED] to the front of the thread's title _________________ AMD64X2 2400+, 1024Mb DDR2, GeForce 7150M 256Mb DDR2, Gentoo Linux 64bit (nomultilib) |
|
Back to top |
|
|
Shiriki n00b
Joined: 17 Oct 2007 Posts: 8
|
Posted: Thu Oct 18, 2007 2:50 pm Post subject: |
|
|
There and back again...
So the kernel boots fine now with the exception of my ethernet. lspci says that I have a "3Com Corporation 3c940 10/100/1000Base-T [Marvel] (rev 12)" so I included all the 3Com options in my kernel (although my specific card is not listed). What else could I include to make it work?
So Long
Shiriki |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Thu Oct 18, 2007 5:05 pm Post subject: |
|
|
Shiriki wrote: | lspci says that I have a "3Com Corporation 3c940 10/100/1000Base-T [Marvel] (rev 12)" |
The 3Com part of the name is really misleading.
The driver you want is called "skge" for Marvel / Sysconnect gigabit cards. |
|
Back to top |
|
|
Shiriki n00b
Joined: 17 Oct 2007 Posts: 8
|
Posted: Thu Oct 18, 2007 10:59 pm Post subject: |
|
|
Thanks!
How did you know that? Just from being around long enough or is there some sort of list what device belongs to what driver?
So Long
Shiriki |
|
Back to top |
|
|
mbreith Apprentice
Joined: 09 Mar 2006 Posts: 196
|
Posted: Thu Oct 18, 2007 11:49 pm Post subject: |
|
|
Some of both. cyrillic probably has the same card and that is how he knew the answer so fast. There are also web pages that list what drivers go with what hardware. I can't remember where any are at the moment though. _________________ I don't stat chatspeak acronyms. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Oct 19, 2007 12:38 am Post subject: |
|
|
One of my motherboards has an onboard 3c940, and I was stumped for a while about which driver to use.
The best trick I have found for hardware like that is : use grep on the kernel sources.
Code: | # cd /usr/src/linux
# grep -rni 3c940 drivers/
drivers/net/tg3.c:10009: { PCI_VENDOR_ID_3COM, 0x1008, PHY_ID_BCM5701 }, /* 3C940BR01 */
drivers/net/Kconfig:2184: Linksys EG1032/EG1064, 3Com 3C940/3C940B, SysKonnect SK-9871/9872.
drivers/net/Kconfig:2234: - 3Com 3C940 Gigabit LOM Ethernet Adapter
drivers/net/skge.c:76: { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940) },
drivers/net/skge.c:77: { PCI_DEVICE(PCI_VENDOR_ID_3COM, PCI_DEVICE_ID_3COM_3C940B) }, |
Sometimes you get false positives, like the tg3 driver on the first line, but my trick did find the skge driver too. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|