How to enlarge existing file to specific size

view full story

http://unix.stackexchange.com – I have hdd.img file, which I user as HDD for my virtual machine, but it's size is too small, how can I enlarge it? There is one method, something like: dd if=/dev/zero ds=10GB count=8 >> hdd.img but it takes a lot of time :( (HowTos)