LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-29-2007, 08:08 PM   #1
jnhuang
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)


Hi,

I just took a "Building Linux Kernel" training. I finished all labs with my partner during the training. I am repeating the labs on my personal desktop at home.

First, I installed Fedora-7 one my PC, which had installed Window XP. Dual-boot are fine, both WinXP and Fedora-7.

Second, I downloaded the linux kernel from www.kernel.org and busybox. I used default settings for both. "make" were good. I can boot the new kernel with the automatically created initrd.

Then, I want to build my own root filesys. I created rootdir diretories, copied busybox to rootdir/bin, and made softlinks for commands in busybox. "chroot" is fine.

I installed the modules to my rootdir directory from the kernel I made. Now rootdir is too big. The only device drive I want to load is NIC driver. The target rootdir size is less than 8M. I started to delete drivers in rootdir.
Basically, I only kept my nic driver and fs/ext2 and fs/ext3. rootdir size is now about 7M.
rootdir/etc/inittab and rc.sysinit were created.

dd if=/dev/zero of=initrd.img bs=8M count=1
mke2fs -F -v -m0 initrd.img
mount -o loop initfs.img mntdir/initrd
Then copy rootdir/* to mntdir/initrd and gzip initrd.img.
copy the compressed initrd.img to /boot.

/etc/grub.conf is
...
title Fedora (2.6.22.6)
root (hd0,5)
kernel /vmlinuz-2.6.22.6 root=/dev/ram rw
initrd /initrd.img.gz
title Fedora (2.6.21-1.3194.fc7)
root (hd0,5)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Windows
rootnoverify (hd1,0)
chainloader +1

...
/boot is on hdc6
swap is on hdc7
/ is on hdc8
hdc7 is SATA HDD.
I intended to mount root to ram (from the training lab).
The new system failed to bootup. The message are:

RAMDISK: Compressed image found at block 0
grow_buffers: requested out-ot-range block 1844... for device ram0
isofs_fill_supper: bread failed, dev=ram0, iso_blknum=17, block=-21474...
List of all partitions:
No filesystem could mount root, tried iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
<done>

Please help!
 
Old 09-30-2007, 01:19 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You need disk drivers so the kernel knows what your hard disk is.

Regards,

Alunduil
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block (1,0) Zenx Linux - Kernel 12 08-04-2010 05:33 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block bijit1709 Slackware 11 06-08-2007 04:38 PM
Kernel panic - not syncing : VFS: Unable to mount root fs on unknown block(0,0) Merlinator Ubuntu 1 03-05-2007 04:18 AM
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(3,2) o2bfishn Slackware 5 04-28-2006 03:51 PM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2) Volgin Linux - Software 1 12-11-2005 07:46 PM


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

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