LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-24-2006, 09:49 PM   #1
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
Kernel Panic: Unable to mount VFS


Hello,

i started a fresh slackware 10.2 install and i wanted to use the 2.6.13 kernel that came with the download. long story short, i compiled the 2.6.13 kernel, did the usual and i get this error msg at boot (reconstructed from memory):

Kernel Panic: Unable to mount VFS or uknown-block (3, 5)
please specify a correct "root=" option at boot

i've googled around and tried the two solutions most often proposed: removing "read-only" from the relevant section in lilo.conf creating an initrd with a module for reiserfs. i've tried both and no dice.

the relevant section of my lilo.conf:

Code:
label = Kernel_2.6
image = /boot/vmlinuz
root = /dev/hda5
initrd = /boot/initrd.gz
#readonly
i can boot the 2.4 kernel just fine and i dont need an initrd to do so. btw, my partitions are formatted using reiserfs.

i'm at the end of my wits. can anyone help?
 
Old 01-24-2006, 11:10 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
have you tried compiling the kernel with reiserfs support built-in, such that no initial ramdisk is needed??

also, why don't you give the latest 2.6 version a shot (2.6.15.1 at the time of this post)??
 
Old 01-24-2006, 11:44 PM   #3
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
hello.

i have support for ext2/3 and reiserfs all baked into the kernel. i saw a forum which suggested disabling advanced partitioning and tried that as well. still no dice.

reason i wont download the lastest kernel is because of several horrow stories floating around about slack 10.2 and said kernel version. besides, i'm bandwidth-limited
 
Old 01-24-2006, 11:55 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I'm running 2.6.15 w/10.2 . I had no problems with it. The "Horror" stories are from those who don't compile correctly. The 2.6.13 is fine too. Boot with 2.4, and try to compile again. Make sure that reiserfs is NOT a module. Should boot then
 
Old 01-25-2006, 02:18 AM   #5
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
I've recompiled as you've said but still nothing.

I decided to do the whole thing over again and the result is the same. Just in case i did something wrong here's what i did:

1.) installed the following packages from my slackware DVD:
Code:
kernel-source-2.6.13-noarch-1.tgz
    kernel-modules-2.6.13-i486-1.tgz
    kernel-headers-2.6.13-i386-1.tgz
    kernel-generic-2.6.13-i486-1.tgz
2.) built reiserfs support into the kernel

3.) disabled option for advanced partition selection (because so many forums point to this as the culprit)

4.) compiled kernel

5.) edited lilo.conf to have

Code:
label=kernel2.6
image=/boot/vmlinuz
root=/dev/hda5
read-only
and ran lilo.

The error message i get is

Code:
VFS: Cannot open root device "305" or unknown-block (3, 5)
please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (3, 5)
i thought fifth time would be a charm but i guess not. can anyone help out?
 
Old 01-25-2006, 02:53 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by pafrica
VFS: Cannot open root device "305" or unknown-block (3, 5)
please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (3, 5)
i assume you are 100% sure that /dev/hda5 (root=/dev/hda5) is the correct root partition, right?? i can't think of anything else right now...
 
Old 01-25-2006, 03:09 AM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Wait. hda5? Can't have more than 4 primary partitions, I think, and make it bootable.....I remember something somewhere about that....
 
Old 01-25-2006, 03:21 AM   #8
shotwellj
Member
 
Registered: Jul 2005
Location: Tempe, AZ
Distribution: Slackware
Posts: 66

Rep: Reputation: 15
Quote:
Originally Posted by pafrica
I've recompiled as you've said but still nothing.

I decided to do the whole thing over again and the result is the same. Just in case i did something wrong here's what i did:

1.) installed the following packages from my slackware DVD:
Code:
kernel-source-2.6.13-noarch-1.tgz
    kernel-modules-2.6.13-i486-1.tgz
    kernel-headers-2.6.13-i386-1.tgz
    kernel-generic-2.6.13-i486-1.tgz
If you're trying to compile your own kernel, you do not need to install the kernel-generic, or kernel-modules packages. Those are already compiled packages. Moreover, you generally do not want to install the kernel-headers. They are only included for the rare instance that someone may need them.

If you just want to run a 2.6 kernel, the slackware compile works great for most people. Just follow the instructions in README.initrd (in the same directory as the kernels).


Regards,
Jacob
 
Old 01-25-2006, 03:44 AM   #9
ronanio
Member
 
