LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-07-2007, 07:02 PM   #1
nomind
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Unable to boot from an AHCI enabled SATA disk


I'm having a very strange problem with installing Grub to the MBR after switching my sole SATA disk to AHCI mode (Standard IDE mode has all kinds of problems with Linux). Both the automated grub-install and manual grub shell setup fail to install Grub to the MBR correctly (although the output messages make it seem as if everything has gone perfectly).

I have 3 ext3 partitions and 1 swap, all primary. /dev/sda1 and /dev/sda2 contain Ubuntu 6.06 and Gentoo 2.6.20-r8 installs respectively, with sda3 being swap and sda4 currently empty.

Here is my grub.conf from Gentoo:
Code:
default 0
timeout 15

title=Gentoo Linux 2.6.20-r8
root (hd0)
kernel /boot/kernel-2.6.20-gentoo-r8 root=/dev/sda2
Note that the Ubuntu install is "hidden" (I was too lazy to copy over the relevant lines from menu.lst on /dev/sda1). Here's what I execute in the Grub shell:
Code:
root (hd0,1)
setup (hd0)
quit
And all seems to go well. However, viewing the first 512 bytes (the MBR) shows something bad - I see the message "Grub Geom Hard Disk Read Error" with a few binary characters in between the words. Okay, so Grub cannot determine the correct disk geometry for some reason. However, executing "geometry (hd0)" within the Grub shell gives the correct output (confirming with fdisk).

I'm at my wit's end here. I've tried different combinations of BIOS settings and nothing seems to make it boot from the SATA disk. I just get the message "Insert media in Boot Device or reboot".

Has anybody else experienced similar issues?
 
Old 07-08-2007, 05:23 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Is your /boot/grub/device.map file contents still pointing to a dev/hd* ?
 
Old 07-08-2007, 08:12 PM   #3
nomind
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Unfortunately I already switched back to Standard IDE and nuked all of the partitions. Although I do recall using device.map sometime during my numerous experiments.

I'll try to force Grub to use the geometry info reported in Standard IDE mode with a different drive.
 
  


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
Sata Ahci Nikosis Fedora 1 06-23-2007 02:45 PM
SATA AHCI problem with i925x (ICH6) on Kernel 2.6.10 Sironius Linux - Hardware 8 04-12-2005 05:40 PM
Does Anyone Have Ahci Sata Hard Drive Working Under Red Hat 2.4.29 ??? zotyi Linux - Hardware 4 04-11-2005 05:27 AM
Does Anyone Have Ahci Sata Hard Drive Working Under Red Hat 2.4.29 ??? zotyi Linux - General 1 04-11-2005 05:06 AM
SATA AHCI problem under 2.4.29 and Intel915G banga Linux - Hardware 3 03-15-2005 04:33 AM


All times are GMT -5. The time now is 09:16 PM.

Main Menu
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