Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 11-20-2008, 05:21 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
custom boot cd fails to boot with "Kernel panic - not syncing : vfs"

I created a custom boot CD for RHEL 5 xen kernel (2.6.18-53.el5xen).
I created a customised initramfs image as gzipped compressed cpio image.
I am using isolinux boot loader. My isolinux.cfg looks like this.I am using the same kernel image that came with RHEL 5.

timeout 10
default 1
prompt 1

label 1
kernel mboot.c32
append xen.gz dom0_mem=256M mem=1G noacpi --- vmlinuz console=tty0 load_ramdisk=1 prompt_ramdisk=0 ramdisk_blocksize=1024 ramdisk_size=256M root=/dev/ram init=/linuxrc --- initrd.img noexec=off rw

I am trying to boot a VMWare guest with this boot cd image. It fails with the following error message.
No file system could mount root, tried: ext2 iso9660
kernel panic - not syncing : VFS: Unable to mount root fs on unknown- block(1,0).
I tried to use the initrd image that came with the RHEL 5 distribution. Looks like It works. I created the initrd image with the following command.
find . | cpio -o -c -H newc | gzip -9 > ../initramfs.igz

Can any one explain what could be the mistake in my approach.
Old 11-23-2008, 05:10 PM   #2
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
That error message is typical for a kernel compiled with the root fs type being compiled as a module, and that module not being included in the initrd. Basically, the kernel doesn't know how to read the filesystem on the root partition, and can't get to it's module to do so, because you didn't put it on the initrd.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE Boot Error: "Kernel panic - not syncing: Attempted to kill init!" veeruk101 Linux - Networking 1 07-18-2007 03:30 PM
"Kernel panic: VFS: Unable to mount root fs" - Kernel fails to boot linux Freedom Seeker Linux - General 11 11-12-2006 07:48 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM
error:"kernel panic: VFS: Unable to mount root fs":-( shyguy Linux - Newbie 1 07-23-2001 04:03 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration