LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Unable to boot from an AHCI enabled SATA disk (https://www.linuxquestions.org/questions/linux-hardware-18/unable-to-boot-from-an-ahci-enabled-sata-disk-567483/)

nomind 07-07-2007 07:02 PM

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?

HappyTux 07-08-2007 05:23 PM

Is your /boot/grub/device.map file contents still pointing to a dev/hd* ?

nomind 07-08-2007 08:12 PM

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.


All times are GMT -5. The time now is 01:46 AM.