LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-26-2006, 05:01 AM   #1
KTheorem
LQ Newbie
 
Registered: Nov 2005
Location: Vista, CA, USA
Distribution: Fedora 12
Posts: 24

Rep: Reputation: 16
What is the best way to preserve GRUB on the MBR when installing windows?


I am taking a networking class which uses a Microsoft textbook in which all the labs use Windows 2003 Server. I haven't had Windows on my computer for quite some time and am wary of installing it again due to it's tendency to rewrite the MBR with it's own info (hopefully this info won't be necessary and I can do it all in Lab but I want to be ready just in case).

I don't need info on how to use GRUB with Windows. I need either a way to keep Windows from touching the MBR (this is probably both wishful thinking and the wrong place for that one) or an easy way to put GRUB back where it is supposed to be once Windows removes it. I am currently using Fedora Core 5 and can boot from both floppy and CD. Any thoughts on how to accomplish this task?
 
Old 08-26-2006, 05:13 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
After installing Windows, reboot with a Linux liveCD, chroot into the environment on your harddisk (chroot /dev/hdwhatever or /dev/sdwhatever) and reinstall grub (grub-install IIRC, I use lilo).
 
Old 08-26-2006, 05:31 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,279

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
You can't stop Windows install overwriting the MBR.
FC should have a recovery option to do it all for you. Simple - else do you'll have to chroot as suggested.
 
Old 08-26-2006, 05:32 AM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 80
You can make backups of your grub.conf or menu.lst before Windows destroys them.
 
Old 08-26-2006, 09:45 AM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Quote:
Originally Posted by fakie_flip
You can make backups of your grub.conf or menu.lst before Windows destroys them.
Windows doesn't, these files reside on the Linux file system. Windows only overwrites the part of the MBR where the stage 1 boot loader is. `grub-install` or `lilo` does the same, for its own use.
 
  


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
Installing grub to root not mbr. acidblue Fedora 4 05-24-2006 07:48 PM
ubuntu: windows took over MBR and can't restore grub eantoranz Linux - Software 3 02-03-2006 08:29 PM
grub and lilo on MBR with Windows xp blotch Linux - General 6 11-18-2005 09:57 PM
MDK 10.2 GRUB - Windows killed MBR stunter Mandriva 7 03-21-2005 09:07 AM
will installing grub to my MBR screw up anything? colinexl Linux - Newbie 2 01-13-2005 11:48 AM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration