There are many tools for converting a physical HDD in a virtual one. I have the opposite need. I am creating a bootable disk, for recovering and setup purpose, and after I would like to convert it in a physical USB disk to actually use. I would like to work with VMware Player or Virtualbox.
I think the following strategies are possible.
I could start the VM with Clonezilla (or the likes), attach physically the USB drive to the VM and then clone.
Using a filesystem driver to read the VMDK disk in the host OS and then like in the previous point.
Manually copy the the virtual HDD files and then use a tool like
dd, inside the virtual machine, to dump the boot sector of the virtual HDD to be moved after onto the USB disk.
dd I think I should use something
dd if=/dev/sda of=MBR_boot.img bs=446 count=1.
There is the problem of possible different boot sectors between virtual and physical disks, say incompatible geometry. In this case I should copy files and then manually recreate the USB boot sector invoking GRUB, BOOTMGR, Syslinux (or whatever the bootloader is), using e.g.
Do you know any free tool that can facilitate my task?