Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* ANNOUNCE: Backup/Restore MBR!
@ 2005-06-28 12:30 robotti
  0 siblings, 0 replies; only message in thread
From: robotti @ 2005-06-28 12:30 UTC (permalink / raw)



=============================================================================
You can use the shell script 'backup-mbr' to backup and restore the MBR.

The (M)aster (B)oot (R)ecord is the first 512 bytes of your hard drive,
and you should always have a current backup of your MBR!

To hold the MBR, you can use any media with a filesystem on it,
but the filesystem on the media must be supported by the kernel!

In addition to backing up the MBR of the hard drive you specify, it also
makes a backup of the boot sector from each partition on the hard drive.

Backup MBR from /dev/hda to directory /mbr/hda on /dev/fd0.
# backup-mbr -b -d /mbr/hda hda fd0  "If directory doesn't exist, will create."

Restore MBR to /dev/hda from backup in directory /mbr/hda on /dev/fd0.
# backup-mbr -r -d /mbr/hda hda fd0

Restore boot sector to /dev/hda1 from backup in directory /mbr/hda on /dev/fd0.
# backup-mbr -r -d /mbr/hda hda1 fd0

If you want to backup the MBR to a multi-session CD-RW, do this.
# backup-mbr -cd-multi -b -d /mbr/hda hda hdc

You'll need 'cdrecord' and 'mkisofs' installed, and have a CD in the
drive '/dev/hdc'.

If it's not a multi-session CD-RW, do it this way.
# backup-mbr -cd -b -d /mbr/hda hda hdc  "CD will be written multi-session."

The non multi-session CD-RW must be blank, blank it first if it's not.
cdrecord blank=fast dev=/dev/hdc  "You'll loose anything on the CD."

Restore MBR to /dev/hda from backup in directory /mbr/hda on /dev/hdc.
# backup-mbr -r -d /mbr/hda hda hdc
=============================================================================

You can get backup-mbr here:

http://www.tux.org/pub/people/kent-robotti/looplinux

##########################################################################
# Send submissions for comp.os.linux.announce to: cola@stump.algebra.com #
# PLEASE remember a short description of the software and the LOCATION.  #
# This group is archived at http://stump.algebra.com/~cola/              #
##########################################################################



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-28 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-28 12:30 ANNOUNCE: Backup/Restore MBR! robotti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox