0

I would like to use a GParted live CD to resize some partition on my laptop. Unfortunately I don't have an USB disk/CD to write the image on.

Is there a way to boot gparted on a virtual machine and let it work on the host's physical disk?

p.s. it's not the disk where the system files are, it's the second hard drive.

1

You have two harddrives right? It is possible to do that, but you have to do some work on the console. With Virtualbox you first have to create a file describing the Harddrive you want to partition:

VBoxManage internalcommands createrawvmdk -filename file.vmdk  -rawdisk \\.\PhysicalDrive1

Where file.vmdk will be the resulting descriptor file and PhysicalDrive1 is your first HD on Windows. If youre unfamiliar with the command line look that up. You probably have to change the directory to where VBoxManage is located. And you have to use an administrator shell.

From there its easy. In Virtualbox create a new machine, assign the Gparted iso as a virtual CDrom, the file.vmdk as the harddrive, boot from CD and there you go.

But extra careful what you do! If you manage to partition your system drive, you'll probably loose a lot of data. But its possible, I installed Linux on a second partition (not second HD) that way.

Good starting points for further research are virtualbox raw disk access windows PhysicalDrive

  • Thanks! I didn't know that. I'll try as soon as possible! – Harlandraka Apr 7 '14 at 9:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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