Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] VFS Kernel Panic 2.6.16-r12
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stupefiedgenius
n00b
n00b


Joined: 13 Jul 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 11:48 pm    Post subject: [Solved] VFS Kernel Panic 2.6.16-r12 Reply with quote

Ok admittedly, I am new to linux.

I used the gentoo-2006.0-minimal-x86 CD in conjunction with Knoppix 3.6 (using the linux 2.6 kernel by booting linux26)

For the most part I followed the instructions verbatim here and here. I do so by myself up until Knoppix froze right before installing Grub and I asked my friend, a Gentoo enthusiast to help me chroot back in and with the completion of the installation.

Current problem (that neither of us and much googling didn't solve):
Boot>Grub>select Gentoo w/ genkernel:
Code:

blah blah blah
ACPI: (supports S0 S1 S5)
Kernel panic - not syncing: VFS: Unable to mount fs on unknown-block(0,0)


Now on a hunch my friend used SSH to connect to my machine and compiled a kernel manually for me, I get this error when trying to boot Gentoo experimental:
Code:

ACPI: (supports S0 S1 S5)
VFS: Cannot open root device "hda9" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Specs:
Code:

Pentium III 800Mhz (coppermine)
256MB PC100 RAM
Onboard Intel i810 video + audio
Linksys WMP11 PCI Wireless-B card
LG 4x CD burner
Samsung DVD reader
Maxtor Diamondmax 200GB



Partitions (using GParted live-cd):
Code:

hda1 M$ XP
hda2 ntfs "downloads"
hda3 extended
hda5 ntfs blank
hda6 ext2 knoppix home (only accessible when I boot using the 2.4 kernel)
hda7 ext2 Gentoo boot
hda8 linux-swap (currently Knoppix jacked this)
hda9 ext3 Gentoo root
hda10 fat32 Knoppix swap
hda11-15 blank (I was going to try re-installing Gentoo after Knoppix froze)


/boot/grub/grub.conf
Code:

default 0
timeout 30
splashimage=(hd0,6)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-12 test
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r12 root=/dev/hda9
initrd /boot/initramfs-genkernel-x86-2.6-genkernel-r12

title=Gentoo Linux 2.6.16-r2  experimental setup
root (hd0,6)
kernel (hd0,6)/boot/kernel-genkernel-x86-2.6.16-gentoo-r12-tmz root=/dev/hda9

title=Gentoo Linux 2.6.16-r12 genkernel
root (hd0,6)
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r12 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda9 udev
initrd /boot/initramfs-genkernel-x86-2.6.16-gentoo-r12

title=Windows XP
rootnoverify (hd0,0)
chainloader +1
makeactive


/etc/fstab
Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda7               /boot           ext2            defaults,noatime        1 2
/dev/hda9               /               ext3            noatime         0 1
/dev/hda8               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,user     0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


and BTW I use this to mount to Gentoo within Knoppix:
Code:

mkdir /mnt/gentoo
mkdir /mnt/gentoo/boot
mkdir /mnt/gentoo/proc
mount /dev/hda9 /mnt/gentoo
mount /dev/hda7 /mnt/gentoo/boot
mount -o bind /proc /mnt/gentoo/proc


I have messed with the grub.conf and no luck getting past this kernel panic error...I did however, have to learn the hard way that Grub sees hda1 as (hd0,0) :roll:

Further, I looked at this thread
And followed all the menuconfig directions, except for
Code:
File systems
  -> Pseudo file systems
  -> /dev file system support (OBSOLETE)   DEVFS_FS
    -> Automatically mount at boot         DEVFS_MOUNT

because those options aren't in my menu... I think they were removed sometime between when that thread was written and the latest kernel (2.6.16-r12)

I began this July 11th, and the first 4-5 hours went smoothly. July 12th was spent figuring out why the splash image wasn't displaying correctly (subtract one from each hda#). And yesterday and today (July 13th) I've been trying to get rid of this kernel panic. There is not a huge rush, because XP boots fine and Knoppix boots fine, but I have been banging my head because I can't figure out what the problem is.

Any help or pointers in the right direction would be greatly appreciated :)

