Scripting

Rescue a damaged disk using GNU ddrescue

GNU ddrescue (gddrescue) is a linux data recovery tool. It copies data from one file or block device (harddisc, cdrom, etc) to another, trying hard to rescue data in case of read errors. It can also be used as a forensic cloning tool. Installing gddrescue in Ubuntu linux # aptitude install gddrescue The command to […]

Read More
Linux

Backup partition table

This post describes how you can backup your partition table for future recovery. Backup This example describes how you can backup the disk partition table on /dev/sda dd if=/dev/sda of=sda.mbr bs=512 count=1 It’s also useful to keep a human readable copy of the disk layout for future reference sudo fdisk -l > partitions.lst Restore This […]

Read More