Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-05-2004, 05:50 AM   #1
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, 07:13 AM   #2
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.

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

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

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

Original Poster
Rep: Reputation: 32
ah thanks!


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 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:39 AM.

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