This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes grub and windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "grub and windows" Watch "grub and windows" New topic

grub and windows

Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi - Has any one here ever:
a) Installed a dual boot Win/Linux system with grub installed on MBR
and then later
b) Reinstalled Win from boot CD without destroying grub/linux.
If so, I'd like a brief description or URLs please.
Just curious about grub .......
Later, Guy
[ April 06, 2002: Message edited by: Guy Allard ]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
As far as I understand it, the Windows install process is somewhat "heavy handed" about the MBR and installs its own boot loader there whether you want it or not.
The recommended process seems to be to make sure you have a Linux boot floppy before the Windows reinstall, use it to boot from, the re-run lilo/grub/whatever to reinstall your bootloader to the MBR.
It's clunky, but I have yet to find a better solution.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Frank - Thanks.
I have done this a number of times with lilo, and was just wondering if grub had a 'better' way. I recently spent some time looking through the grub user documentation, and it seems like a nice (i.e. powereful) loader.
I am on a campaign to get rid of floppies around my home LAN, but it seems like one or two are going to be essential for the near term future.
Thinking about Windows installs, 'heavy handed with the MBR' seems like a good phrase to me.
Regards, Guy
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
My way of getting rid of this problem was to give up dual-booting. Of course it means that I have a whole load of single-purpose machines hanging about in various states of repair; but at least I don't worry about rebooting to swich operating systems, or filesystem compatibility issues, or MBR upgrade woes ....
suneel Battarusetty

Joined: Mar 29, 2002
Posts: 3
Frank is correct. I am successful with Win 2000(NTFS) and RedHat Linux 7.2 dual boot with GRUB (at MBR)and Win 2000 as default(17 GB for Windows and 11 GB for Linux).
Next, I Installed Windows Service Pack 2 then windows 2000 stopped working. I did fixboot and fixmbr then windows working....but linux need floppy to boot, it looks like if you install any windows OS related stuff, there will be some impact on MBR. So i suggest 2 ways:
1. Install all windows components (including SP) then install Linux with GRUB at MBR.
2. Choose LILO at boot partition and ntloader for dual booting (I changed boot.ini).
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
suneel - I typically use lilo, but with NTLDR as boot manager.
Frank is surely right about 1 OS per machine, but ... sometimes that is just not possible.
I agree. Here's the link:
subject: grub and windows
Similar Threads
Removing kernel
XP, RH7.3, GRUB, 2 HDD's
linux/windows dual boot problem
installing linux on laptop
Dual Booting Linux with Win 2000