Wiping out a hard drive in Linux

To wipe a hard drive using zeros:

dd if=/dev/zero | pv -s 250000000000 | dd of=/dev/sdX bs=10M

To wipe a hard drive with random data (more secure):

dd if=/dev/urandom | pv -s 250000000000 | dd of=/dev/sdX bs=10M

For the "pv" progress bar, do "apt-get install pv" or similar. I highly recommend using "pv" so you have some idea of when the dd job is going to finish.

Tags: 

Comments

You wrote the code to Wiping out a hard drive in Linux operating system. This code is very short but its work is very effective for the whole Linux operating system. I got a site where i read some articlces to know about Linux Operating system.

You composed the code to Wiping out a hard drive in Linux working framework. This code is short yet its work is exceptionally viable for the entire Linux working framework. Your work is great and I value you and bouncing for some more educational posts. http://www.ontimepaper.com/

Linux is very efficient operating system and mostly programmers are use this operating system because in this OS the programmers find built in programs. The rushmyеssay promo codе is also run in Window Linux and they are specially made for this OS.

Add new comment