LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-18-2006, 06:58 PM   #1
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Rep: Reputation: 15
Bootloader for gentoo on sda unknown-block


My disk structure on sda is as follows:

sda1: windows
sda2: boot
sda3: swap
sda4: root

I've put the kernel files on both my boot partition and root partition.

When installing grub in command line, I did:

root (hd0,3)
setup (hd0)

my grub.conf is:

title=gentoo
root(hd0,3)
kernel /boot/kernel-2.6.18-gentoo-r4 root=/dev/sda4

title=xp
rootnoverify(hd0,0)
makeactive
chainloader +1

My windows option boots just fine

When I boot Gentoo, I get the following:

VFS: Cannot open root device "sda4" 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)

I get the same thing when I use in grub.conf:

root(hd0,1)
kernel /kernel-2.6.18-gentoo-r4 root=/dev/sda2

and ran setup (hd0,1) instead when installing grub.

The part that makes no sense is that it is trying to mount hte fs on block (0,0) when I am never specifying (0,0) or sda1 anywhere. If it is looking on that partition somewhere, that would explain why it wouldn't boot since it's not going to find the kernel on the windows partition.
 
Old 12-18-2006, 07:15 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This error means your kernel cannot handle your SATA controller. You left out SCSI support and/or support for your SATA chipset when you configured your kernel.
 
Old 12-18-2006, 07:17 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Try this.

(1) Press "c" key on seeing the Grub screen and drop into a Grub prompt.

(2) Boot Gentoo manually with these lines
Code:
root(hd0,1)
kernel /boot/kernel-2.6.18-gentoo-r4 root=/dev/sda4 ro
boot
(3) Report which line Grub doesn't like and the error message. Pay attention to the parts marked red

Also are you sure your Gentoo has no initrd file? Don't run Gentoo myself but only its variants.

In a Grub prompt to reboot just type
Code:
reboot
To see what other commands available type
Code:
help
To go back the original Grub menu type
Code:
root (hd0)
chainloader +1
boot

Last edited by saikee; 12-18-2006 at 07:23 PM.
 
Old 12-18-2006, 07:19 PM   #4
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Original Poster
Rep: Reputation: 15
Emerson got it

I went back and compiled all sata and scsi support into the kernel and now it works fine.

Thanks.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sda is not a valid block device C++ Linux - Hardware 23 03-24-2008 10:07 AM
unknown-block(3.6) when compiling 2.6 kernel in Slack 11 shubb Slackware 24 12-04-2006 06:37 AM
/dev/sda is not a valid block device craig467 Linux - General 23 02-17-2006 04:50 PM
Another 2.6.8.1 problem, unknown-block(3,65) KMcD Slackware 22 10-07-2004 07:40 AM
sda is not a valid block device joesecone Linux - Hardware 7 07-29-2002 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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