Results 1 to 2 of 2
hi there i'm very new to compiling a new kernel and i'm facing with an error which says
Code:
Kernel panic : VFS : unable to mount root fs on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-21-2012 #1Just Joined!
- Join Date
- Dec 2012
- Posts
- 3
Kernel panic : VFS : unable to mount root fs on 03:02 error
hi there i'm very new to compiling a new kernel and i'm facing with an error which says
on the other hand, i installed Red Hat via Virtual Box on windows 7. and you can see the steps i followed to compile my new kernelCode:Kernel panic : VFS : unable to mount root fs on 03:02
$ make mrproper
$ make menuconfig
and after i compiled new kernel i editted /etc/grub.conf with adding linesCode:$ make dep $ make clean $ make bzImage $ ls -l arch/i386/boot (to check if Image was created or not) $ make modules $ make modules_install $ /sbin/mkinitrd /boot/initrd-2.4.20-100.img 2.4.20-100 $ cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION $ cp System.map /boot/System.map-KERNEL_VERSION $ ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
title My Opsys Kernel (2.4.20-100)
root (hd0,0)
kernel /bzImage-2.4.20-100 ro root=/dev/hda2 hdc=ide-scsi
initrd /initrd-2.4.20-100.img
- 12-22-2012 #2
What matters is how you configured the kernel before making it. If you're not using an initrd, you need to have three things compiled right in, not as modules: your hard drive motherboard controller, your hard drive driver (probably PATA/SATA in a modern kernel) and your root filesystem driver (for example ext3). If you are using an initrd, you need to create one (most distros have a script for that called something like mkinitrd).
Building a kernel is tricky if you don't know what you are doing. Do you have a special reason for wanting to build one?"I'm just a little old lady; don't try to dazzle me with jargon!"


Reply With Quote
