LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 02:35 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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



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 08:13 AM
How do you wipe a disk? arunkumarev Linux - Newbie 3 04-20-2011 05:20 AM
Hard disk wipe software suggestions airman99 Linux - Software 14 11-19-2007 09:47 AM
[OpenBSD] safe disk wipe out noir911 *BSD 2 03-08-2007 03:53 AM
MacOS 8.6 -- disk detect problem after a disk wipe BinJajer Other *NIX 2 02-05-2006 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:46 AM.

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
Open Source Consulting | Domain Registration