1

I have a Windows 10 virtual machine under VMware Workstation Player on Linux. The disk is stored under VMware’s default file format.

How can I copy / adapt / write the file system contents from the virtual disk to a (native) hard disk partition? I have (among other resources) live Linux Mint Sylvia media, and I intend to place Linux on another partition, and should be able to copy the disk image / stored virtual machine.

Thanks,

—UPDATE—

The disk image is not one-to-one as far as bytes go; the default VMware disk format (which I used) is split into relatively small files of up to 2G, but they are often significantly smaller than 2G for unused space in the guest disk image.

I imagine @vautee’s comment assumes a concern that I don’t want to be using a Cygwin dd to copy drives to a mounted disk from a Windows guest itself.

How, in terms of specific commands, can I achieve what a dd would achieve from a single, straight, uncompressed ISO-like disk image, if what I have now is a series of VMware’s 2G chunks that are often less than 2G where the drive space isn’t (fully) used?

4
  • I'd use some linux live system, for example kali linux, to boot and then convert/dd from the virtual disk image to your physical partitions. Afterwards, don't forget to chroot into your new partitions and re-install grub - and even adapt your /etc/fstab to the new system.
    – vautee
    Commented Feb 7, 2018 at 12:47
  • 1
    Thank you, @vautee; could you review the updated question? Commented Feb 8, 2018 at 13:56
  • I guess the trick now is using vmware-vdiskmanager to merge all the .vmdk files into one single. Unfortunately, this needs the same amount of diskspace while in transit, again.
    – vautee
    Commented Feb 8, 2018 at 14:07
  • Thank you; vmware-vdiskmanager is now on my radar. I can afford the disk space for now. Could you restate your comments as an answer so I can accept it? Commented Feb 8, 2018 at 14:16

1 Answer 1

1

I'd use some linux live system, for example kali linux, to boot and then convert/dd from the virtual disk image to your physical partitions. Afterwards, don't forget to chroot into your new partitions and re-install grub - and even adapt your /etc/fstab to the new system.

To merge all your max 2GB .vmdk files into one single, have a look at vmware-vdiskmanager. Unfortunately, this needs the same amount of diskspace while in transit, again.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .