LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-05-2004, 04:50 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question What is the dd command?


What exaclty is the dd command and how can I clone disks with it? thx
 
Old 01-05-2004, 06:13 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If the disks are of the same make and model, a simple dd will do: dd if=/dev/hda of=/dev/hdc. I have had problems with that occasionally but it works most of the time. You can also make an image of a disk and then use that image to recreate the structure: dd if=/dev/hda of=/var/tmp/hugefriggenfile.img creates a big-ass image in /var/tmp and dd if=/var/tmp/hugefriggenfile.img of=/dev/hdc will overwrite the contents of the master drive on your second IDE channel using the contents of the image file.

Try man dd for more information.

Håkan
 
Old 01-05-2004, 06:27 AM   #3
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
To see what exactly dd is, you should go to the man page.
It essentially reads and writes files(which includes devices). If you want to duplicate a disk, you may type
Code:
dd if=/dev/hdc of=/dev/hdd
where hdc is the original, and hdd is the output device, both are of identical size, they are NOT mounted, and there WILL be no errors. It doesn't matter what was in the hdd before, it will be destroyed.
Take care! "dd" doesn't forgive! it can be dangerous
Regards

Last edited by Y0jiMb0; 01-05-2004 at 09:00 AM.
 
Old 01-05-2004, 07:51 AM   #4
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
ah thanks!
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM


All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration