From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 10d4db,60204b9fc9f2cd30,start X-Google-Attributes: gid10d4db,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!newsfeed2.telusplanet.net!newsfeed.telus.net!cyclone.bc.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: robotti@godmail.com Newsgroups: comp.os.linux.announce Subject: ANNOUNCE: Backup/Restore MBR! Date: 28 Jun 2005 12:30:22 GMT Organization: "Altopia Corp. - Usenet Access - www.altopia.com" Message-ID: Reply-To: robotti@godmail.com Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-RA: 68.175.72.28 X-OriginalArrivalTime: 28 Jun 2005 12:21:56.0625 (UTC) FILETIME=[F9A3E810:01C57BDB] X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on ak74.algebra.com X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.0 X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAQsFA6yFvAtx2nXvNAQGeAAIAmR6P4+SAuEz932o8NXyG7VBQ+Hk16JNn iWOeVKwe5pdqbD/mBtcVtAUmzyTyVJJK4JORdYbcUdHkG1cSQQH9WQ== =GEJV Xref: g2news1.google.com comp.os.linux.announce:1012 ============================================================================= 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/ # ##########################################################################