Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-29-2005, 06:02 PM   #1
LQ Newbie
Registered: Apr 2005
Distribution: fedora core 3
Posts: 19

Rep: Reputation: 0
Angry grub

well...i had a problem with my system and had to do a full format(thats another really long story initself). Ok well so i installed windows 2k first so it wouldnt overwrite the master boot record, then on my other hard drive i installed the new test version of fedora core 4. So any way i told fedora to overrite the master boot record in order to do a dual boot, and after the install i rebooted the system and windows started automatically. Linux will boot if i go in the cmos and change the drive order but the grub will not boot the "other " os. Im sure this can be fixed with a simple command, but i do not know the command and i dont want to try and figure it out and tottaly screw the system again. I mean i can still boot both linux and windows but i have to change the boot order everytime. Does anyone no the command to fix this?
Old 05-29-2005, 06:17 PM   #2
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
It sounds as if when you re-installed the linux, that you told the grub to install to the first section of the mbr, but it didn't necessarily know that you meant the mbr on the first hard drive.

Hence the install of grub is on the 2nd one - /dev/hdb, whereas, if I understand it correctly, it should have overwritten the windows mbr, you would then have needed the entry for windows on the first hard drive e.g. /dev/hda for it too boot - I think!


Old 05-29-2005, 06:20 PM   #3
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
here's an n-step plan for you:
1) find out how grub.conf works
2) make a backup of your current boot sector & grub.conf
3) make sure you can boot into GNU/Linux if grub dies (boot disk, live CD)--I suggest boot disk, with (2) on it as well.
4) edit grub.conf
5) run grub.

hth --Jonas
Old 05-29-2005, 06:25 PM   #4
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
At a rough guess, I'd say that you didn't install grub to the MBR, you only installed it to the root of the Linux partition.

Since you don't list your /etc/fstab or /boot/grub/grub.conf, I can't give you specific instructions on how to fix it.

Google up a copy of 'Zen and the Art of Grub'; it has step-by-step instructions detailing how to setup grub. While you're at it, check the contents of grub.conf to see if win2k is listed. If not, then Fedora didn't detect it and write the conf for win2k; you'll have to do that manually.There are many threads on these boards on how to fix that; what entries to make, etc.

If you had written grub to the MBR, win2k would not boot automagically, you would see the grub menu, which allows you to use the arrow keys to select which OS to boot.
Old 05-29-2005, 06:28 PM   #5
Registered: Jan 2004
Distribution: Slackware 10
Posts: 51

Rep: Reputation: 15
just use the hd with grub as the 1st boot device and add windows to the grub.conf/menu.lst
if windows is installed on /dev/hda1

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

Last edited by Ry12; 05-29-2005 at 06:30 PM.


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
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 10:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration