LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-02-2010, 04:37 AM   #1
lxuser
LQ Newbie
 
Registered: Aug 2004
Location: Australia
Distribution: many
Posts: 8

Rep: Reputation: 0
GRUB read error after adding SATA drives


I installed debian 5.0.4 server on a PC that has both IDE and SATA controllers.
I used an IDE HD to install the OS. The input device was a USB DVD unit.

The IDE drive showed as /dev/hda and the 4 SATA HDs showed as /dev/sda1, /dev/sda2, /dev/sda3 and /dev/sda4.

After the OS was installed the reboot started which brought up an error:
GRUB GRUB Read Error

I then disconnected the SATA HDs and rebooted successfully. So no PROBLEMS with just the IDE drive connected, grub works fine.

If I reconnect the SATA HDs though grub fails with:
GRUB GRUB Read Error

Any suggestions on the matter would be appreciated.

I have not mixed IDEs and SATAs before and maybe I should not do that, please help.

much appreciated

****************

I have investigated this a little further and I have concluded the following:
The problem originated when the installation got to the GRUB implementation. Here the installer engine asked me If I wanted GRUB to be installed on the MBR, to which I said YES.
The installer had listed the IDE drive (/dev/hda) before the SATA drives (/dev/sda, /dev/sdb, /dev/sdc, /dev/sdd).
After the installation finished and the machine was restarted, BIOS looked at the SATA drives first could not find the grub stages and it displayed an "Read Error".

After realising what was happening I looked at the BIOS settings to see if the HD booting sequence could be altered. The BIOS did indeed list the 4 SATA drives first and the IDE HD last. BUT it would not let me alter the booting sequence. So I was stuck with what the BIOS doing. So I decided I take the IDE drive out and create a 20G partition on the first SATA to accommodate the OS. So now everything works OK.

Thanks mys and mweed for taking the time to help me.

Last edited by lxuser; 04-04-2010 at 11:40 PM. Reason: Explained what I finally did to fix my problem.
 
Old 04-02-2010, 06:44 AM   #2
mys
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 1
for info I have mixed ide and sata drives though I could only get it to work on my pc by using the sata drive followed by the IDE drive by installing to sata then adding the ide drive afterwards....
 
Old 04-02-2010, 09:51 AM   #3
mweed
Member
 
Registered: Mar 2006
Posts: 33

Rep: Reputation: 17
Sounds like when grub is getting hard disk info from BIOS the SATA disks are being added before the IDE drives. Grub groups all disks together in a HD#,# here the first # is the physical drive (0, 1, 2, etc) and the second is the partition (also numeric).

use the rescue mode CD for your distro. chroot to your base OS. Edit grub.conf for the new boot drive. run grub-install.
 
  


Reply

Tags
grub, ide, sata


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
Adding 2 new SATA drives as RAID1 danimalz Debian 1 02-08-2009 11:54 AM
Adding SATA RAID 5 secondary drives to Ubuntu (8.04) after installation dangerousdave Linux - Newbie 2 04-28-2008 07:14 PM
System freezes when I write to/read from either of my two new SATA drives jagavskyrproblem Linux - Hardware 0 09-22-2007 11:22 PM
Can't read SATA drives in new kernel rpg Linux - Hardware 5 06-27-2007 07:32 PM
Adding SATA drives The_JinJ Linux - General 2 01-04-2006 03:38 PM


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

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