LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2012, 03:07 AM   #1
fiosu
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
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!
 
Old 12-27-2012, 03:35 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,843

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
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 ... ) confused.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
military grade disk wipe Red Squirrel Linux - Security 46 05-16-2014 09:13 AM
How do you wipe a disk? arunkumarev Linux - Newbie 3 04-20-2011 06:20 AM
Hard disk wipe software suggestions airman99 Linux - Software 14 11-19-2007 10:47 AM
[OpenBSD] safe disk wipe out noir911 *BSD 2 03-08-2007 04:53 AM
MacOS 8.6 -- disk detect problem after a disk wipe BinJajer Other *NIX 2 02-05-2006 04:24 AM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration