Page 1 of 1

[Resolved] No mount rc.local version 5.1.24

Posted: 3. May 2018, 21:35
by hechicero0015
When updating virtualbox you have not the unit at startup.If you mount the unit in / media / sf_www.
someone can help me thank you very much.

Code: Select all


#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


#mount.vboxsf -t vboxsf /media/sf_www /var/www/html/

mount -t vboxsf -o rw,uid=33,gid=33 www /var/www/html/

#mount.vboxsf -w -o fmode=0777,dmode=0777 www /var/www/html/
# ln -s /media/sf_www/ /var/www/

#mount -t vboxsf www /var/www/html/

exit 0



Code: Select all


/etc/group
vboxsf:x:999:alberto,www-data


Re: No mount rc.local version 5.1.24

Posted: 3. May 2018, 22:32
by hechicero0015
The problem is the OS running rc.local too fast, before the service is actually loaded. Add a sleep 10 in the script line.

sleep 10 && mount -t vboxsf -o rw,uid=33,gid=33 www /var/www/html/

Re: No mount rc.local version 5.1.24

Posted: 4. May 2018, 00:31
by socratis
Thanks for the feedback. You managed to report both the problem, and (more importantly) the solution!

Marking as [Resolved].