Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Siplus on 3 July 2003, 07:01

Title: Windows reinstall on a duel boot system
Post by: Siplus on 3 July 2003, 07:01
i'm going to take a guess here and say that windows (2k) is going to wipe grub from my MBR. how do i get it back on there?

i do have a bootup disk for my redhat install, and i really don't want to reinstall redhat for somethign so small as a bootloader
Title: Windows reinstall on a duel boot system
Post by: Stryker on 3 July 2003, 07:12
when in as root (after the reinstall) do:

grub-install /dev/hdX

whereas X is your hard disks main file... usually hda
Title: Windows reinstall on a duel boot system
Post by: Maniaman on 3 July 2003, 21:28
That happened to me too. My question is how would I add Windows to the list to choose from when I start the computer? (I'm using Mandrake 9.0)
Title: Windows reinstall on a duel boot system
Post by: Siplus on 3 July 2003, 21:40
hmm, well i can't look at my grub file right now, but you would add the entry to your /etc/grub.conf.


thanks for your help
Title: Windows reinstall on a duel boot system
Post by: Stryker on 3 July 2003, 10:15
If you had windows in((STALLED)) before that, it should still be in the file, all grub-install does is update the boot sectors. If it wasn't installed, you would add the following to the /etc/grub/grub.conf file:

title Windows
root(hdX,Y)
chainloader +1

Where X is the hard drive, usually hd0 or hd1, and Y is the partition number. Grub works a little weird though, partition 1 would be partition 0 in grub. 2 would be 1... and so forth.
Title: Windows reinstall on a duel boot system
Post by: Maniaman on 4 July 2003, 07:36
I'm not using grub.. I'm using lilo.  x.x
Title: Windows reinstall on a duel boot system
Post by: Stryker on 4 July 2003, 21:41
quote:
Originally posted by usr/bin/maniaman:
I'm not using grub.. I'm using lilo.  x.x


hmm...

use grub?
Title: Windows reinstall on a duel boot system
Post by: Maniaman on 5 July 2003, 23:42
Got it working.  (http://smile.gif)