#!/bin/sh

idrv=sda
odrv=sda

# get MBR
dd of=$odrv.mbr if=/dev/$idrv bs=512 count=16

# get 16 first sectors of each partitions
for i in 1 2 3 4 5 6 7 8 9 10
do
#   echo /dev/$drv$i
   dd of=$odrv$i.mbr if=/dev/$idrv$i bs=512 count=16
done
