Cant get modifyhd to work

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
JMill
Posts: 5
Joined: 12. Jan 2013, 20:24

Cant get modifyhd to work

Post by JMill »

Hi - I'm not a programmer, so bear with the basic questions;

I'm running Windows 7 on an OSX host. 25 GB Dynamic HD. Want to increase to 100.
Opened terminal, and can't get the modifyhd function to work.

location of file is /Users/jeffmiller/VirtualBox VMs/Virtual Windows for Jeff/Christine/Virtual Windows for Jeff/Virtual Hard Drive for Windows Jeff
Name of file is Christine.vdi
Can't navigate to that location in terminal as terminal states VirtualBox VMs is not a valid directory when I type in cd VirtualBox Ms

so to get at the file - I moved the it to the desktop, then typed the following in the terminal to try and resize the hard drive

Jeffs-iMac:desktop jeffmiller$ VBoxManage modifyhd Christine.vdi --resize 102400

got the following error

VBoxManage: error: Could not find file for the medium '/Users/jeffmiller/Desktop/Christine.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cpp

What is the proper process? I've read all of the posts I could find about how to do this and can't quite figure it out. Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cant get modifyhd to work

Post by Perryg »

First its a good thing that it failed. You can't move these files around or it will break the control file.

The way to get to the file when there are spaces is to wrap the command in " ".
Like cd "/Users/jeffmiller/VirtualBox VMs/Virtual Windows for Jeff/Christine/Virtual Windows for Jeff/Virtual Hard Drive for Windows Jeff" if that is the right location. Then run the command to increase. If you want a 100GB size you would use --resize 102400
JMill
Posts: 5
Joined: 12. Jan 2013, 20:24

Re: Cant get modifyhd to work

Post by JMill »

for some reason it didn't work. So I made a clone, and that worked. Thank you.

There is another problem however:
Now, while it shows I have 100gb in the vbox manager, it does not show that in windows - it still shows I have 25mb, and I can't install the program I need to.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cant get modifyhd to work

Post by Perryg »

Use the Windows disk management feature and extend the primary partition to include the new space.
JMill
Posts: 5
Joined: 12. Jan 2013, 20:24

Re: Cant get modifyhd to work

Post by JMill »

Very helpful - thanks for your time.
Post Reply