How to convert fixed and mobile hard drives in VirtualBox

VirtualBox allows you to select an automatically or fixed allocated hard drive when creating a new virtual hard disk file. Portable and fixed hard drives are fast to use, but only portable drives can increase storage size. However, you can easily switch between these two formats and size the hard drive. Read the article below for more details!

VirtualBox allows you to select an automatically or fixed allocated hard drive when creating a new virtual hard disk file. Mobile hard drives are faster in creating and can increase storage size. Fixed-size hard drives are also faster when used but cannot increase in size when they are filled. However, you can switch between two formats and the size of the hard drive if you want.

  1. How to regain access to the hard drive, fix errors that cannot open the hard drive
  2. Instructions on how to install Windows 7 from the HDD
  3. How to set up BIOS to boot from USB / CD / DVD, external hard drive
  4. 8 ideas from the old hard drive

Step 1 - Locate the VBoxManage command and open the Command Prompt

VirtualBox allows you to convert a fixed hard drive to a portable hard drive and vice versa, but this option is not displayed in its graphical interface. Instead, you must use the VBoxManage.exe command.

Determine this command to continue. On Windows, you will see it in the VirtualBox program folder, by default is C: Program FilesOracleVirtualBox . If you have installed VirtualBox in another folder, look in there.

How to convert fixed and mobile hard drives in VirtualBox Picture 1How to convert fixed and mobile hard drives in VirtualBox Picture 1

Open the Command Prompt window. To do this, open the Start menu , type " cmd" and press Enter.

How to convert fixed and mobile hard drives in VirtualBox Picture 2How to convert fixed and mobile hard drives in VirtualBox Picture 2

Type "cd" into the Command Prompt, follow the path of the directory containing the VBoxManage command (to put the command in quotation marks)

You can quickly do this by entering cd into the Command Prompt window, then drag and drop the folder icon from the file manager's address bar to the Command Prompt.

How to convert fixed and mobile hard drives in VirtualBox Picture 3How to convert fixed and mobile hard drives in VirtualBox Picture 3

If you are using the default path, it will look like this:

cd "C: Program FilesOracleVirtualBox"

How to convert fixed and mobile hard drives in VirtualBox Picture 4How to convert fixed and mobile hard drives in VirtualBox Picture 4

Note: These instructions are assuming you are using VirtualBox on Windows. If you are using VirtualBox on macOS or Linux, you can just open the Terminal window and run the normal vboxmanage command as you would with other commands.

How to convert fixed and mobile hard drives in VirtualBox Picture 5How to convert fixed and mobile hard drives in VirtualBox Picture 5

Step 2 - Locate the path to the drive you want to transfer

Run the following command in the Command Prompt window to see a list of virtual hard drives on the computer:

VBoxManage.exe list hdds

How to convert fixed and mobile hard drives in VirtualBox Picture 6How to convert fixed and mobile hard drives in VirtualBox Picture 6

Look through the list and determine the file path to the virtual disk you want to convert. Suppose we want to convert the virtual drive associated with a virtual machine called "Windows". As we can see in the output below, the path to that virtual disk in the system is C: UserschrisVirtualBox VMsWindowsWindows.vdi .

How to convert fixed and mobile hard drives in VirtualBox Picture 7How to convert fixed and mobile hard drives in VirtualBox Picture 7

Step 3 - Convert virtual hard drive

Now, you can use the VBoxManage command to convert the virtual hard drive from fixed to mobile or vice versa.

To convert from a fixed hard drive to mobile, run the following command:

VBoxManage.exe clonemedium disk "C: pathtosource.vdi" "C: pathtodestination.vdi" - variant Standard

For example, if the source hard drive is located in C: UserschrisVirtualBox VMsWindowsWindows.vdi and you want to create a new hard drive named "Windows-dynamic.vdi" in the same directory, you will run:

VBoxManage.exe clonemedium disk "C: UserschrisVirtualBox VMsWindowsWindows.vdi" "C: UserschrisVirtualBox VMsWindowsWindows-dynamic.vdi" - variant Standard

