Post thumbnail of Compress dd backups with sha1sum checksum
19 February 2010
Continue reading Compress dd backups with sha1sum checksum

Compress dd backups with sha1sum checksum

Instead of storing whole dd images, even if they’re just backups of small partitions, you can save space and bandwidth by piping dd into a compression utility like gzip. You can then unzip the files straight into sha1sum to get a checksum of what you just backed up.

Post thumbnail of dd and netcat - like peanut butter and jelly
29 September 2009
Continue reading dd and netcat - like peanut butter and jelly

dd and netcat - like peanut butter and jelly

dd and netcat on one end, netcat and dd on the other. so simple, it’s like magic.

Post thumbnail of A faster way to write out all zeros to a disk using checksums
10 August 2009
Continue reading A faster way to write out all zeros to a disk using checksums

A faster way to write out all zeros to a disk using checksums

You’re not going to write out all zeros, but the end case will be the disk is full of nothing but zeros. (or partition, like /dev/sdb3, which is what I used this for). The basic idea here is you read a disk, one arbitrary chunk at a time, compute the checksum for each chunk and only write out zeros to the chunks that are not all zeros already. But it all comes down to how expensive is it to write vs read.

Post thumbnail of Using dd to search for strings in memory or devices
6 May 2009
Continue reading Using dd to search for strings in memory or devices

Using dd to search for strings in memory or devices

The problem is, hexdump will give you 16 ascii characters surrounded by pipes and then a newline before printing the next 16. You can’t search for long strings that way…

Post thumbnail of dd with a progress bar
23 April 2009
Continue reading dd with a progress bar

dd with a progress bar

You can use the pv utility in conjunction with double buffering dd with pipes to get a nice little progress bar. Y ou can customize this to see elapsed time, and transfer rate.

Post thumbnail of Your first Linux command on a dual boot system should be:
2 March 2009
Continue reading Your first Linux command on a dual boot system should be:

Your first Linux command on a dual boot system should be:

Your first Linux command on a dual boot system should be: dd if=/dev/zero of=`fdisk -l | grep -m1 NTFS | awk ‘{print $1}’`

Powered by Wordpress   |   Lunated designed by ZenVerse