Wednesday, January 16, 2008

ddrescue restore

'New HDD' in USB-Drawer (e.g. 'sdb').

Using fdisk or gparted or ....
make same number and type of partitions as for 'p.table.txt'
just biger in size and set the bootable flag.

Restore partitions:
  • drescue /mnt/hdd2/bkup/sdb_1.img /dev/sdb1
  • drescue /mnt/hdd2/bkup/sdb_2.img /dev/sdb2
  • drescue /mnt/hdd3/bkup/sdb_1.img /dev/sdb3
Restore MBR just not the table (different disks - different tables)
  • dd if=/mnt/hdd2/bkup/mbr.img of=/dev/sdb count=1 bs=446
Check it:
  • fsck /dev/sdb1

No comments: