Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > ERROR: VFS: Cannot open root device or unknown-block(0,0)

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-23-2007   #1 (permalink)
Linux User
 
Join Date: Aug 2005
Posts: 341
ERROR: VFS: Cannot open root device or unknown-block(0,0)

Hi,

So last night after getting errors trying to install wireless-tools for my laptop during the Gentoo installation, I removed the -Wall -Werror flags I had in my CXXFLAGS and compiled everything like a charm. When I try to boot Gentoo, however, I get the following error:

Code:
VFS: Cannot open root device "sdb4" 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)
Now I've checked and double-checked my fdisk partition table and my grub boot menu, and cross-referenced it with the example partition scheme in the Handbook.

My fdisk table is the following:

Code:
/dev/sdb1 is swap space
/dev/sdb2 is ReiserFS running Ubuntu
/dev/sdb3 is /boot for Gentoo
/dev/sdb4 is / for Gentoo
My GRUB entry for Gentoo is:

Code:
title=Gentoo Linux 2.6.20-r8
root (hd1,2) [hd1,2 is sdb3 which is my Gentoo boot]
kernel /boot/kernel-2.6.20-gentoo-r8 root=/dev/sdb4 [sdb4 is my / partition]
The manual has the following partition scheme:

Code:
/dev/hda1 is boot
/dev/hda2 is swap
/dev/hda3 is /
The manual offers the following as an example for GRUB:

Code:
title=Gentoo Linux 2.6.19-r5
root (hd0,0)
kernel /boot/kernel-2.6.19-gentoo-r5 root=/dev/hda3
Therefore, root (hd0,0) for them is like root (hd1,2) for me
Therefore root=/dev/hda3 for them is like root=/dev/sdb4 for me

Just like I have already. And it still won't load. I'm out of ideas, and I'm hoping someone out there can help me out. I've had great help from a few people already on other topics, and this one was started in the wireless-tools thread of mine, but I figured I'd put it here since it's a different issue.

- GPAC
GivePeaceAChance is offline  


Reply With Quote
Old 05-23-2007   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
how many Harddisks are plugged-in your machine?
why SATA disk is sdb? if you have only one SATA disk, it should be sda.
post the contents of Gentoo's /boot/grub/device.map file and output of fdisk -l command.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-23-2007   #3 (permalink)
Linux User
 
Join Date: Aug 2005
Posts: 341
The sdb is because I have two hard disks. Toshiba Qosmio G30 for ya. windows on one disk, linux on the other. I'll post what you want in about an hour. Cheers.
GivePeaceAChance is offline   Reply With Quote
Old 05-23-2007   #4 (permalink)
Linux User
 
Join Date: Aug 2005
Posts: 341
Hmmm.... I'm looking here and I have no device.map in the directory you specified.

My Gentoo fstab:

Code:
/dev/sdb1               none            swap            sw               0 0
/dev/sdb2               /mnt/Ubuntu     reiserfs        user,notail      0 1
/dev/sdb3               /boot           ext2            user,noauto      1 2
/dev/sdb4               /               ext3            user,noatime     0 1

/dev/sda1               /media/Windows  ntfs    user,nls=utf8,umask=0222 0 0
/dev/sda2               /media/fat32    vfat    users,defaults,umask=000 0 0

/dev/cdrom              /mnt/cdrom      auto            auto,user        0 0
And here's the output fdisk -l gave me:

Code:
Disk /dev/sda: 95.0 GB, 95034885120 bytes
255 heads, 63 sectors/track, 11554 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1306    10490413+   7  HPFS/NTFS
/dev/sda2            1307        1567     2096482+   c  W95 FAT32 (LBA)
/dev/sda3            1568       11553    80212545    7  HPFS/NTFS

Disk /dev/sdb: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          65      522081   82  Linux swap / Solaris
/dev/sdb2              66         457     3148740   83  Linux
/dev/sdb3   *         458         462       40162+  83  Linux
/dev/sdb4             463       12161    93972217+  83  Linux
P.S. Damn, that command is handy. Nice tables!
GivePeaceAChance is offline   Reply With Quote
Old 05-24-2007   #5 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
there must be a device.map file in /boot/grub folder. GRUB looks in device.map file for disk names.
according to output of 'fdisk -l' command and contents of /etc/fstab, contents of device.map file should be
Code:
(hd0)  /dev/sda
(hd1)  /dev/sdb
if there isn't any device.map file in Gentoo's /boot/grub, create new and type above code.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-24-2007   #6 (permalink)
Linux User
 
Join Date: Aug 2005
Posts: 341
I checked Ubuntu's grub and the file was there, so I checked the contents via cat and copied the file to /gentoo/boot/grub. I reboot my computer and trying getting into Gentoo again, but nothing. I'm assuming what you told me to do wasn't the end of my woes. So what next?
GivePeaceAChance is offline   Reply With Quote
Old 05-24-2007   #7 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
post the contents of Ubuntu's menu.lst file.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 05-24-2007   #8 (permalink)
Linux User
 
Join Date: Aug 2005
Posts: 341
The following is Ubuntu's menu.lst, however it is not the current one grub is using.

Code:
title           Ubuntu, kernel 2.6.15-28-386
root            (hd1,1)
kernel          /boot/vmlinuz-2.6.15-28-386 root=/dev/sdb2 ro quiet splash
initrd          /boot/initrd.img-2.6.15-28-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title           Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title           Windows XP Media Center Edition
root            (hd0,0)
savedefault
makeactive
chainloader     +1
The current one grub is using in in gentoo's /boot/grub, which is this:

Code:
title=          Gentoo Linux
root            (hd1,2)
kernel          /boot/kernel-2.6.20-gentoo-r8 root=/dev/sdb4

title=          Ubuntu Linux
root            (hd1,1)
kernel          /boot/vmlinuz-2.6.15-28-386 root=/dev/sdb2 ro quiet splash
initrd          /boot/initrd.img-2.6.15-28-386
boot

title=          Windows XP Media Center Edition
root            (hd0,0)
makeactive
chainloader +1
GivePeaceAChance is offline   Reply With Quote
Old 05-24-2007   #9 (permalink)
Just Joined!
 
Steve0008's Avatar
 
Join Date: May 2007
Location: Columbia, MO
Posts: 4
Send a message via AIM to Steve0008
A few quick questions to try and narrow down the problem...
-Do Windows and Ubuntu boot using this grub.conf?
-Has Gentoo ever booted before from this grub.conf?

I ask these because this looks to me like more of a kernel problem than a grub problem. The grub.conf looks correct to me assuming you placed the bzImage in the correct place. Sorry if I'm restating anything anyone else said or something you've answered before, but skimming through the posts, I didn't see anything mentioned about your kernel.
Steve0008 is offline   Reply With Quote
Old 05-24-2007   #10 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,058
Send a message via Yahoo to devils casper
Quote:
Originally Posted by steve0008
I ask these because this looks to me like more of a kernel problem than a grub problem. The grub.conf looks correct to me assuming you placed the bzImage in the correct place. Sorry if I'm restating anything anyone else said or something you've answered before, but skimming through the posts, I didn't see anything mentioned about your kernel
I Agree. something is wrong with kernel only. grub.conf file is configured correctly. problem is coz of kernel only.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:34 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2