LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-06-2007, 09:38 PM   #1
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Gentoo not recognizing SATA drives


Been tooling around with this problems for a few days now, and haven't found really solid answers.

Installed Gentoo on a 2nd SATA HD in my computer with XP as SATAHD, using lilo:


drive configuration:

/dev/sda = Windows install
/dev/sdb1 =/boot
/dev/sdb2 = SWAP
/dev/sdb3 =/root

Boots Fine, MBR prompt comes ups, Select Gentoo, Lilo comes up. Hit Enter. Starts Boot Process:

Then things start getting weird, when it loads my two HD's they come up as:

/hda = Windows
/hdb1-3= Linux

Obviously, i then get the error:

!!Block device /dev/sdb3 is not a valid root device
!!The root block device is unspecified or not detected


Loadup busybox shell:

Dev list confirms the above information.


I can chroot into the Gentoo installation and everything works great.


Tried 9 different manual kernel configs, tooling around with the SATA configuration because everyone on the internet instructed me that it was a SATA related error. Finally after extreme frustration i broke down and at the advice of someone i used genkernel (I KNOW! I was desperate) with --menuconfig option and selected EVERY SATA option on, just to cover all bases.

Still no luck. Suggestions?


Other info:

Lilo config:


boot=/dev/sdb1
prompt
timeout=50

image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
label=gentoo
read-only
root=/dev/ram0
append="init=/linuxrc ramdisk=8192 real_root=/dev/sdb3 udev"
initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5

Last edited by weisso5; 12-06-2007 at 09:40 PM. Reason: grammer!!
 
Old 12-07-2007, 12:22 PM   #2
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Original Poster
Rep: Reputation: 16
Solved- Chipset Problem Read:

from Gentoo Forums Team:
NeddySeagoons' Rough Guide to Intel ICH7 Chip Set

You have an Intel ICH7 Family chip set. genkernel will net set this one up correctly, so you have to help it if you want to use genkernel.
In make menuconfig choose the following options:-
Code:
Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
turn off the ATA/ATAPI/MFM/RLL support menu item entirely.
You may think this will prevent your CDROM working - it won't. I'll explain later.
Choose
Code:
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
notice how it says PATA/SATA in the name. This driver is a combined driver for both SATA and IDE modes - its peculiar to Intel. All other options on this menu must be off, including the two Intel PATA options close to the bottom. If you get that wrong your hard drive will appear as an IDE drive and be very slow as you will not get DMA modes.
Thats the low level drivers set.
Now the high level driver
go back up to
Code:
SCSI device support --->
Inside that menu choose
Code:
│ │ < > RAID Transport Class
│ │ -*- SCSI device support
│ │ < > SCSI target support
│ │[*] legacy /proc/scsi/ support
│ │ *** SCSI support type (disk, tape, CD-ROM) ***
│ │ <*> SCSI disk support
│ │ < > SCSI tape support
│ │ < > SCSI OnStream SC-x0 tape support
│ │ <*> SCSI CDROM support
SCSI CDROM support may be either <M> or <*> but your CDROM is going to be treated as a SCSI device now. It will have two entries in /dev, /dev/sr0 which is the block device you use in the normal way and /dev/sg0 which is its controlling charater device. Normally, you don't need to know that as udev takes care of creating the symlinks properly. However, if your CDROm is listed in /etc/fstab as /dev/hd... that will need to change.
 
Old 02-01-2008, 10:50 PM   #3
mvergall
LQ Newbie
 
Registered: Feb 2008
Location: Gent, Belgium
Posts: 2

Rep: Reputation: 1
Cool Thanks this was just what I was looking for ...

I had the same problem but with a ATI chipset sata device
and thanks to this info I found I've been able to fix this... It took me 2 install's and numerous kernel builds to get this system to boot from the SATA HD into gentoo.
And thanks to this tip relating to the intel chipset that I've managed to get Linux booted. This should go into the gentoo X64 installation manual or in a faq on the gentoo web site. Then poeple with newer systems would not have to be stuck like I was.
 
Old 02-02-2008, 11:20 AM   #4
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Original Poster
Rep: Reputation: 16
I found most of my info on the Gentoo Forums, so I assume it will eventually make it into the Gentoo Handbook. They are currently working on the 2008 build, so it might already be in it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LiveCD (Mandriva) not recognizing SATA Jzarecta Mandriva 2 04-18-2006 05:38 PM
Mandriva 2006 not recognizing WD SATA HD ShayA Linux - Hardware 0 02-24-2006 05:09 PM
Not recognizing SATA drives cmt9000 Fedora - Installation 1 01-19-2006 02:10 PM
Fdisk is not recognizing second SATA disk olf359 Debian 5 01-03-2006 03:42 PM
Gentoo installation not seeing SATA drives :( fez_supreme Linux - Newbie 0 10-03-2003 06:06 PM


All times are GMT -5. The time now is 06:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration