Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i want to convert a vhd-file to vdi and found a manual which says i have to convert the vhd first to bin. But qemu-img creates a 130GB file (even if theres not enough space on disk) from the 14GB vhd-file. Is this a common behavior ?

share|improve this question
    
Please remember to accept/upvote the best answer(s) to your question (tick/check mark on the left). This way, the question is marked as "answered" and future readers can refer to it knowing the solution works. Thank you...:) –  izx Aug 8 '12 at 7:34
add comment

1 Answer

If the size (or maximum-size) of the partition in the VHD is 130GB, then yes, it's normal. VHD/VDI support "sparse" disk files, i.e. they only take up the actual amount of space used, not the specified size. BIN has no such support, so the VHD will be expanded out to the full size, although it will mostly be zeros.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.