SF Won't Auto-mount Lubuntu 15

Discussions about using Linux guests in VirtualBox.
Post Reply
madurham
Posts: 24
Joined: 22. Sep 2015, 08:54
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Lubuntu

SF Won't Auto-mount Lubuntu 15

Post by madurham »

I can't get my Lubuntu 15.04 guest to auto-mount a shared folder from a Windows 10 host.

I have a shared folder mapped onto my host as N:\
I have set up the SF with the following settings:
-Folder path: n:\
-Folder Name N_DRIVE
-Read-only: (cleared)
-Auto-mount: (checked)

I boot up the guest and there isn't a /media/sf_N_DRIVE folder.

I tried manually mounting to a brand new folder /home/student/N_DRIVE

Code: Select all

sudo mount -t N_DRIVE /home/student/N_DRIVE
I then get the following error:

Code: Select all

Mount: can't find /home/student/N_DRIVE in etc/fstab
I seem to always have issues with shared folders in Linux :? I've mounted shared folders in Lubuntu guests before.
The attached log appears to auto-mount the SF without error.
Attachments
Linux v3-2016-01-05-11-04-46.zip
(22.06 KiB) Downloaded 14 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: SF Won't Auto-mount Lubuntu 15

Post by loukingjr »

did you add your username to the vboxsf group?
In Lubuntu's Terminal run…

Code: Select all

sudo adduser vboxsf <username>
replace <username> with your login name. reboot the guest.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: SF Won't Auto-mount Lubuntu 15

Post by socratis »

Have you read Ch. 4.3.1 Manual mounting and 4.3.2 Automatic mounting of the user manual? At a first glance, your command line for manual mounting is not correct, and as for the automatic one, are you a member of the vboxsf group? (Edit: you were already asked about this one)
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.
madurham
Posts: 24
Joined: 22. Sep 2015, 08:54
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Lubuntu

Re: SF Won't Auto-mount Lubuntu 15

Post by madurham »

Doh! Oh yeah I missed 'vboxsf' out of the manual mount command. But still, I now get:

Code: Select all

/sbin/mount.vboxsf: mounting failed with the error: No such device
Yes, the user I am using is in the vboxsf group.
I used a different command though:

Code: Select all

Sudo usermod -a -G vboxsf student
Thanks for the quick replies.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: SF Won't Auto-mount Lubuntu 15

Post by loukingjr »

Just looked at your log. There are no guest additions installed. You need to install the guest additions for shared folders to work.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
madurham
Posts: 24
Joined: 22. Sep 2015, 08:54
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Lubuntu

Re: SF Won't Auto-mount Lubuntu 15

Post by madurham »

loukingjr wrote:Just looked at your log. There are no guest additions installed. You need to install the guest additions for shared folders to work.
I forgot to install dkms before the additions.
Half my brain still thinks it's Christmas. Thanks loukingjr.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: SF Won't Auto-mount Lubuntu 15

Post by loukingjr »

welcome.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply