Hdd to rescue/backup is in USB-Drawer (e.g. 'sdb').
Where to backup (e.g. ntfs 'hdd2/bkup/')
Mount 'where to backup' :
- ntfs-3g /dev/hdd2 /mnt/hdd2
- fdisk /dev/sdb
- p (to 'print' the table)
- copy, paste and save to '/mnt/hdd2/bkup/p.table.txt'
- dd if=/dev/sdb of=/mnt/hdd2/bkup/mbr.img count=1 bs=512
- ddrescue /dev/sdb1 /mnt/hdd2/bkup/sdb_1.img
- ddrescue /dev/sdb2 /mnt/hdd2/bkup/sdb_2.img
- ddrescue /dev/sdb3 /mnt/hdd2/bkup/sdb_3.img
- ddrescue /dev/sdb1 | gzip -9 > /hdd2/bkup/sdb_1.img.gz
- mkdir /mnt/1
- losetup /dev/loop3 /mnt/hdd2/bkup/sdb_1.img
- fsck /dev/loop3 (? not sure)
- mount -t ext3 /dev/loop3 /mnt/1/
- umount /dev/loop3
- losetup -d /dev/loop3
No comments:
Post a Comment