LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-15-2005, 09:54 AM   #1
FocusedWolf
Member
 
Registered: Feb 2004
Distribution: Fedora Core 3
Posts: 43

Rep: Reputation: 15
Lightbulb whats a good program to backup my master boot record


Hi, i need to reinstall my windows xp on its partition without having to reinstall my linux, and this is on a dual boot system.

I think the master boot record is what i want to backup...then restore after installing the windows...so whats a good and easy program to do this? does the xp cd have one?
 
Old 03-15-2005, 10:03 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,174
Blog Entries: 4

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-15-2005, 10:12 AM   #3
Skazi
Member
 
Registered: Aug 2004
Location: Minneapolis, MN, USA
Distribution: Slackware 13.1
Posts: 82

Rep: Reputation: 15
With Slackware, the installation ISO doubles as a recover disk. So, I can use my CD to boot into my linux installation on my slave drive. I assume Fedora must be similar.

After installing XP (make sure it doesn't touch your Linux partitions), just boot from the recover/installation CD, then run Lilo.

Before doing that though, test out booting from the CD into your current Linux installation to make sure it works.
 
Old 03-15-2005, 10:13 AM   #4
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
I use Active@ Partition Recovery. You can make a backup of the MBR of each of your hard disks to a floppy disk

Windows XP cd has a utility to restore the MBR but I don't think it has one to back it up afaik. Boot from the cd, enter recovery console and type fixmbr. That command restores the master boot code without destroying the partition table already in place.

If you boot Linux with grub then it may help to make a boot disk just in case;

1. boot from the linux cd enter rescue mode by typing linux rescue at the boot prompt

once you get a command prompt, type

chroot /mnt/sysimage

and then

grub-install /dev/fd0

after that you can leave windows boot record on the mbr and always boot linux from the floppy disk.

Hope this helped
 
Old 03-15-2005, 10:21 AM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Of course, dd is the easiest option for backing up your MBR.
Let's assume you want to back up to a floppy. You can also do it to a file, just replace /dev/fd0 with the filename. This also assumes /dev/hda is the hard drive containing the mbr in question.
Code:
dd if=/dev/hda of=/dev/fd0 bs=512 count=1
To restore:
Code:
dd if=/dev/fd0 of=/dev/hda bs=512 count=1
 
Old 03-15-2005, 10:46 AM   #6
FocusedWolf
Member
 
Registered: Feb 2004
Distribution: Fedora Core 3
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by soulstace

If you boot Linux with grub then it may help to make a boot disk just in case;

1. boot from the linux cd enter rescue mode by typing linux rescue at the boot prompt

once you get a command prompt, type

chroot /mnt/sysimage

and then

grub-install /dev/fd0

after that you can leave windows boot record on the mbr and always boot linux from the floppy disk.

Hope this helped [/B]
Looking at your instructions sorta gives me an idea.

Situation: windows just installed and totally bashed mbr so it loads by default.

So if i used the linux rescue cd, i could just install grub using those commands and specifying my hd instead and reinstall grub good as new? maybe i should backup my grun.conf file instead :P
 
Old 03-15-2005, 10:50 AM   #7
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
I suppose that could work but then how would you go about loading Windows? Is there a way to load Windows from grub? I have never tried it myself.
 
Old 03-15-2005, 10:59 AM   #8
FocusedWolf
Member
 
Registered: Feb 2004
Distribution: Fedora Core 3
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by soulstace
Is there a way to load Windows from grub? I have never tried it myself.
Yes...you can add windows to the list, and probably other os's, along with your list of installed kernals
 
Old 03-15-2005, 11:05 AM   #9
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
In theory, virtually any OS should be loadable from GRUB, due to the nature of bootloaders.
 
Old 03-15-2005, 11:12 AM   #10
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Cool.

In that case you might find this helpful. I did

http://www.fedoraforum.org/forum/sho...+/mnt/sysimage
 
Old 03-15-2005, 09:46 PM   #11
FocusedWolf
Member
 
Registered: Feb 2004
Distribution: Fedora Core 3
Posts: 43

Original Poster
Rep: Reputation: 15
Wow thats one hell of a post on installing grub
 
Old 03-15-2005, 09:55 PM   #12
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Yeah I found it quite helpful. The only thing it was missing was the instructions on how to lock the OS from loading. Set a grub password and type lock underneath each OS in the grub.conf file. Like so;

password --md5 <md5 hash>

Code:
title Windows Media Center Edition
lock
        rootnoverify (hd0,0)
        chainloader +1
Then the only way to load the OS is by first pressing "p" and then providing the password Good way to protect against that insecure mess of a Windows operating system :-\

lol
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
master boot record help sfr7 Linux - Laptop and Netbook 10 04-25-2004 08:52 AM
Backup/Restore Master Boot Record marktin Linux - General 8 04-05-2004 02:35 PM
anyway to mount your master boot record to see whats on it?? baked Linux - General 2 01-14-2004 10:53 AM
master boot record alaios Linux - General 1 04-22-2003 08:41 AM
master boot record dark_light Linux - General 11 07-03-2002 05:21 AM


All times are GMT -5. The time now is 06:43 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