On Friday 21 Aug 2009, Arun Khan wrote:
On Thursday 20 Aug 2009, jtd wrote:
On Thursday 20 August 2009, Raj Mathur wrote:
Hell, I've done "cat /vmlinuz > /dev/fd0" to make bootable floppies in my misspent youth!
What a waste. You could have used dd and had a life too ;-).
Would dd be any faster than cat in writing the file to /dev/fd0?
Possibly, since dd supports the bs= option so you can override the default system block buffer size. That may make a difference when copying to/from slow media. On disk, it doesn't seem to make any difference -- if anything, dd seems to be a bit slower than cat on disk to disk copy, and uses up to 4 times more CPU.
Regards,
-- Raju (who uses find...|xargs instead of find... -exec to save precious CPU cycles)