It is currently Fri, 18 Jan 2019 00:31:40 GMT



 
Author Message
 dd vs. cp
So this is probably a faq, but it doesn't seem to be referenced anywhere.
Unless I grep'ed the wrong files...

The question is, why should I use 'dd' instead of 'cp' when creating new
root/boot disks from image files or image files from diskettes?

Background: I've been playing with Linux for a while.  I've done just about
all the slackware distributions before 3.0, and redhat from mother's day to
3.0.3.  A few times I've used the DOS utility 'rawrite' or IBM's version
(loaddskf) to transfer an image file to the floppy.  More times I've used
'dd' under linux to create the new boot/root disks.

The last time I had to do a fresh install, I used 'cp' to create the
boot/root disks (as in 'cp boot0000.img /dev/fd0').  It worked great.  It
is much easier to type than the 'dd' command line.  When using 'dd' for
the task I never do any data conversions.  Why would I want to use 'dd'
instead of 'cp'?

TheOne



 Mon, 14 Sep 1998 03:00:00 GMT   
 dd vs. cp
In article <4jd346$...@host-3.{*filter*}highway.net> the...@{*filter*}highway.net (The one what?) writes:

AFAIK there isn't a reason on Linux as such. I've been led to believe
that on some Unicies using 'cp' to a raw device may not work
properly. I personally use 'cp'.

--
    \\   ( )   No Bullshit!   | Email: B.A.McCau...@bham.ac.uk
 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)
.__/  \\ /\@  /~)  /~[   /\/[ |  +44 121 627 2173 (voice) 2175 (fax)
.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37
 # ll  l\\  ~~~~ ~   ~ ~    ~ |         A1 93 FE EA BE E3 2A 91
###LL  LL\\ (Brian McCauley)  | More: finger b...@wcl-rs.bham.ac.uk



 Fri, 18 Sep 1998 03:00:00 GMT   
 dd vs. cp
When you do a "dd" you don't have to go through the trouble of mounting and
unmounting the device.  Of course if you are using "supermount"  (which I
am not) this is irrelevant.

Richard

------------------------------------------

: In article <4jd346$...@host-3.{*filter*}highway.net> the...@{*filter*}highway.net (The one what?) writes:
: >The question is, why should I use 'dd' instead of 'cp' when creating new
: >root/boot disks from image files or image files from diskettes?

: AFAIK there isn't a reason on Linux as such. I've been led to believe
: that on some Unicies using 'cp' to a raw device may not work
: properly. I personally use 'cp'.

: --
:     \\   ( )   No Bullshit!   | Email: B.A.McCau...@bham.ac.uk
:  .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)
: .__/  \\ /\@  /~)  /~[   /\/[ |  +44 121 627 2173 (voice) 2175 (fax)
: .  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37
:  # ll  l\\  ~~~~ ~   ~ ~    ~ |         A1 93 FE EA BE E3 2A 91
: ###LL  LL\\ (Brian McCauley)  | More: finger b...@wcl-rs.bham.ac.uk



 Sun, 20 Sep 1998 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. Perfomance: tar vs ftp vs rsync vs cp vs ?

2. TW-523 vs. CP-290

3. tar vs. cp

4. cp vs cpio

5. dd vs. dump/restore

6. cp -r & cp -R

7. ufsdump/ufsrestore vs dd

8. Slice 2 VS dd

9. cp -r versus cp -R

10. Backup to hd: dump vs. dd


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software