[ale] replacing disk sda
Dustin Strickland
dustin.h.strickland at gmail.com
Tue Apr 22 18:45:45 EDT 2014
I would be very upset if that was written to my MBR.
On Tue, 22 Apr 2014 18:40:50 -0400
Paul Cartwright <pbcartwright at gmail.com> wrote:
> On 04/22/2014 04:36 PM, Preston wrote:
> On 4/22/2014 3:05 PM, Paul Cartwright wrote:
> On 04/22/2014 03:43 PM, Preston wrote:
> 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).
>
> 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.
>
> there's no better motivation than drive failure to get you thinking
> about how good your backups are... I'm not sure about that... you
> said:
>
> I use sfdisk (/sbin/sfdisk) to back up the mbr:
>
> /sbin/sfdisk -d /dev/sda > /<backup directory>/mbr-backup-`date
> +%Y-%m-%d`.bak
>
> and I looked at Man sfdisk:
> -d, --dump
> Dump the partitions of a device in a format that is
> usable as input to sfdisk. For example,
> % sfdisk -d /dev/hda > hda.out
> % sfdisk /dev/hda < hda.out
> will correct the bad last extended partition that the
> OS/2 fdisk creates.
>
>
>
> I ran the script and I got this:
>
> # partition table of /dev/sda
> unit: sectors
>
> /dev/sda1 : start= 63, size= 80262, Id=de
> /dev/sda2 : start= 81920, size= 30191616, Id= 7, bootable
> /dev/sda3 : start= 30273536, size=1595568128, Id= 7
> /dev/sda4 : start=1625843710, size=2281185458, Id= 5
> /dev/sda5 : start=1625843712, size= 12582912, Id=82
> /dev/sda6 : start=1638428672, size=209715200, Id=83
> /dev/sda7 : start=1848145920, size=2058883248, Id=83
>
>
> not an mbr backup.. did I miss something??
More information about the Ale
mailing list