LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-04-2005, 03:40 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666

Rep: Reputation: 47
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?
 
Old 08-04-2005, 03:51 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
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`
 
Old 08-04-2005, 04:16 PM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666

Original Poster
Rep: Reputation: 47
[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.
 
Old 08-04-2005, 04:26 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306

Rep: Reputation: 66
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.
 
Old 08-04-2005, 04:49 PM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,666

Original Poster
Rep: Reputation: 47
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.
 
Old 08-04-2005, 05:42 PM   #6
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
I believe it's "duplicate disk," or something along those lines.
 
Old 08-05-2005, 05:21 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306

Rep: Reputation: 66
i tried to find out what 'dd' meant years ago, and couldn't really find anything. maybe 'direct data' or 'duplicate data'. just guesses.
 
Old 08-05-2005, 11:05 AM   #8
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
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.
 
Old 08-06-2005, 05:01 AM   #9
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
AFAIK "dd" stands for "disk dump" :P
 
Old 08-06-2005, 05:04 AM   #10
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Like I said, along these lines.
 
Old 09-12-2005, 10:39 AM   #11
mramos
LQ Newbie
 
Registered: Sep 2005
Posts: 14

Rep: Reputation: 0
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> ????
 
Old 09-12-2005, 10:41 AM   #12
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
yes, read http://www.linuxquestions.org/questi...hreadid=362506
 
Old 09-12-2005, 10:50 AM   #13
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Lightbulb

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?
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:25 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