Removing shared folders [solved]

Discussions about using Linux guests in VirtualBox.
Post Reply
VirtualBoxer123
Posts: 2
Joined: 1. Dec 2012, 19:58

Removing shared folders [solved]

Post by VirtualBoxer123 »

I created a "permanent" shared folder and changed the name. Now I have two shared folders in the guest under /media, one with the old name and one with the new name, and they are recreated every time I reboot.

The shares are deleted in the VirtualBox options and I checked the fstab and rc.local for any entries, to no avail. So how exactly do I prevent these shares from being recreated?
Last edited by VirtualBoxer123 on 1. Dec 2012, 21:09, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Removing shared folders

Post by Perryg »

Look in the two folders and see if there is anything there. If not then remove them. If you stop using auto-mount this will not happen. I would proceed with caution though. If you remove one that is a valid share it will delete the content on the host as well. Better to delete the shares completely in the guest settings and reboot the guest to be sure that everything is not shared before you remove the folders. Then create a new share without auto-mount.

Create the mount manually and add it to the /etc/rc.local if you want to make it permanent.

Linux guest shared folders
VirtualBoxer123
Posts: 2
Joined: 1. Dec 2012, 19:58

Re: Removing shared folders

Post by VirtualBoxer123 »

I HAVE removed them from the VirtualBox settings and I deleted them from /media, too.

However, they are still recreated on every boot.


Solution: I had to shut down the VM completely, a reboot doesn't do the trick...
Post Reply