"S.Toms" <tomas@primenet.com> écrit:
fp> I wonder if `dd' is not a mere archaism for such operations, nowadays. fp> Why not more simply: fp> fp> cp /dev/fd0 /tmp/imagefile fp> cp /tmp/imagefile /dev/fd0 fp> rm /tmp/imagefile fp>
I believe with dd though it will copy verbatim, whereas with just cp as you show, you are missing a few parameters. You will most likely want to use the following -dpR when using the cp command, this will copy verbatim whereas with cp alone, the permissions will be changed, symlinks won't be copied across correctly and you'll want to copy the directories recursively. Just some things to think about.
We are copying whole, simple, raw diskette images, here. So, options like `-d' (dereferencing) and `-R' (recursion) do not apply. A full raw diskette is not related to a directory entry or inode, and so, timestamps (`-p') are also irrelevant. I think that a mere `cp', with no option, does the job correctly. P.S. - Some people wonder about the boot sector of the diskette, and such things. /dev/fd0 defines exactly how to look at the diskette (there are many other /dev/fd* to look at the diskette in various ways). In my case /dev/fd0 just represents the whole surface of the diskette. A bootable diskette will produce a bootable diskette, through the recipe above. -- François Pinard http://www.iro.umontreal.ca/~pinard -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/