Registered: Sep 2004
Posts: 54

Rep: Reputation: 15
run fdisk /dev/hda and then print the partitions

are you sure the installed partition is bootable
 
Old 01-25-2006, 01:33 PM   #10
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cwwilson721
Wait. hda5? Can't have more than 4 primary partitions, I think, and make it bootable.....I remember something somewhere about that....
Only windows and a few other OS's have the limitation of being unable to boot unless they're on a primary partition. Linux does not have this limitation and doesnt care whether it is on an extended or primary partition, much less if that partition that it is on is active (bootable) or not.

and win32sux, yes, i am positive my / is on /dev/hda5.

thanks, though
 
Old 01-25-2006, 01:35 PM   #11
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
shotwellj, will try that out soon.
 
Old 01-25-2006, 03:07 PM   #12
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
ok, this is just getting out of hand.

I downloaded the 2.6.15.1 kernel from kernel.org and unpacked it to /usr/src/linux-2.6.15.1 and changed the /usr/src/linux symlink accordingly.

so now i did #make menuconfig and it tells me it can't find asm-generic/errno.h.

The exact message:
Code:
HOSTCC  scripts/basic/split-include
In file included from /usr/include/linux/errno.h:4,
                 from /usr/include/bits/errno.h:25,
                 from /usr/include/errno.h:36,
                 from scripts/basic/split-include.c:26:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: ***[scripts/basic/split-include] Error 1
make: ***[scripts_basic] Error 2
i checked to make sure my download wasnt corrupt, and it wasnt. then i tried making a symlink ln -s /usr/src/linux/include/ /usr/include. there was a thread here on LQ with the exact same problem and that was the solution but it didnt work for me. errno.h does exist in /usr/src/linux/asm-generic and in /usr/include/asm.

this is really driving me nuts, it's never happened before. perhaps i have a botched install?
 
Old 01-25-2006, 05:22 PM   #13
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Did you run make clean before make menuconfig? Sometimes that helps.

I had the kernel VFS error recently when building a 2.6.14.1 kernel. I was going throught the partition options disabling what I thought I didn't need. Turns out I needed to keep the DOS partition support in order for the kernel to recognize the drive. This is on a laptop with just an hda1. It originally had XP until I dumped it and completely reformatted as ext3. With no trace of M$ it still needed that option.

Might be worth a try enabling DOS partition support as builtin.
 
Old 01-25-2006, 06:21 PM   #14
allpurpbox
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Rep: Reputation: 0
You need to include the reiserfs fs in the kernel, not as a module, which you have done. You also need disk support, ide, etc built into the kernel as well, not as a module. Otherwise the kernel does not know what a ide hard drive is!

You also need ramdisk support built into the kernel as well since slack uses it to boot the image. Unless you have edited grub or lilo not to of course.

Last edited by allpurpbox; 01-25-2006 at 06:23 PM.
 
Old 01-26-2006, 12:46 AM   #15
pafrica
Member
 
Registered: Aug 2004
Location: canada
Distribution: Slackware
Posts: 66

Original Poster
Rep: Reputation: 15
i got sick of thinking it was a flawed install so i wiped my linux partitions clean and started over. downloaded kernel 2.6.15.1 source and compiled, same error.

i have a hunch it's got something to do with SATA. i'm trying to install on an asus z71v laptop. the thing with this laptop is that it can take either a sata or a pata hard drive using a changeable adapter. when i use the test26.i kernel from my slackware dvd, the drive is reported as sata, on 2.4.31, it says otherwise. On the other hand, this may not be an issue since i think SATA and PATA operate using the same interface.

so anyway, this is wishful *bump* hoping someone might have an answer.
 
  


Reply



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 09:02 ancient lunatic Linux - Newbie 2 03-07-2004 01:46 AM
Kernel Panic: VFS: Unable to mount root FS on 01:03 kragbax Linux - Software 2 11-03-2003 01:51 PM
Kernel Panic : VFS Unable to mount root fs on 09:02 jweasley Linux - Laptop and Netbook 2 10-12-2003 03:33 PM
kernel panic: VFS Unable to mount root fs lusko Slackware 4 11-28-2002 03:04 PM
Kernel Panic: VFS: Unable to mount root fs on 09:02 verbali Linux - General 6 05-26-2002 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:11 AM.

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
Open Source Consulting | Domain Registration