LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-08-2013, 12:05 PM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Rep: Reputation: 31
DD Command


I am re-habing a laptop, that I don't use much anymore and want to wipe the disk, using the DD comand. This wil be a good
opportunity to 'put the disk memory' into good order.
I plan then to install windows xp first, followed by Ubuntu. (Unfortunately I need windows to do my income taxes).
I would appreciate some advice, especially the appropriate code. Though I have read and continue to read about the DD command on this
site, this is my first chance to use it.
Matthew
 
Old 01-08-2013, 12:13 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
Actually, there is no need at all to wipe the disk using dd for the task you want to accomplish, it will be nothing more than a waste of time and stress for the hardware.
Just proceed with your installations.

For the sake of completeness, the correct command to wipe the disk would be
Code:
dd if=/dev/zero of=/dev/sda bs=8M
You can play with the blocksize to get better performance, the size which gives the best performance depends on your hardware.
 
1 members found this post helpful.
Old 01-08-2013, 02:43 PM   #3
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
Thanks for your advice.
I have an OS currently on the laptop that will have to be wiped, along with some data. I thought that as long as I have to wipe it, ....
Matthew
 
Old 01-08-2013, 02:49 PM   #4
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,961

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Windows will wipe the disk as part of its installation, no need to do it ahead of time.
 
1 members found this post helpful.
Old 01-09-2013, 09:45 AM   #5
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
Thank you.
It's been many years since I installed Windows. It is settled then. Boot-up and install windows, then re-install Ubuntu.
Matthew
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command/Script required to send an email alert in case command will not respond rajaniyer123 Linux - General 1 05-19-2012 01:12 PM
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
how to copy drive using dd and tee command parallely? source code of dd command mdfakkeer Linux - Software 1 02-10-2010 01:31 PM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 02:14 AM


All times are GMT -5. The time now is 03:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration