Dealing with spaces in the VM path

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Isaiah Sellassie
Posts: 3
Joined: 9. Apr 2017, 01:09

Dealing with spaces in the VM path

Post by Isaiah Sellassie »

How does one deal with blank spaces in the file path of the VDI? The default directory is called "VirtualBox VMs". I get a bash error.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Dealing with spaces in the VM path

Post by socratis »

  1. Do not hijack other threads. I split your post from Resizing issue which has absolutely nothing to do with your question.
  2. I fail to see the relationship between your question and VirtualBox. Have you searched for your problem online?
  3. Enclose the path in quotes. All of the path. Or use the escape character "\".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Isaiah Sellassie
Posts: 3
Joined: 9. Apr 2017, 01:09

Re: Dealing with spaces in the VM path

Post by Isaiah Sellassie »

Thank you for the reply, socratis. I searched for resizing VDI because that is what I am trying to do. I encountered the bash error while trying to execute the command found here in thread called "How to resize a Virtual Drive".

No harm was intended. I am required to make at least one post before starting a new thread, so I chose to make it a relevant one to my problem.

I used the quote marks and it worked. Thank you!
Isaiah Sellassie
Posts: 3
Joined: 9. Apr 2017, 01:09

Re: Dealing with spaces in the VM path

Post by Isaiah Sellassie »

By the way, in the afore mentioned how-to thread there is something called an "Example" but it does not have an example file path at all. It should be revised perhaps.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Dealing with spaces in the VM path

Post by Perryg »

Here is the official how to for others that come upon this thread.
viewtopic.php?f=24&t=50661
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Dealing with spaces in the VM path

Post by socratis »

Isaiah Sellassie wrote:No harm was intended. I am required to make at least one post before starting a new thread, so I chose to make it a relevant one to my problem.
No harm done. But you're not required to have at least one post before you open a new thread. There's nor such rule as far as I know...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply