<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/22/2014 03:43 PM, Preston wrote:<br>
</div>
<blockquote cite="mid:5356C656.30907@gmail.com" type="cite">be aware
that the mbr will need to be backed up. fsarchiver doesn't do it
as yet (possibly later as was mentioned in a post).<br>
<br>
I run my OpenMediaVault off a USB thumb drive and didn't think
about the mbr until the drive quit. That's when I made the
script.<br>
<br>
there's no better motivation than drive failure to get you
thinking about how good your backups are...<br>
</blockquote>
I'm not sure about that... you said:<br>
<font face="DejaVu Sans"><br>
I use sfdisk (/sbin/sfdisk) to back up the mbr:<br>
<br>
/sbin/sfdisk -d /dev/sda > /<backup
directory>/mbr-backup-`date +%Y-%m-%d`.bak<br>
<br>
and I looked at Man sfdisk:<br>
-d, --dump<br>
Dump the partitions of a device in a format that
is usable as<br>
input to sfdisk. For example,<br>
% sfdisk -d /dev/hda > hda.out<br>
% sfdisk /dev/hda < hda.out<br>
will correct the bad last extended partition that
the OS/2 fdisk<br>
creates.<br>
<br>
<br>
</font><br>
I ran the script and I got this:<br>
<br>
# partition table of /dev/sda<br>
unit: sectors<br>
<br>
/dev/sda1 : start= 63, size= 80262, Id=de<br>
/dev/sda2 : start= 81920, size= 30191616, Id= 7, bootable<br>
/dev/sda3 : start= 30273536, size=1595568128, Id= 7<br>
/dev/sda4 : start=1625843710, size=2281185458, Id= 5<br>
/dev/sda5 : start=1625843712, size= 12582912, Id=82<br>
/dev/sda6 : start=1638428672, size=209715200, Id=83<br>
/dev/sda7 : start=1848145920, size=2058883248, Id=83<br>
<br>
<br>
not an mbr backup.. did I miss something??<br>
<pre class="moz-signature" cols="72">--
Paul Cartwright
Registered Linux User #367800 and new counter #561587</pre>
</body>
</html>