Page 1 of 1

[Solved] Specifying .vdi in terminal when the name has .(dot)

Posted: 26. Sep 2017, 11:13
by fell_loss
Hi there,
Recently I realized that I am about to run out of memory to store my files, so I decided to increase the size of the virtual box's hard drive . In this case, I'm talking about a Linux Mint 18.2 hosted on a MAC . What I am doing is the following
1. Open terminal and write
cd /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS"
2. Then I copied: VBoxManage modifyhd --resize 250000 /Users/gloriamontoya/VirtualBox\ VMs/LinuxMint/Linux\ Mint 18.2.vdi

After that, this is what I got:
Oracle VM VirtualBox Command Line Management Interface Version 5.1.26
(C) 2005-2017 Oracle Corporation
All rights reserved.

Usage:

VBoxManage modifymedium [disk|dvd|floppy] <uuid|filename>
[--type normal|writethrough|immutable|shareable|
readonly|multiattach]
[--autoreset on|off]
[--property <name=[value]>]
[--compact]
[--resize <megabytes>|--resizebyte <bytes>]
[--move <path>]

Syntax error: Invalid parameter '18.2.vdi'

I suppose the error here has to do with the name of my .vdi since the extension it is followed by the .(dot) of ".2"

What could I do to solve this? I really need to expand my hard drive, and according to all the forums I've read so far this command should work for the resizing.

Thanks in advance.

Re: Specifying .vdi in terminal when the name has .(dot)

Posted: 26. Sep 2017, 11:31
by mpack
You seem to be missing an '\' escape before the final space (" 18.2.vdi"), hence making the latter a separate (and unrecognized) parameter.

You might find it simpler to use quotes around filenames, instead of escaping every space. E.g. :-

Code: Select all

VBoxManage modifyhd --resize 250000 "/Users/gloriamontoya/VirtualBox VMs/LinuxMint/Linux Mint 18.2.vdi"

Re: Specifying .vdi in terminal when the name has .(dot)

Posted: 26. Sep 2017, 11:38
by fell_loss
Ohhh, it worked perfectly. So, at the end it didn't have anything to do with the dot of the file name.

Thank you so much! You made my day ;)

Re: [Solved] Specifying .vdi in terminal when the name has .(dot)

Posted: 26. Sep 2017, 12:46
by mpack
I'm glad you got it working.