

Filling the second partition on the /dev/sda disk with all zeros : dd if=/dev/zero of=/dev/sdX2 bs=1MĢ. If /dev/sda is the whole disk, then (on Linux, because the naming scheme vary from one Linux to another) /dev/sda3 is the third partition on the disk.ġ. You can wipe a partition using the same method than for the whole disk. If you messed up your master boot record (MBR) you can wipe it using this command : dd if=/dev/zero of=/dev/hdX bs=446 count=1 If you replace the device name, you can also wipe USB sticks and other peripherals. Use for example gparted to find the correct drive. sda is usually the first hard drive, the second drive would be sdb and so on. You need to replace sda with the device name you want to overwrite.
