Erasing with DD - wAlber47/Tech-Journal GitHub Wiki

Linux gives us multiple ways to erase a disk using dd. They are both fairly simple

  • Fill with Zeroes:
    • /dev/zero - an unlimited supply of zeroes.
    • dd if=/dev/zero of=/dev/sdc - will fill the output file with zeroes.
    • You should be using this before working with any new drives.
  • Fill with Random:
    • /dev/urandom - an unlimited supply of random numbers.
    • dd if=/dev/urandom of=/dev/sdc - will fill output file with random data.

Checking Drive Data:

  • xxd LOCATION | more - will open a hex editor for us to see the data in command line