LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Kernel Panic, unable mount root fs (https://www.linuxquestions.org/questions/debian-26/kernel-panic-unable-mount-root-fs-189286/)

ShadowLeo 06-03-2004 11:38 AM

Kernel Panic, unable mount root fs
 
Hello! I'm still a relative newbie to Linux and Debian in general, but I have managed to do quite a bit in the few months I've had it. I recently wanted to use a pair of SCSI drives, but was told by a friend that I didn't have the modules and needed to compile my own kernel with them. I used apt-get install to get the source for kernel version 2.4.18. I followed the instrucitons at the debian website for compiling a kenel under debian using the [Debian Standard Method. Afterwards I ran lilo and rebooted. The boot ran smoothly untill I was promptly greeted with the error Kenel Panic: VFS: Unable to mount root fs on 01:00 :cry: I inserted the Debian install disk and am able to get back in by using rescue. Now, 2 days and 15 kernel remakes later I am finally giving up. :( I have searched these forums and elsewhere and have found problems similar to mine, but were either not resolved or didn't solve my problem. Any help would be greatly GREATLY appreciated.

Charlie the :newbie:


Here is some of my info.

Distro: Debian
Working Kernel: 2.2.20(?)
Attempted Kernel: 2.4.18
Root disk fs: ext2
Last few lines of boot:

NET4: Unix domain sockets 1.0/SMP for Linux Net4.0.
ds: no socket drivers loaded!
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1000 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 1000k freed
Kernel Panic: VFS: Unable to mount root fs on 01:00

Here is my lilo.conf file contents:

boot=/dev/hda
root=/dev/hda1
compact
install=/boot/boot.b
default=Linux
map=/boot/map
vga=normal
delay=20
timeout=50
image=/vmlinuz
label = Linux
read-only
initrd=/initrd.img

image=/vmlinuz.old
label = LinuxOLD
read-only


The two files the image lines are pointing are symlinks pointing to the /boot folder and the files they point to do exist. I also checked make menuconfig several times to make sure I was loading support for the IDE controller and for the correct filesystem (ext2) This was all the info I could think of putting.

Ron77 06-03-2004 11:51 AM

I have had similar problems when trying to boot my own custom Debian CD. The cd burner works through SCSI emulation so it is similar.

Try the SCSI support linked into the kernel instead of modules,
(*) instead of (M)

Try both with and without "initrd" when compiling the kernel.

I remember playing with these options helped me sort it out...

ShadowLeo 06-03-2004 12:54 PM

Thank you very much for your reply. :D You gave me an idea with initrd. I remember reading that if you load a module, or is built into the kernel, and initrd loads it again, it could cause kernel confusion. Also, when I first installed Debian and the kernel off of Debian's Boot Floppies, I remember seeing no such option for initrd in the original lilo.conf. I'm going to remove the initrd options from lilo.conf. After that I will try the included SCSI support. I wouldn't think that SCSI support would make a difference however though, due to the fact that the root fs is on an ide disk. I only recently added the SCSI disks to the system. I was also told that I could just type
Code:

modprobe aic7xxx
and get the support that way. However, I will try what you recomended.

Regards!
Charlie the :newbie:

ShadowLeo 06-03-2004 01:03 PM

Haha! Success! :D :D :D :D
It turns out that it WAS my lilo.conf. I removed the line about initrd from the image=/vmlinuz line and it booted great. I'm going to test the SCSI support right now. Thanks you so much for your help. I really appreciate it.

Sincerely
Charlie the :D :newbie:


All times are GMT -5. The time now is 12:21 PM.