How to convert fixed and mobile hard drives in VirtualBox Picture 8How to convert fixed and mobile hard drives in VirtualBox Picture 8

To convert a virtual hard drive from mobile to fixed, run the following command:

VBoxManage.exe clonemedium disk "C: pathtosource.vdi" "C: pathtodestination.vdi" --variant Fixed

For example, if the source hard drive is located in C: UserschrisVirtualBox VMsWindowsWindows.vdi and you want to create a new disk called "Windows-fixed.vdi" in the same folder, you will run:

VBoxManage.exe clonemedium disk "C: UserschrisVirtualBox VMsWindowsWindows.vdi" "C: UserschrisVirtualBox VMsWindowsWindows-fixed.vdi" - variant Standard

How to convert fixed and mobile hard drives in VirtualBox Picture 9How to convert fixed and mobile hard drives in VirtualBox Picture 9

Step 4 - Delete the old virtual hard drive

The above command only copies the current hard drive. You will end up with both the original hard drive file and the new hard drive file.

First, you need to remove the existing virtual hard drive from VirtualBox. In VirtualBox, right-click on the virtual machine using the virtual disk and select Settings.

How to convert fixed and mobile hard drives in VirtualBox Picture 10How to convert fixed and mobile hard drives in VirtualBox Picture 10

Select Storage to see the connected storage devices. Right-click on the original VDI and select Remove Attachment . Then click OK.

How to convert fixed and mobile hard drives in VirtualBox Picture 11How to convert fixed and mobile hard drives in VirtualBox Picture 11

The process below will delete the original file from the hard drive. Note that you can back up the original files of the drive if you haven't already, in case anything goes wrong with this process.

In Command Prompt, run the following command to see a list of virtual hard disks on your computer:

VBoxManage.exe list hdds

Locate the UUID of the original hard drive that you want to delete. You can copy it to the clipboard with the left mouse button and then right-click on it.

How to convert fixed and mobile hard drives in VirtualBox Picture 12How to convert fixed and mobile hard drives in VirtualBox Picture 12

Run the following command to remove the original hard drive from the VirtualBox registry and delete it. You can right-click on the Command Prompt window to paste the UUID.

VBoxManage.exe closemedium UUID --delete

How to convert fixed and mobile hard drives in VirtualBox Picture 13How to convert fixed and mobile hard drives in VirtualBox Picture 13

Step 5 - Rename the new hard drive

Now, you should rename the new hard drive file so that it has the same name as the original file. Just navigate to it in the File Explorer or Windows Explorer window.

Right-click on the VDI file, select Rename and change that name to the original name. For example, here we rename the "Windows-fixed.vdi" file we created to "Windows.vdi".

How to convert fixed and mobile hard drives in VirtualBox Picture 14How to convert fixed and mobile hard drives in VirtualBox Picture 14

When you have renamed the hard drive, delete the old hard drive name from VirtualBox. Click File> Virtual Media Manager in VirtualBox and find the original name of the renamed hard drive. It will have a yellow warning icon on the left. Right-click on it and select Remove. Click Remove again to confirm and click Close.

How to convert fixed and mobile hard drives in VirtualBox Picture 15How to convert fixed and mobile hard drives in VirtualBox Picture 15

Step 6 - Insert the hard drive into VirtualBox

Back to VirtualBox, right-click on the virtual machine associated with the virtual hard drive and select Settings. In Storage, right-click on the controller: SATA and select Add Hard Disk .

How to convert fixed and mobile hard drives in VirtualBox Picture 16How to convert fixed and mobile hard drives in VirtualBox Picture 16

Select Choose Existing Disk and browse to the file you just renamed

Click OK to close the virtual machine installation window. Now you can boot the virtual machine normally. Its hard drive will be either a fixed or portable hard drive no matter what you convert it to.

It is done. You have converted from fixed disk to mobile in VirtualBox or vice versa.

Good luck!

4.2 ★ | 6 Vote