Opened 17 years ago
Closed 17 years ago
#1603 closed enhancement (fixed)
mount vboxsf filesystems automatically => Fixed in 1.6.2
Reported by: | Matthijs Melchior | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 1.6.0 |
Keywords: | vboxvfs mount vboxsf | Cc: | |
Guest type: | other | Host type: | other |
Description
Please add code like the following to /etc/init.d/vboxvfs inside a Linux guest. This will mount and umount the 'vboxsf' filesystems mentioned in /etc/fstab whenever the vboxvfs kernel module is inserted or removed.
Thanks.
--- vboxvfs-ORG 2008-05-22 17:24:00.000000000 +0200 +++ vboxvfs 2008-05-23 16:14:16.000000000 +0200 @@ -140,16 +140,21 @@ fail "modprobe $modname failed" } } + # Now we can mount vboxsf filesystems mentioned in /etc/fstab + mount -a -t vboxsf + succ_msg return 0 } stop() { begin "Stopping VirtualBox Additions shared folder support "; - if running; then - rmmod $modname || fail "Cannot unload module $modname" - fi - succ_msg + # must umount vboxsf filesystems first + umount -a -t vboxsf && + if running; then + rmmod $modname || fail "Cannot unload module $modname" + fi && + succ_msg return 0 }
Change History (2)
comment:1 by , 17 years ago
Summary: | mount vboxsf filesystems automatically → mount vboxsf filesystems automatically => Fixed in 1.6.2 |
---|
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is a good idea and I committed a similar fix this SVN.