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

Notices

Reply
 
Search this Thread
Old 01-19-2008, 07:51 AM   #1
tintintin
LQ Newbie
 
Registered: Jan 2008
Posts: 8

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


Ok so i have Slack 12 with the 2.6.21.5.

I need to patch to include kdb debugger these are the steps i have taken

1) patch -p1 < ../kdb-v4.4-2.6.21.5-common-3
2) patch -p2 < ../kdb-v4.4-2.6.21.5-ci386-3
2.5) make xconfig - Select Built in debugger & KDB Modules
3) Make dep
4) make clean
5) make bzimage
5.5) cp arch/i386/boot/bzImage /boot/linuxkdb
6) make modules
7) make modules_install
8) change lilo.conf to add
image=/boot/linuxkdb
label=kdblinux
read-only
root=/dev/hda1

Which is the same as default entry from the original instalation except the boot image is now linuxkdb rather than vmlinuz.

When i select the original kernel everything boots ok

when i select the kdb patched kernel i get the error
Quote:
no filesystem could mount root, tried
kernel panic-not syncing VFS:unable to mount root fs on unknown-block(3,1)
 
Old 01-19-2008, 08:20 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
thats the standard error when you don't have the correct filesystem in the kernel supported.

for e.g if it is a ext3 then you need to make sure you have the ext3 support in the kernel. Try and include it (Y instead of N or M ) and see if it works (replace ext3 with your filesystem).
 
Old 01-19-2008, 10:28 AM   #3
mastemmer
Member
 
Registered: Jul 2007
Distribution: Slackware
Posts: 34

Rep: Reputation: 16
If your kernel does not support the file system of your / (root) directory, as seems to be your case, you may either recompile your kernel with embedded support for it, as suggested by duryodhan or make an initrd, to load the filesystem support as a module.
To do this follow the instructions in
/boot/README.initrd
 
Old 01-19-2008, 10:01 PM   #4
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
try recompiling the kernel with your file system set as <yes> instead of <modules>. that worked for me.
 
Old 01-20-2008, 05:31 PM   #5
digitalboy74
Member
 
Registered: Aug 2004
Location: Matrix
Distribution: slack currrent
Posts: 61

Rep: Reputation: 16
see readme.mkinitrd in /boot and you will have a good boot.
 
Old 01-22-2008, 01:54 PM   #6
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 103

Rep: Reputation: 29
One other problem could be an incorrect / entry in your fstab - I had problems after a recompile with my primary disk becoming sda instead of hda so that might be worth checking
 
Old 01-26-2008, 05:22 PM   #7
spydon
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
I got a similar error and I worked it out by booting a live cd and mounting the volume and then:

Code:
sudo update-initramfs -k all -u -b /mnt/sda1/boot
Might have something to do with this https://bugs.launchpad.net/ubuntu/+s...22/+bug/151146

I hope the command help you out.
 
  


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(0,0) OR13 Linux - Kernel 18 01-12-2008 09:23 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 kaplis Linux - Software 1 09-19-2006 01:44 AM
Kernel Panic!!! -Not Syncing VFS:Unable to mount root FS on unknown - block (0,0) scarabs Linux - Software 4 04-16-2006 04:16 PM


All times are GMT -5. The time now is 04:08 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