<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 04:36 PM, Preston wrote:<br>
</div>
<blockquote cite="mid:5356D2C3.1020608@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 4/22/2014 3:05 PM, Paul Cartwright
wrote:<br>
</div>
<blockquote cite="mid:5356CB8F.3080208@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Ale mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Ale@ale.org">Ale@ale.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a>
See JOBS, ANNOUNCE and SCHOOLS lists at
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a>
</pre>
</blockquote>
<font face="DejaVu Sans">hmm. I just ran this:<br>
<br>
pboyington@openmediavault:~$ su<br>
Password:<br>
root@openmediavault:/home/pboyington# /sbin/sfdisk -d /dev/sdf
>
/media/94bfad2d-164f-445a-a761-f7baba3338aa/fsarchive-image/mbr-backup-`date
+%Y-%m-%d`.bak<br>
root@openmediavault:/home/pboyington# ls
/media/94bfad2d-164f-445a-a761-f7baba3338aa/fsarchive-image/<br>
backup-restore.txt<br>
mbr-backup-2014-04-15.bak<br>
omv-backup-2014-02-07.fsa<br>
omv-backup-2014-04-15.fsa<br>
mbr-backup-2014-04-02.bak<br>
mbr-backup-2014-04-22.bak<br>
omv-backup-2014-04-03.fsa<br>
root@openmediavault:/home/pboyington# exit<br>
exit<br>
pboyington@openmediavault:~$<br>
<br>
</font>so, it worked on my box. <br>
<br>
pboyington@openmediavault:~$ uname -a<br>
Linux openmediavault 3.2.0-0.bpo.4-amd64 #1 SMP Debian
3.2.51-1~bpo60+1 x86_64 GNU/Linux<br>
<br>
<br>
</blockquote>
yes, the FILE is there, but do this:<br>
$ cat <font face="DejaVu Sans">mbr-backup-2014-04-15.bak<br>
<br>
</font><br>
<br>
<pre class="moz-signature" cols="72">--
Paul Cartwright
Registered Linux User #367800 and new counter #561587</pre>
</body>
</html>