Same thing here: you need to start liveCD with UDPCast Disk Cloning selecting receiver this time as well as appropriate physical hdd.
Since you have a physical hdd, I'm assuming, you also have a complete PC with this hdd attached to it. Its dialogs are self-explanatory (see the screenshot)Īfter selecting this Virtual Machine to be the sender, you should select which drive you want to broadcast (using Unix notation, like /dev/sda).Īfter you've started the sender, you need to start receiver as well. When liveCD is started, navigate to main menu and find the UDPCast Disk Cloning. Run your Virtual Machine with this particular vmdk attached, but instead of ordinary boot use PartedMagic liveCD to boot from. Since you have a vmdk file, you might have a VMWare Workstation at your disposal, even complete Virtual Machine this vmdk is attached to. The idea is to stream the whole your vmdk out of it's Virtual Machine to physical machine, where it is written to the physical hdd. If you get nasty grub issues, you can fix it by going back to Live CD, chrooting and fixing things. Reboot and you should be greeted with your old VMWare install, but on bare metal.
So, if you have determined your offset to be 'xxx' then you can mount your partition using sudo mount -o loop,offset=xxx /media/dave/disk.img /media/oldinstallįrom there you can either cherry-pick files or just copy over everything on top of your new Ubuntu install using something like: sudo rsync /media/oldinstall/ /media/my-new-install/ For an example, look at the answer by sisco311 in this link Hence you need to find out the offset of the required partition. img file sometimes contains a master boot record and a partition table before the actual partition that you might want to mount. The device '/dev/loop0' doesn't seem to have a valid NTFS. img file, sometimes when you try to mount it as a loop device you might get the following errorįailed to mount '/dev/loop0': Invalid argument Sudo mount -o loop /media/dave/disk.img /media/oldinstall
Mount your disk.img ISO in a terminal: sudo mkdir /media/oldinstall Mount your new install's partition and your external disk where you've stored the disk.img from earlier (just double click them in nautilus). Doesn't matter if you accidentally do, just make sure you're back in the LiveCD for the next instructions. About 10 minutes later, you'll be installed and it'll ask you to reboot. Boot into the Live CD and, again, click Install.įollow the installer through, repartition things as you see fit. Your LiveCD this time will need to be the same version of Ubuntu as your virtual install. The idea is very similar apart from you do a proper install of Ubuntu and then just sync over the files from disk.img. This is perhaps an altogether safer way of doing things. Write the image to a disk alongside another operating system You can then open gparted or something else and you should see your Ubuntu partition sitting on the disk.
The sudo password is blank, just hit return. You want to replace sdX with the correct path to your destination disk. Then we go to work: sudo dd if=/media/dave/disk.img of=/dev/sdX Do not mount the place where you want to write to. Mount your the place where your vmdk image is being stored (eg the external USB disk as /media/dave). If you want to do an alongside-Windows install, don't follow these instructions! Skip to after the bullets.īoot into an Ubuntu Live CD and click Try Ubuntu. This assumes you're going to overwrite a whole disk. Write the image to a disk of its very own CloneZilla can help you take whole disk backups if you have somewhere for that data to be stored.
Assume that things will go wrong and be prepared. It's a cliche thing to say but one typo and there's a very real possibility you'll nuke your system.
The following instructions assume you've moved it to /media/dave/disk.img ( dave is an external USB disk)īefore you do any serious writing, make sure you have backups. If you're planning to write it to the disk that it's currently sitting on, you'll want to stick it on a separate internal disk, or, worst-comes-to-worst an external disk. Move /media/wherever-the-image-is/disk.img somewhere that you're not about to write to. VBoxManage clonehd your-virtualbox-disk.vdi disk.img -format RAW Qemu-img convert your-vmware-disk.vmdk -O raw disk.img Load a terminal and fire in: cd /media/wherever-the-image-is/ You can do this from your current system without having to boot to a LiveCD. You can but I personally feel it's more convenient to write it to an intermediary, standard image first. Preliminary step: Convert the disk to something usefulīoth VMWare and VirtualBox (amongst others) use disk formats that don't lend themselves well to being written directly to disk. It's not even that hard, it just takes some time, a Ubuntu LiveCD, sticky-back-plastic, and an external USB disk (if you don't have more than one internal disks).