LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2004, 01:53 PM   #1
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Rep: Reputation: 15
Angry Another 'GRUB Harddisk Error'


Hi there,

I installed Fedora Core 2 (64Bit Version) on a system with Win XP Pro. After I rebooted I got a "GRUB Harddisk Error". I fixed the MBR with "fdisk /mbr" (because I needed my WinXP System). What can I do to boot Linux now (if it worked with a bootdisk, that would be fine as well)?

I have two Samsung HDDs (160 GB and 120 GB) and I tried both, to install Linux on HDD1 and on HDD2. I also tried SUSE 9.1, but I got the same error. Both HDDs seem to be physically okay (that's at least what several HDD-check-tools tell me) and I tried the installation several times.

Any help is welcomed!
Thanx, styler
 
Old 10-05-2004, 03:34 PM   #2
pongmaster
Member
 
Registered: Jul 2004
Location: London, England
Distribution: Mandrake 10.1
Posts: 300

Rep: Reputation: 30
There's a known bug about dual booting Fedora 2 and WinXP.
http://lwn.net/Articles/86835/
provides a guide on how to fix it.
 
Old 10-06-2004, 02:58 AM   #3
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for your post, pongmaster!
But I don't think that this will solve my problem, because neither do I get
Code:
Rootnoverify(hd0,0)
Chainloader +1
(as explained in the article), nor is it only a FedoraCore problem (because SUSE 9.1 fails as well).

Or am I wrong?

Thanx, styler.
 
Old 10-06-2004, 04:31 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Difficult to say what the problem is with the info you've given. Post your /etc/fstab and /boot/grub/grub.conf. That might help.
Also, read section 2.7 of the Red Hat Reference Manual on grub configuration.
You might also try googling up a copy of 'Zen and the Art of Using Grub'.
The most common problem I've seen setting up grub is that folks point grub to the /boot directory instead of /, the root of the file system. Grub wants to know first, where the root of the filesystem is, then second, where /boot/grub is.
 
Old 10-06-2004, 05:33 AM   #5
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Post your /etc/fstab and /boot/grub/grub.conf
I'd like to, but I can't access them, since I can't start Linux

Quote:
The most common problem I've seen setting up grub is that folks [...]
I didn't do anything myself, the whole configuartion was done by the Fedora Core/ SUSE Installationprogram

How can I build a bootdisk, so that I can start Linux?

Thanx, styler.
 
Old 10-06-2004, 05:48 AM   #6
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
You can boot the system with the installation disk in rescue mode. You may want to try this procedure:
http://www.linuxquestions.org/questi...04#post1174104
to write grub back to the MBR. (But if you still get errors, you will have to run Windows fdisk /mbr again.)

When in rescue mode, it's possible to get some files off your Linux partitions and on to a floppy. Do you know how to do this, or do you need help on that?

Martin
 
Old 10-06-2004, 06:36 AM   #7
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Okay I'm just back from rescue mode. I changed to /mnt/sysimage because the system told me that my FC installation would be there.
So here is what the files looked like:

/mnt/sysimage/boot/grub/grub.conf
Code:
# Comments...
# boot = /dev/hda
default = 1
timeout = 10
splashimage=(hd1,1)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
	root (hd1,1)
	kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
	initrd /initrd-2.6.5-1.358.img
title Windows XP
	rootnoverify (hd0,0)
	chainloader +1
/mnt/sysimage/etc/fstab
Code:
LABEL=/		/		ext3	defaults	1 1
LABEL=/boot	/boot		ext3	defaults	1 2
none		/dev/pts	devpts	gid=5,mode=620	0 0
none		/dev/shm	tmpfs	defaults	0 0
none		/proc		proc	defaults	0 0
none		/sys		sysfs	defaults	0 0
/dev/hdb5	swap		swap	defaults	0 0
@MartinN: I tried you hint and did the following:
I changed to /mnt/sysimage/sbin and gave the command grub-install /dev/hda. The answer was "/sbin/grub: Not found" (probably because it is in /mnt/sysimage/sbin, not in /sbin, right?).

Thanx for your help!
styler
 
Old 10-06-2004, 07:10 AM   #8
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
You should issue the command
chroot /mnt/sysimage
before trying grub-install. chroot changes the root of the filesystem so, in your case, what was /mnt/sysimage becomes /

Martin
 
Old 10-06-2004, 07:33 AM   #9
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Thanx!
I tried it again and was told that no errors occured and that /boot/grub/device.map looks like
Code:
(fd0)	/dev/fd0
(hd0)	/dev/hda
(hd1)	/dev/hdb
I rebooted and got:
Code:
GRUB Loading stage1.5
GRUB loading, please wait...
Error 21


I also tried to create a bootdisk, but the command mkbootdisk was not found


bye,
styler
 
Old 10-06-2004, 07:43 AM   #10
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
I tried a little google for
grub "error 21"
Here is a solution from someone with the same problem (BIOS Settings):
http://lists.gnu.org/archive/html/bu.../msg00082.html

The error apparently means "Selected Disk does not exist".

Good luck!
Martin
 
Old 10-06-2004, 08:43 AM   #11
the_styler
Member
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 30

Original Poster
Rep: Reputation: 15
Thanx for your help Martin!
I enabled the auto-detect for the second HDD in the BIOS and now it works

Thanx again,
styler
 
  


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
grub does not recognize harddisk legolin Linux - General 4 01-24-2005 06:20 AM
help GRUB is lost! I need to boot Linux from HardDisk varunnarang Linux - Software 9 11-20-2004 11:19 AM
Harddisk DMA error? aiza Linux - Hardware 1 09-23-2004 05:46 AM
Boot Problem with Filesystem Error on second Harddisk chansel Linux - Newbie 2 08-30-2004 02:41 AM
need help booting grub from new harddisk Daem0hn Linux - Hardware 1 10-08-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 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