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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-04-2005, 03:40 PM
|
#1
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666
Rep:
|
dd
I got the following from 'man' pages.
dd - convert and copy a file
What does it mean? If I want a copy a file, I will always use the 'cp' command.
What is the conversion here?
Could you give me an example so I could try?
|
|
|
08-04-2005, 03:51 PM
|
#2
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
with dd you can copy anything: filesystems, CDs, hdds. for example to copy an entire cd to your hdd you can do `dd if=/dev/cdrom of=cd_image.iso`
|
|
|
08-04-2005, 04:16 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666
Original Poster
Rep:
|
[ka@c83-250-89-150 ka]$ dd if=/dev/cdrom of=cd_image.iso
dd: reading `/dev/cdrom': Input/output error
1121040+0 records in
1121040+0 records out
I used the command, but no avail.
I have mandrake linux 10.0 version.
In mandrake linux you don't have to mount the cdrom. It is mounted by default.
What was the problem?
By the way, what is the meaning of 'dd' ? Is it delete and destruct?
Last edited by Gins; 08-04-2005 at 04:24 PM.
|
|
|
08-04-2005, 04:26 PM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
your device /dev/cdrom probably doesn't exist.
conversion is rarely used. it's for stuff like changing ascii to ebcdic. (different text formats). dd is very usedful for stuff like making a copy of a boot sector, or a floppy disk, or disk partition, and then later copying it back. dd if=/dev/fd0 of=/floppy.img would make an image of a floppy disk. dd if=/floopy.img of=/dev/fd0 would write that image file to a floppy disk in the drive.
|
|
|
08-04-2005, 04:49 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666
Original Poster
Rep:
|
Thanks for the reply.
What is 'dd'?
Is it delete and destruction? I can't figure out.
There should be a sensible name.
For example, man pages means 'manual pages'
Last edited by Gins; 08-04-2005 at 04:57 PM.
|
|
|
08-04-2005, 05:42 PM
|
#6
|
Member
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Rep:
|
I believe it's "duplicate disk," or something along those lines.
|
|
|
08-05-2005, 05:21 AM
|
#7
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
i tried to find out what 'dd' meant years ago, and couldn't really find anything. maybe 'direct data' or 'duplicate data'. just guesses.
|
|
|
08-05-2005, 11:05 AM
|
#8
|
Member
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Rep:
|
I saw it somewhere, just can't find it again. Very frustrating. "Duplicate data" seems fairly likely, doesn't it? Either way, it's along these lines.
|
|
|
08-06-2005, 05:01 AM
|
#9
|
Member
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846
Rep:
|
AFAIK "dd" stands for "disk dump" :P
|
|
|
08-06-2005, 05:04 AM
|
#10
|
Member
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Rep:
|
Like I said, along these lines. 
|
|
|
09-12-2005, 10:39 AM
|
#11
|
LQ Newbie
Registered: Sep 2005
Posts: 14
Rep:
|
Can I use "dd" to copy one disk (hda), all of it, to a new one???.
Can I use this command to make a hda disk image??, executing:
dd if=/dev/hda of=<new_hd> ????
|
|
|
09-12-2005, 10:41 AM
|
#12
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012
Rep: 
|
|
|
|
09-12-2005, 10:50 AM
|
#13
|
Member
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332
Rep:
|
Code:
$ whatis dd
dd (1) - convert and copy a file
So it should have been cc, but since cc is reserved for the C compiler, its inventors had to rename it to dd. Simple, da?
|
|
|
All times are GMT -5. The time now is 10:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|