[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

A speedup for lh_binary_usb-hdd



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: