LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dd command for disk wipe (https://www.linuxquestions.org/questions/linux-newbie-8/dd-command-for-disk-wipe-4175443077/)

fiosu 12-27-2012 02:07 AM

dd command for disk wipe
 
I would like to completely wipe all partitions and the master boot record and to make sure that the disk is zeroed out. I was looking around and see different variations of the dd command.

1. Is this the correct command to run?
Code:

sudo dd if=/dev/zero of=/dev/sda bs=1M
2. Will this erase the Master Boot Record?
3. What does each part of the command mean?
4. Would this command erase all of the drives on the PC?
Code:

sudo dd if=/dev/zero of=/dev/ bs=1M
Thanks!

syg00 12-27-2012 02:35 AM

There is an exceedingly long thread on the "dd" command - here. Skip down a page or so to "Linux DD".
Should answer all your questions, or at least fill in some blanks. Post back if still (or more ... :p) confused.


All times are GMT -5. The time now is 12:37 PM.