LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-29-2006, 05:22 PM   #1
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
VFS: cannot open root device "sda3" or unknown-block (0,0)


i just finished installing gentoo and after rebooting and able to boot, the booting process goes on for like 5 seconds and then it stops complaining that "sda3" is not real root.

here is the exact message

VFS: cannot open root device "sda3" or unknown-block (0,0)
please append a correct "root=" boot option
kernel panic- not syncing: VFS: unable to mount root fs on unknow-block(0,0)

here is my /etc/fstab

/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / xfs noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/sda4 /home xfs noatime 0 1
/dev/cdroms/cdrom /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto,user 0 0

none /proc proc defaults 0 0

none /dev/shm tmpfs nodev,nosuid,noexec 0 0

here is my grub.conf file

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title= Gentoo Linux 2.6.15

root (hd0,0)
kernel /kernel-2.6.15-gentoo-r1 root=/dev/sda3


thanks in advance
 
Old 01-29-2006, 06:01 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Looks like your kernel lacks some hardware support. SATA or SCSI controller is not recognized, I guess.
 
Old 01-29-2006, 06:15 PM   #3
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
if you used genkernel you may be forgetting the 'initrd' part of teh grub configuration.
 
Old 01-29-2006, 06:48 PM   #4
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
i compiled the kernel manually and i have recompiled twice to ensure that i inclueded support for sata and scsi device and still no go. does it make a different if i go back and recompiled using genkernel ? my first try, i used genkernel but it just hanged and nothing happened so i rebooted and compiled manually. any advise will be apreciated
 
Old 01-29-2006, 06:56 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You need support for your chipset naturally. lspci -v and lshw can give you clue what exactly do you have there.
 
Old 01-29-2006, 07:17 PM   #6
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
i recompiled using genkernel, rebooted and now im getting a different error message

>>loading Modules
>>activating udev
>>determining /dev/sda3 is not a valid root device
!! Block device /dev/sda3 is not a valid root device...
!!The root bolck device is unspecified or not detected

please specify a device to boot, or "shell" for shell

boot() ::
 
Old 01-30-2006, 07:59 AM   #7
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
anyone? anyone?
 
Old 01-30-2006, 08:14 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Hm. Make sure you have your SATA contoller support and root filesystem (XFS) support compiled in (not as module) - then it works. Unless you want to fiddle with initrd, never used it myself.
 
Old 01-30-2006, 12:10 PM   #9
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
hey thanks for the reply emerson. i have compiled the kernel both manually and via genkernel at least 6 times and i have ensure that support for scsi devices and all filesystems are built in to the kernel and still getting the same message. I was able to successfully installed gentoo before but i was using linux-2.6.14-gentoo-r1 so maybe the new kernel does not like sata drives. maybe i'll download that kernel and try to install it again, see if that works. other than that, i cant think of anything else. the one thing that i did which i dont know if it makes a difference or not is that after assigning filesystmes to my / & /home partition, i edited the fstab file and changed them to ext3 and later on changed them back to xfs. i really doubht that this change is causing the problem.
 
Old 01-30-2006, 12:28 PM   #10
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Quote:
Originally Posted by snakeo2
the one thing that i did which i dont know if it makes a difference or not is that after assigning filesystmes to my / & /home partition, i edited the fstab file and changed them to ext3 and later on changed them back to xfs. i really doubht that this change is causing the problem.
Maybe it is. Unless you allready build in support for your xfs to the kernel.

http://www.gentoo.org/doc/en/handboo...?part=1&chap=7

Your grub.conf should looke like this:
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r10
Replacing the version with your current offcourse.

I've had this error several times before and I solved it by using genkernel, and afterwards added the above info to my grub.conf.
http://www.gentoo.org/doc/en/handboo...part=1&chap=10

Similar problem can be found here:
http://forums.gentoo.org/viewtopic-t...block+0+0.html

Hope this gets you going


Sincerely, Jørgen

Last edited by anti.corp; 01-30-2006 at 12:45 PM.
 
Old 07-05-2012, 08:23 PM   #11
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
I need support for SCSI. I didn't know that the kernel saw modern harddrives as SCSI. I thought it was referring to old obsoleted hardware. This problem is fixed, onto the next!

EDIT: And no, I did not need an initramfs. I'm booted up just fine without it. According to the gentoo handbook, you only need that if you have separate partitions for things such as /usr and /etc/. I just have partitions for / /boot /home and swap.

Last edited by fakie_flip; 07-05-2012 at 08:25 PM.
 
  


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
VFS: Cannot open root device "cobd1" or unknown-block(117,1) lorenzobalan Linux - General 4 12-12-2007 06:19 PM
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 03:39 AM
New kernel - VFS: Cannot open root device "301" or unknown block(3,1) j0y Debian 2 04-30-2005 09:14 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM
VFS: Cannot open root device "1601" or unknown-block(22,1) takehora Slackware 3 06-11-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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