Chris Schammert
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

đŸ’ģ Disk Destroyer (DD)


An earned reputation for destroying all the things

Find blocksize

  • sudo blkid

Write .img file to drive

  • sudo dd if=/mnt/Storage/qemu/winxppro.img of=/dev/sXX

  • sudo gunzip -c /backup/backup.image.gz | dd of=/dev/sXX

Backup drive to compressed .img

  • sudo dd if=/dev/sXX conv=sync,noerror bs=4K | gzip -c > /backup/backup.image.gz

Blank a drive (NOT FOR SSDs!)

  • sudo dd if=/dev/zero of=/dev/xXx bs=1M

Securely Blank a drive (NOT FOR SSDs!)

  • sudo dd if=/dev/urandom of=/dev/xXx bs=1M

Blank MBR (!)

  • sudo dd if=/dev/zero of=/dev/xXx bs=446 count=1

Copy DVD

MakeMKV for copying media is highly recommended

  • Open video with VLC first..

    Because reasons..

  • blocks=$(isosize -d 2048 /dev/sr0)

  • sudo dd if=/dev/sr0 of=/tmp/output.iso bs=2048 count=$blocks status=progress

Copy CD

  • mount

  • sudo umount /dev/cdrom

  • sudo dd if=/dev/cdrom of=/dir/cdimg1.iso

Resources