Hi Reindl, My comments are interleaved. thanks: ___________________________________________________ >#!/bin/bash >GOOD_DISK="/dev/sda" >BAD_DISK="/dev/sdc" ># clone MBR >dd if=$GOOD_DISK of=$BAD_DISK bs=512 count=1 Here I run the command sfdisk -d /dev/$GOOD_DISK | sfdisk -f /dev/$BAD_DISK. I think dd and sfdisk are doing the same thing which is cloning the partitions and copy the MBR ? ># force OS to read partition tables >partprobe $BAD_DISK Why run partprobe if the partitions have not changed? ># install bootloader on replacement disk grub2-install "$BAD_DISK" Here don't you mean grub-install not grub2-install? ___________________________________________________ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html