LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2004, 05:06 AM   #1
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
VFS: unable to mount root fs on unknown-block(3,3)


I just compiled 2.6.1 on my debain system.

When I boot my 2.6.1, I get the following error:

Cannot open root device "303" or unknown-block(3,3)
Please append a correct "root=" boot option
VFS: unable to mount root fs on unknown-block(3,3)

Now what's really strange is that I left myself open a back door, it should be possible to boot my 2.4
kernel (which came with debian testing) but as far as I can tell it either is either booting 2.6 (as appears to
be the case) or it's booting 2.4 with the exact same error (and looking at the boot page, with NTFS
included, which I am pretty sure was not in the debian 2.4 kernel)

The instructions I followed are here :
(Sorry about this, but it won't let me use a link in my first 5 threads (to prevent spamming))
it's /howto/debian-kernel-recompile.html
at myrddin.org

Here is my lilo.conf :
boot=/dev/hda
prompt
root=/dev/hda3
install=/boot/boot.b
map=/boot/map
image=/vmlinuz
label=Linux
initrd= /boot/initrd.img
image = /boot/vmlinuz-2.6.12.6.1-23-1-04
label = Linux2.6
other = /dev/hda1
label=WinXP

/vmlinuz is a link which (at the time this lilo.conf was put to MBR) pointed to my 2.6 kernel, but now points at my 2.4 kernel (wow, I can figgure some stuff out on my own) also, at the time lilo was put to MBR, /boot/initrd.img did not exist (make-dpkg warned me about the initrd switch on non debain-patched sources... maybe I should have ignored it, lol) however boot/initrd.img
now points at /boot/initrd.img-2.4.23-1-386

Any ideas on how I can either :
Boot my 2.4 kernel (and have a working machine again)
Fix my 2.6 kernel

Could I perhaps have to re-run lilo after the links have changed where the links are pointing to?
If so, how would I go about running lilo? (tried from knoppix, (with -C) but it fails because of knoppix's read only file system - I would actually prefer if it did everything inside /mnt/hda3/boot, but I am guessing that's asking too much?)
 
Old 01-25-2004, 04:21 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,856

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"Could I perhaps have to re-run lilo after the links have changed where the links are pointing to? "

Yes

"If so, how would I go about running lilo? (tried from knoppix, (with -C) but it fails because of knoppix's read only file system - I would actually prefer if it did everything inside /mnt/hda3/boot, but I am guessing that's asking too much?'

In knoppix you can umount /mnt/hda3 and then mount it again as read write.

When you do lilo -C from knoppix you have to change the configuration information in lilo.conf to correspond to how the paths appear in knoppix. For example, suppose you do the following in knoppix:
umount /dev/hda3
mkdir /bootpart
mount /dev/hda3 /bootpart
cp /bootpart/etc/lilo.conf /bootpart/etc/lilo.conf.knoppix

Then edit /bootpart/etc/lilo.conf.knoppix and run lilo:
lilo -C /bootpart/etc/lilo.conf.knoppix

When you edit lilo.conf.knoppix you have to change the paths to reflect the way they appear in knoppix. For example:
image = /boot/vmlinuz-2.6.12.6.1-23-1-04
becomes
image = /bootpart/boot/vmlinuz-2.6.12.6.1-23-1-04

and so on.

Here is a lilo howto:
http://tldp.org/HOWTO/LILO.html

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 01-25-2004 at 04:22 PM.
 
Old 01-25-2004, 06:51 PM   #3
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Original Poster
Rep: Reputation: 30
Thank you VERY much!

I managed to boot my 2.4 kernel with you instructions (I had to use -s with lilo as well tho)
Now all I need to do is fix my 2.6.1 kernel

/me goes to STFW &
 
  


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: VFS unable to mount root fs on unknown-block(3,1) koolgentoo Linux From Scratch 5 08-15-2008 07:06 AM
Kernel Panic: VFS: Unable to mount root fs on unknown-block Igor007 Programming 3 08-14-2005 07:54 PM
Kernel Panic: VFS: Unable to mount root fs on unknown-block(3,65) kpaske Linux - Newbie 1 08-07-2004 12:03 AM
Kernel Panic:VFS:Unable to mount root fs on Unknown block dinesha Linux - Software 2 02-27-2004 12:37 PM
kernel panic VFS: unable to mount root fs on unknown-block (0,0) demmylls Linux - General 2 02-08-2004 10:18 AM


All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration