VirtualBox

Ticket #1603 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

mount vboxsf filesystems automatically => Fixed in 1.6.2

Reported by: matthijs Owned by:
Priority: trivial 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

comment:1 Changed 6 years ago by frank

  • Summary changed from mount vboxsf filesystems automatically to mount vboxsf filesystems automatically => Fixed in 1.6.2

This is a good idea and I committed a similar fix this SVN.

comment:2 Changed 6 years ago by sandervl73

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use