Shared Folder problem

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ozstar
Posts: 28
Joined: 26. Nov 2022, 07:26

Shared Folder problem

Post by ozstar »

Hi,

I followed the manual but when I entered the command
To mount a shared folder during boot, add the following entry to /etc/fstab:
sharename mountpoint vboxsf defaults 0 0
When trying to add it to fstab got an UNSAFE message so tried this but in VB terminal I got this message.
zorin162@zorin162-VirtualBox: ~$ sudo Shared_Folder home/david7500/Shared Folder vboxsf defaults 0 0
[sudo] password
sudo: Shared_Folder: command not found
zorin162@zorin162-VirtualBox: ~$
In Shared Folders I see..

Machine Folders
Shared_Folder /home/david/7500/Shared Folder Full Yes

I also see a sub folder named zorin162 in media folder but not sure of that is related.
A bit confusing :-)

Not sure where to go now

Thank you for the help


EDIT:

Now able to get the Shared Folders working okay.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Shared Folder problem

Post by mpack »

zorin162@zorin162-VirtualBox: ~$ sudo Shared_Folder home/david7500/Shared Folder vboxsf defaults 0 0
[sudo] password
sudo: Shared_Folder: command not found
zorin162@zorin162-VirtualBox: ~$
Strings that include a space, for example "Shared Folder", should be wrapped in quotes.

And of course, the instruction was to add a line to a text file, not type it on the command line!

p.s. It is often a bad idea to have complex share names, i.e. multiple case changes, underscores etc. Best to keep the name very simple, e.g. "Shared".
ozstar
Posts: 28
Joined: 26. Nov 2022, 07:26

Re: Shared Folder problem

Post by ozstar »

Yes I agree. My bad. I have at least a hyphen there now.
Post Reply