Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-19-2005, 08:57 PM
|
#1
|
Member
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88
Rep:
|
That darn "VFS: unable to mount root..." again!
I'm sorry for posting this again, but I have read through pages of these on the forums and still cannot find an answer to my problem. I run a 2.6.10 kernel on Gentoo 2004.3, and after a fresh install on one of my computers, I get this during boot:
Code:
VFS: Cannot open root device "<NULL>" or unknown-block(33,3)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(33,3)
My Grub install didn't go so well also, so I keep having to start up with the LiveCD and chroot into my new install environment to check the kernel. I have enabled EVERY file system possible NOT as a module, and still no luck. I checked my ATA/IDE settings and they look ok.
To start linux right now, I made a Grub boot disk and type in the following manually, so that it begins to boot:
Code:
root (hd1,0) <-- My 2nd HDD
kernel /boot/kernel-2.6.10-gentoo-r6
boot
Could there also be a problem with the ATA/133 Controller the HDD is attached to? (Even though it detects the drive and begins to boot?)
Matt
|
|
|
02-19-2005, 10:17 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
Quote:
VFS: Cannot open root device "<NULL>" or unknown-block(33,3)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(33,3)
|
always always always read error messages.. most of the time they will tell you whats wrong.. in this case, you need to appen the correct root= boot ontion to your kernel line in the grub config file.
somthing like root=/dev/hda1 or whatever devicde is your root partiton.
|
|
|
02-19-2005, 10:41 PM
|
#3
|
Member
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88
Original Poster
Rep:
|
Well, I fixed my grub and checked my grub.conf file, the root= option is there. Now I can boot up, and I get this:
Code:
VFS: Cannot open root device "hde3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
It's a kernel option that's not right, but I don't know where to look in the 2.6 kernel.
|
|
|
02-20-2005, 07:43 AM
|
#4
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
if hde-3 is the correct root partiton, then yes, you made a mistake configureing there kernel.
since you are not using an initrd image, it is absolutly vital that you compile all drivers that are vital to mounting the root into the kernel. not as modules.
how can the kernnel mount for example an ext3 filesystem, then the ext3 driver is stored on that filesystem.
you have 2 options...
1) make sure the following drivers are hard compiled into your kernel (selecting yes instead of module)
* your IDE controller driver
* your root filesystem driver
2) create an initrd image containing the IDE controller and filesytems driver, and pass it to the kernel at boot time via the grub command "initrd /path/to/initrd" (that line goes just after the kernel line.
all info on how to do this is on all the kernel compile guides.
|
|
|
02-20-2005, 08:57 AM
|
#5
|
Member
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88
Original Poster
Rep:
|
Well, I have a Maxtor (Promise) Ultra ATA/133 Card, and I enabled every Promise Driver in the kernel, and I double checked that ext2 and ext3 support was enabled NOT as a module and it still gives the same error message.
|
|
|
02-20-2005, 09:43 AM
|
#6
|
Member
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88
Original Poster
Rep:
|
Well, I plugged my hard drive into my motherboard instead of the controller, so that it is now hdc, and when I boot ed up with the grub option "root=/dev/hdc3", I still get the same error message. Is there something else in the kernel I am missing?
|
|
|
02-20-2005, 10:39 AM
|
#7
|
Member
Registered: Jul 2003
Location: San Luis Obispo, CA
Distribution: Gentoo 2007.0
Posts: 88
Original Poster
Rep:
|
Well, I used genkernel and now the problem is fixed. However, can I go back to manually configuring the kernel somehow again? Thanks!
|
|
|
02-20-2005, 05:54 PM
|
#8
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
yea, you can recompile the kernel as many time ar you like.
just be sure to "make clean && make mrproper" before you start compiling.
|
|
|
02-23-2005, 06:31 AM
|
#9
|
Member
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70
Rep:
|
Well, I don't think what you've suggested can solve this problem thouroughly.
I, as well, ticked every checkboxes to "yes" but not "module", then "make && make install", when booting, it still goes wrong.
And, I'm for sure that I am ussing the correct root partition.
I just wonder why Gentoo has so many pickniks, much more than other linux systems?
BTW, how can I just create an "initrd" file? Why Gentoo cannot create this file when it's configured manually?
Cheers
Quote:
Originally posted by qwijibow
if hde-3 is the correct root partiton, then yes, you made a mistake configureing there kernel.
since you are not using an initrd image, it is absolutly vital that you compile all drivers that are vital to mounting the root into the kernel. not as modules.
how can the kernnel mount for example an ext3 filesystem, then the ext3 driver is stored on that filesystem.
you have 2 options...
1) make sure the following drivers are hard compiled into your kernel (selecting yes instead of module)
* your IDE controller driver
* your root filesystem driver
2) create an initrd image containing the IDE controller and filesytems driver, and pass it to the kernel at boot time via the grub command "initrd /path/to/initrd" (that line goes just after the kernel line.
all info on how to do this is on all the kernel compile guides.
|
|
|
|
02-24-2005, 12:51 AM
|
#10
|
LQ Newbie
Registered: Feb 2005
Posts: 1
Rep:
|
hi, im having the same problem with my gentoo setup using a promise ATA card and i was woundering if you could email me the contents of your grub.conf my email is hans5849_at_gmail.com Thanks
Edit
hers what i have posed on the gentoo forums so far
Quote:
error: Kernel Panic - not syncing VFS: unable to mount root fs on unknown-block(0,0).
i have tried using different devices, my hdd is on a PCI IDE card and comes up as /dev/hdf/ so i tried using block(5,0) and that just made the computer go into a reboot cycle. Im thinking i might have to do something because the PCI card might be considered a SCSI addon. but any one have a solution for me.
Quote:
grub.conf
default 0
timeout 15
splashimage=(hd0,0)/grub/splash.xpm.gz
title= Gentoo Linux 2.6.9-R1
root (hd0,0)
kernel /kernel-.2.6.9-r1 root=/dev/hdf3 vga=792
|
|
Last edited by hans5849; 02-24-2005 at 01:01 AM.
|
|
|
02-26-2005, 04:10 PM
|
#11
|
LQ Newbie
Registered: Feb 2005
Location: Whidbey Island
Distribution: Gentoo
Posts: 3
Rep:
|
Quote:
Originally posted by hans5849
hi, im having the same problem with my gentoo setup using a promise ATA card and i was woundering if you could email me the contents of your grub.conf my email is hans5849_at_gmail.com Thanks
Edit
hers what i have posed on the gentoo forums so far
|
[/QUOTE]
I just had the same problem on my Gentoo system yesterday while upgrading to kernel 2.6.10-r7. Compiling fsreiser support into the kernel instead of as module solved the problem for me.
Hope this helps! Good luck!
|
|
|
02-28-2005, 12:51 PM
|
#12
|
LQ Newbie
Registered: Feb 2005
Location: San Diego, CA
Distribution: SuSE/RH/SW/Mdrk/etc
Posts: 2
Rep:
|
Kernel panic - not syncing: VFS: Unable to mount root fs
I have the same problem. I've reinstalled Gentoo a several times now and it all comes out the same. At first I thought it might be the fs issues. I had reiserfs compiled into a custom configured kernel (not a module). That should have been sufficient. But I decided to make all partitions ext3 just to keep things simple. I did this whole procedure on a vmware machine simulating SCSI drives. I also did it on a very ordinary ide machine itself. Same thing. The only thing in common really is me and how I went about setting things up. I followed the install guide almost exactly. I didn't really understand how to use the precompiled or pseudo packaged genkernel options so I just got the entire 2.6.10 source and did it myself. I could have overlooked somecritical thing that seemed very inappropriate on my system, but I did get all the devfs and other pseudo fs stuff.
I can see that Gentoo would be the ultimate in cool distros, but, it does not work. I'd like to get past this.
|
|
|
02-28-2005, 03:48 PM
|
#13
|
LQ Newbie
Registered: Feb 2005
Location: Whidbey Island
Distribution: Gentoo
Posts: 3
Rep:
|
Re: Kernel panic - not syncing: VFS: Unable to mount root fs
Quote:
Originally posted by TechXed
I have the same problem. I've reinstalled Gentoo a several times now and it all comes out the same. At first I thought it might be the fs issues. I had reiserfs compiled into a custom configured kernel (not a module). That should have been sufficient. But I decided to make all partitions ext3 just to keep things simple. I did this whole procedure on a vmware machine simulating SCSI drives. I also did it on a very ordinary ide machine itself. Same thing. The only thing in common really is me and how I went about setting things up. I followed the install guide almost exactly. I didn't really understand how to use the precompiled or pseudo packaged genkernel options so I just got the entire 2.6.10 source and did it myself. I could have overlooked somecritical thing that seemed very inappropriate on my system, but I did get all the devfs and other pseudo fs stuff.
I can see that Gentoo would be the ultimate in cool distros, but, it does not work. I'd like to get past this.
|
I chose the kernel sources gentoo-dev-sources, using xconfig, no genkernel. I followed these docs to the point:
http://www.gentoo.org/doc/en/migration-to-2.6.xml
http://www.gentoo.org/doc/en/handboo...ok_part1_chap7
Are you sure you installed udev?
Yes, Gentoo is the ultimate in cool distros! I love it!
I'll send you my .config file, so you can compare and see if you may have missed an option.
|
|
|
02-28-2005, 03:57 PM
|
#14
|
LQ Newbie
Registered: Feb 2005
Location: Whidbey Island
Distribution: Gentoo
Posts: 3
Rep:
|
Re: Re: Kernel panic - not syncing: VFS: Unable to mount root fs
Oops! Couldn't contact you via email. Please send me am email to request a copy of my .config file.
|
|
|
03-01-2005, 12:41 PM
|
#15
|
LQ Newbie
Registered: Feb 2005
Location: San Diego, CA
Distribution: SuSE/RH/SW/Mdrk/etc
Posts: 2
Rep:
|
Works. Wonder what's the difference.
Ok, I finally got it to boot. I followed cogsci's advice and stuck with the instructions. Instead of ignoring the whole genkernel thing, I learned about it and used it to compile. I used the --menuconfig option and whatever it did (beyond my menu configing), it worked. The part that bugs me (the whole attraction to this distro) is what exactly did it do that I didn't? I don't know. One possible problem is that I didn't use a Gentoo boot disk. I had a sysresccd.org cd (which is based on Gentoo and mightily kicks ass) and I got everything started from that. Maybe that causes subtle problems.
But I'm sticking with it. Gentoo is too great of an idea to get put off by a little thing like it not working.
For example, it wasn't done doing a compile before I had to go to work and I realized that there was a sshd on this rescue disk. I fired that up and now I can monitor and continue installing this OS remotely. Oooh. I'm going to get emotional.....
|
|
|
All times are GMT -5. The time now is 09:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|