Page 1 of 1

SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 13:14
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.

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 13:21
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.

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 13:23
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)

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 13:36
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.

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 14:16
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.

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 15:24
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.

Re: SF Won't Auto-mount Lubuntu 15

Posted: 5. Jan 2016, 15:25
by loukingjr
welcome.