LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2003, 05:37 AM   #1
gtanghookup
LQ Newbie
 
Registered: Sep 2003
Location: Portland, Oregon
Distribution: Debian and Gentoo
Posts: 27

Rep: Reputation: 15
Question grub hard disk error


I have been trying to get a Gentoo Linux/Windows 98 dual boot system up and running for a few days now... My main difficulties have come from partitioning my hardrive correctly, however now I think that I'm ok as far as that goes...
If this helps however...
/dev/hda1 * Win95 FAT32 (LBA)
/dev/hda2 Linux
/dev/hda3 Linux
/dev/hda4 Win95 Ext'd (LBA)
/dev/hda5 Linux Swap

First I installed windows 98 on the first primary partition, afterwards I installed Gentoo Linux using hda2 as /boot, hda3 as /, and hda5 as my swap partition.
My problem arises as I boot my system, I have installed grub on my system and run
the command root (hd0,1) to specify my boot partition, and setup (hd0) to install
grub on my MBR. (Windows was sucessfully installed and booted before I replaced
the MBR, so I know the hardrive is fine.)
So I boot my computer after installing Linux and GRUB, what do I see?
While the system is attempting to find a boot device it returns the message
'GRUB Hard Disk Error'

My question is of course, what the problem may be. I wouldn't think that the problem would lie in fault of my grub.conf, which seems fine, because GRUB is
never loaded in the first place. But here it is for reference:

default 0
timeout 20
splashimage=... who cares
title=Gentoo Linux
root (hd0,1)
kernel (hd0,1)/boot/bzImage root=/dev/hda3

title=Windows 98
rootnoverify (hd0,0)
chainloader +1

I have seen that some suggested to make the hardrive information in the BIOS of
my motherboard static, I did so and no difference.
What would cause a hard disk error in grub?
Thank you for your time!
 
Old 04-21-2004, 09:13 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I don't have gentoo but this post may be useful
http://www.linuxquestions.org/questi...linuz+and+grub

change bzimage to vmlinuz.

(2) a minor matter, you have set root command (to boot folder) as an absolute pathway which is fine.
then you don't need the (hd0,1) on the kernel line as you can specify a relative / pathway.

so its

root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda3
 
Old 04-21-2004, 09:17 PM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ohh, forgot to say you can edit your boot commands at the mbr prompt for grub.

If you make a mistake its not a permanent change ok.

at mbr grub prompt see the text saying E for edit the boot line you want, gentoo

so firstly arrow to the kernel line and do a E again to edit once happy I think you will see B boots the amended commands.

Then you need to go into your /boot folder and make the grub file correct for excellent booting in future, assuming I am right of course.

And then is no need to rerun any GRUB commands.
 
Old 04-21-2004, 09:22 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
sometimes it helps to look at someone elses. here is what I got
Code:
default 1
splashimage=(hd0,4)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.4
root (hd0,4)
kernel /kernel-2.6.4       root=/dev/hda6
title=Windows XP
rootnoverify (hd0,1)
chainloader +1
(hd0,4) is my boot partition
did you leave out the splashimage location for your post only? I don't think that would matter, but I am not sure.
 
Old 04-21-2004, 11:34 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
shanenin

How about that? Since you can boot yours, do you have a link to that kernel file in /boot folder by any chance to vmlinuz. My guess is that you have done a re-compile and may not have linked to vmlinuz then again I am often wrong.
 
Old 04-22-2004, 12:00 AM   #6
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
I used a bzImage instead of vmlinux. I think the only difference is the compression method they use(not sure about that) kernel-2.6.4 is my bzImage just named differently. I am not really sure if I answered your question.
 
Old 04-22-2004, 04:08 AM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
thats ok, some people link there new kernel to vmlinuz but the beauty of linux is you can almost do whatever you like
 
Old 04-24-2004, 12:33 AM   #8
gtanghookup
LQ Newbie
 
Registered: Sep 2003
Location: Portland, Oregon
Distribution: Debian and Gentoo
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the help guys, however I posted the original question last Christmas... Once again though I thank you, and hope that I can use this discussion for future reference if I encounter the problem again. How I solved it was the cheap way... I installed LILO instead of GRUB. When I compiled the kernel, I compiled it as a 'bzImage' I really am not familiar with the difference between bzImage and vmlinux. From what shanenin said, it has something to do with how they are compressed, does this make a difference? Why does compression matter? I wouldn't think you would get too much of a performance difference as far as compression goes... Anyhow I do have an intermittent problem with LILO now, I don't know if you've heard of something similar... Every 3-4 boots or so, when I boot Linux, I receive a message right when LILO tries to boot the kernel. LILO is telling me that the kernel is corrupted in some way and the machine halts. It's not too big of a deal though because I rarely reboot my computer. But it is an annoyance, have you ever heard of such a problem? aus9 and shanenin, Thanks for your time!

PS
Also, since I compiled the kernel as 'bzImage' do you still think that using vmlinux would make a difference, or even be valid?
 
  


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
Message: Grub Hard Disk Error frfrazier Linux - Newbie 2 11-18-2005 09:59 PM
Grub hard disk error old thinkpad SUSE 9.3 Alvarez SUSE / openSUSE 0 09-15-2005 12:40 PM
GRUB hard disk error 0perat0r Linux - Newbie 3 02-24-2005 12:17 AM
GRUB Hard Disk Error joe_wilkins2001 Linux - Newbie 1 01-25-2004 04:29 PM
GRUB Hard Disk Error joe_wilkins2001 Linux - General 1 01-25-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:33 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
Open Source Consulting | Domain Registration