P.S. It is a IDE/Ultra ATA hard drive; not SATA.
_________________
kernel-genkernel-x86-2.6.16-gentoo-r12


Last edited by stupefiedgenius on Fri Jul 14, 2006 7:17 am; edited 1 time in total
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Fri Jul 14, 2006 2:35 am    Post subject: Reply with quote

if you have comile your own kernel using make menuconfig then your kernel lines in grub.conf shoudlnt be genkernel syntax.
    kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r12 root=/dev/hda9
    initrd /boot/initramfs-genkernel-x86-2.6-genkernel-r12

should be:
    kernel /boot/kernel-2.6.16-gentoo-r12 root=/dev/hda9


and this:
    Kernel panic - not syncing: VFS: Unable to mount fs on unknown-block(0,0)


means your the storage controller isnt compiled in the kernel.
Back to top
View user's profile Send private message
stupefiedgenius
n00b
n00b


Joined: 13 Jul 2006
Posts: 5

PostPosted: Fri Jul 14, 2006 2:53 am    Post subject: Reply with quote

Davascript, thank you for replying.

I have seen many varations of the grub.conf on the internet, so I have been experimenting with different coding. The manual compilation of the kernel is in a seperate file from the original genkernel kernel; the reason for this was a quick minimal test, to see if genkernel was the source of the error.

I will look into the storage controller module, as that may very well be the issue.

Thank you once again and I hope that gets me through this issue (though I'll likely have more issues later on especially with getting wifi working :wink: )

EDIT: (so as to not double post)
Ok I solved the kernel panic issue and can login (I have some additional unrelated issues to work out tomorrow)
Some non-default things to select in genkernel:

Code:

#cd /usr/src/linux
#genkernel all --menuconfig


Code:

Loadable Module Support> select all 5 options in here
Block layer>select support for large block devices
Processor Type and features>select your CPU/processor (it was set to Pentium Pro for some reason and I have a Pentium III (coppermine)
Networking support>Enable full debugging output, IEEE 802.11 CCMP support
Device Drivers>Block devices>RAM disk support, Initial RAM disk (initrd) support
Device Drivers>ATA/ATAPI/MFM/RLL support>Enhanced IDE disk, Include IDE/ATA-2 DISK, generic/default IDE chipset support, PCI IDE chipset
Device Drivers>USB Support>Support for Host-side USB, EHCI HCD, OHCI, UHCI, USB Mass Storage support, USB Human Interface Device (full HID), HID input layer, USB Monitor
File Systems>Second extended fs support, Ext2 extended attributes, Ext2 POSIX, Ext2 Security, Ext2 execute, Ext3 journalling, Ext3 extended, Ext3 POSIX, Ext3 Security, JBD (ext3) debugging
File Systems>Pseudo filesystems>/proc file system, /proc/kcore, virtual memory
File Systems>Partition Types>Advanced partition, PC BIOS

Save Configuration to an Alternate File>/config (NOT .config or else you will lose your options the next time you open menuconfig!)
Exit and say yes


Now
Code:

# make && make modules_install
# mount /boot
# cp arch/i386/boot/bzImage /boot/kernel-genkernel-x86-2.6.16-gentoo-r12


If your kernel is different and you have issues use "cd" to look into the folder above (say cd /boot) and then type ls to list what is in that folder (and the exact filename because linux is nit-picky :wink:)

NOTE: The menuconfig options listed above are only the options I had to select that weren't default...there are some default ones already selected, don't uncheck those. Obviously modify it to the needs of your hardware and partition scheme. I recommend the GParted Live-CD 2.4 for all your partitioning needs (I had a bad experience with Partition Magic)

I hope this thread helps linux n00bs like me :)
_________________
kernel-genkernel-x86-2.6.16-gentoo-r12
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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