Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am creating a bootable USB flash drive to install the OS and application on several PC.

I need to test UFD in virtual machine with VMware (or VirtualBox).

I could make a raw image of the UFD and convert it to a vmdk disk with "qemu"

qemu-img convert -O vmdk imagefile.img imagefile.vmdk

or I can use raw2vmdk.

To speed up process:

  1. Is it possible to make a raw image of the UFD based only on the actual data (used sectors)?

  2. Is it at least possible to have a direct process? That is from UFD to VMDK without passing via a raw image. But I would avoid solutions with physical UFD access which oblige me to keep my UFD plugged.

Obviously the solutions should allow the reverse, i.e. copy the virtual drive onto the UFD.

share|improve this question

migrated from serverfault.com Aug 23 '13 at 15:46

This question came from our site for professional system and network administrators.

1 Answer 1

up vote 3 down vote accepted

VirtualBox with USB passthrough presents the USB device to the guest OS, from where you can use any disk tool you have available to copy the contents (at whatever level - blocks or files) to a virtual HDD of several formats VirtualBox supports.

share|improve this answer

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.