Mailinglist Archive: opensuse (880 mails)

< Previous Next >
Re: [opensuse] Creating the distro USB stick with a simple 'cp'
On 8/7/2013 2:55 AM, Carlos E. R. wrote:
# cp image.iso /dev/sdX
# sync

And that's it! No more 'dd',

Well, dd is cp on steroids. There is no difference between "dd
if=image.iso of=/dev/sdX" and "cp image.iso /dev/sdX" as long as no
special alignment or block size is needed.

I think that this is a largely unknown feature of CP (or Cat) and
you have to dig pretty deeply in the man page to find even the hint that
it would work.

In fact a device as a target for cp is really only addressed in
man 1p cp
because it seems to be a largely forgotten posix feature, where
by if the destination function doesn't exist cp tries to obtain
a file descriptor via an open function. See item 3b in that man page.




--
_____________________________________
---This space for rent---
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >