Author Topic: Windows reinstall on a duel boot system  (Read 517 times)

Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
Windows reinstall on a duel boot system
« 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


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Windows reinstall on a duel boot system
« Reply #1 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

Maniaman

  • Member
  • **
  • Posts: 188
  • Kudos: 0
Windows reinstall on a duel boot system
« Reply #2 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)
I use my hotmail email on here to keep from begin spammed by trolls. If you want my good email address for something then ask... :)


Siplus

  • Member
  • **
  • Posts: 522
  • Kudos: 43
    • http://www.siplus.org
Windows reinstall on a duel boot system
« Reply #3 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


http://www.siplus.org

"Your computer is already fucked up by having Windows
on it, you can only unfuck it up by installing Linux."
-- void main (old school MES member)


Desktop: Athlon 2600/ 768mb DDR266
--Running: Ubuntu 5.10, FC4, Win2k
 (Also, Unbuntu 6-06:5, 5.04; Fedora Core 5, WinXP, but none of these are used much)
12" Powerbook: 1.5 Ghz G4 PowerPC / 1.25 GB DDR333
--Running: Mac OS X 10.4 Tiger

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Windows reinstall on a duel boot system
« Reply #4 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.

Maniaman

  • Member
  • **
  • Posts: 188
  • Kudos: 0
Windows reinstall on a duel boot system
« Reply #5 on: 4 July 2003, 07:36 »
I'm not using grub.. I'm using lilo.  x.x
I use my hotmail email on here to keep from begin spammed by trolls. If you want my good email address for something then ask... :)


Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
Windows reinstall on a duel boot system
« Reply #6 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?

Maniaman

  • Member
  • **
  • Posts: 188
  • Kudos: 0
Windows reinstall on a duel boot system
« Reply #7 on: 5 July 2003, 23:42 »
Got it working.  
I use my hotmail email on here to keep from begin spammed by trolls. If you want my good email address for something then ask... :)