<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 4/22/2014 5:40 PM, Paul Cartwright
wrote:<br>
</div>
<blockquote cite="mid:5356EFF2.6090605@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 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>
</font><br>
</blockquote>
here's one of the mbr-backups.<br>
<br>
pboyington@openmediavault:/media/3b7fcae9-905e-4863-91fb-ddfee3396254/Data/fsarchive-backup$
cat mbr-backup-2014-04-15.bak<br>
# partition table of /dev/sdf<br>
unit: sectors<br>
<br>
/dev/sdf1 : start= 63, size=224845677, Id=83, bootable<br>
/dev/sdf2 : start=224845740, size= 9590805, Id= 5<br>
/dev/sdf3 : start= 0, size= 0, Id= 0<br>
/dev/sdf4 : start= 0, size= 0, Id= 0<br>
/dev/sdf5 : start=224845803, size= 9590742, Id=82<br>
<br>
maybe you were expecting a hex output like dd does? this is handled
by sfdisk.<br>
<pre class="moz-signature" cols="72">--
Be who you are and say what you feel, because those who mind don’t matter and those who matter don’t mind.
-Dr. Seuss
</pre>
</body>
</html>