LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

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

Rep: Reputation: 0
No file system could mount root, tried: ext2 iso9660


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-20-2008, 07:19 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Look for the intraramfs text file in the kernel source Documentation.
Quote:
The following shell script can create a prebuilt cpio archive you can
use in place of the above config file:

#!/bin/sh

# Copyright 2006 Rob Landley <rob@landley.net> and TimeSys Corporation.
# Licensed under GPL version 2

if [ $# -ne 2 ]
then
echo "usage: mkinitramfs directory imagename.cpio.gz"
exit 1
fi

if [ -d "$1" ]
then
echo "creating $2 from $1"
(cd "$1"; find . | cpio -o -H newc | gzip) > "$2"
else
echo "First argument must be a directory"
exit 1
fi

Note: The cpio man page contains some bad advice that will break your initramfs
archive if you follow it. It says "A typical way to generate the list
of filenames is with the find command
; you should give find the -depth option
to minimize problems with permissions on directories that are unwritable or not
searchable." Don't do this when creating initramfs.cpio.gz images, it won't
work
. The Linux kernel cpio extractor won't create files in a directory that
doesn't exist, so the directory entries must go before the files that go in
those directories. The above script gets them in the right order.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make bootable CD from hard disk image and mount root file system as ramfs Mr.J Linux - Embedded & Single-board computer 1 08-19-2008 07:29 AM
Unable to mount root File system C-Sniper Slackware 19 12-10-2007 02:37 PM
Kernel panic-not syncing unable to mount the root file system on unknown block(0,0) cybersrin Linux - Hardware 2 08-14-2007 12:00 AM
Kernel Panic - Not Syncing VFS: unable to mount root file system push Slackware 8 08-28-2006 07:17 AM
Convert root file system from ext2 to ext3 lothario Mandriva 4 11-20-2004 05:21 PM


All times are GMT -5. The time now is 05:14 PM.

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