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 01-16-2005, 09:34 PM   #1
gjh
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
grub won't work with SATA drive


I have read several threads regarding GRUB and SATA drives in this forum,
including the fine howto from aus9. I have tried a number of potential
solutions to no avail, so here is another one.

I installed Fedora Core 3 without incident on a ABIT IS7 MB. The IDE slots
are occupied by a zip drive (IDE Master) and a DVD-ROM and DVD-Writer
on IDE-2. The BIOS is configured with the SATA drives at IDE-3 and IDE-4
master's. When the system boots, GRUB runs but fails over to text mode.
If I set the root to (hd2,0) and enter

kernel vmlinuz-2.6.9-1.667 root=/dev/sda6
initrd initrd-2.6.9-1.667.img
boot

It boots fine. I tried setting the device.map file with

hd0 /dev/sda

and running "grub device-map=device.map" and then installing with
setup (hd0) and that didn't help. So I changed everything to hd2 and
modified the menu.lst and grub.conf file to:

root (hd2,0)
kernel vmlinuz-2.6.9-1.667 ro root=/dev/sda6 rhgb
initrd initrd-2.6.9-1.667.img

and tried again. Same result. However, I can now get the splashscreen
and a normal boot from text mode with "configfile (hd2,0)/grub.conf.

I'm stumped and suspect this is quite simple. Does anyone have any
ideas?

Thanks in advance.

gjh
 
Old 01-16-2005, 09:58 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
1 are you using a sata boot card?

sata cable can not (imho) connect to an IDE connector.

2 You have some typos in your boot commands so I hope you corrected them for your menu.lst file

its kernel / (add the /)

3 I accept all praise so will try to help heh heh

4) when you log in next.......type su and grub in a terminal and just use the trouble-shooter to see what grub is thinking of your hardware

eg
su
grub
root (hd AND PRESS THE TAB KEY

or
su
grub
find /etc/fstab

5 I still think you will get there by correcting the typos and using root (hd2,0)
 
Old 01-17-2005, 10:12 PM   #3
gjh
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks,
I actually have all the appropriate "/"'s and such. If I give the configfile command from text mode, it
boots without problem, so I assume that the grub.conf file is OK.

I did as you suggested and tested to see what Grub sees for devices. Before Stage 2 loading, its
sees (hd0) and (hd2), with (hd2) having the system on it. After a complete boot, it sees
(hd0) and (hd1), with (hd0) having the system on it. I don't know for sure how grub does its thing.
Is the device map stored in the boot sector or boot track? I have tried various combinations of
device maps and I have tried using both (hd2) and (hd0) and neither will get past stage1, so it obviously can't
find grub.conf.

If I set up grub.conf with (hd0) as the root, then from text mode grub setting the configfile fails because at
that time, grub sees the system on (hd2). It almost appears that grub can't find stage 2 because it won't
look beyond (hd1), or it is confused by there being a hole in the device map (there is no (hd1)).

I pulled out the zip drive and got another combination. After grub fails over to the command mode,
(hd1) is the system disk, and after booting manually, (hd0) is the system disk. If I set up grub.conf
for (hd1), it still fails. This is getting pretty silly and I know that SUSE, for example, can boot off of
a SATA drive, so I'm just going to have to keep experimenting.

If you have any ideas, I would love to hear them, but I'm not sure its worth investing a lot of time. If the
Fedora people aren't interested in making it work I'll try some other distro or just boot manually.

Thanks,
gjh
 
Old 01-17-2005, 10:49 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
oops I did not check your device.map info very well

http://www.linuxquestions.org/questi...hreadid=277615

mentions my device.map file

2 and that poster may have an issue with scsi emulation needing a kernel append, altho at this unconfirmed, but you could try it.

3 the other thing you can do is put unique files on each storage drive and then use the find command at grub command to see what it is seeing before kernel installed and compare to full boot....if possible

4 if it is too much trouble, I agree so humbly suggest you consider that I installed Mdk on to a Sata no probs
 
  


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
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
Installing grub onto sata drive to redirect to ide in Suse 9.3 d3viant Linux - Hardware 2 06-21-2005 09:14 AM
Using GRUB to load XP on *third* drive (SATA) gvaught Linux - General 11 02-07-2005 07:26 AM
RH9 and SATA - Kernel 2.4.27 - how to get SATA to work? rolf_mueller Linux - Hardware 5 10-30-2004 08:30 PM
grub tutorials and grub with sata dARkHunTEr Linux - Software 0 07-16-2004 12:07 PM

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

All times are GMT -5. The time now is 02:23 PM.

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