A speedup for lh_binary_usb-hdd
- Subject: A speedup for lh_binary_usb-hdd
- From: peter.skogstrom at bitrunner.com (Peter Skogström)
- Date: Thu, 15 Nov 2007 05:29:28 +0100
- Message-id: <[🔎] 473BCB28.1080303@bitrunner.com>
Hi
I have replaced
dd if=/dev/zero of=chroot/binary.img bs=1024k count=${REAL_DIM}
With this
dd if=/dev/zero of=chroot/binary.img bs=1024k count=0 seek=${REAL_DIM}
This created the file in an instant. A sparse file with the right size
filled with zeroes. When going up in size for the image, it will do much
more difference.
regards
//Peter
--
bitrunner
0708-460260
Andra L?nggatan 28
41327 G?teborg
Sweden
Reply to: