On Thu, Aug 25, 2011 at 03:14:17PM +0200, Enrico Zini wrote:
# This is lovely but is much slower than dd with a large bs, since # head will only read 8k blocks and write them in 2 4k write() calls: $ head -c 500M /dev/zero > file.img
My advice is to not use dd unless you really need reblocking, are working with tapes, etc. For the requirement above, this is probably quicker and easier: truncate -s 500M file.img
Mike Stone -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

