mount.vboxsf
x86 virtualization solution
Synopsis
mount.vboxsf
[OPTIONS] NAME MOUNTPOINT
add an example, a script, a trick and tips
examples
source
sudo mount.vboxsf EXCHANGE shared;
ssh-add ./git/CA/id_rsa;
source
echo "Starting mount
share directory for vbox"
mount.vboxsf -o uid=1000,gid=1000,dmode=0775,fmode=0664
share /mnt/share
;;
stop)
echo "Stopping mount
share directory for vbox"
source
sudo mount.vboxsf $1
~/VBoxShares/$1
cd ~/VBoxShares/$1
pwd
ls --color=auto
}
function umountshare {
source
"1")
mount.vboxsf share share;
echo "mount.vboxsf share
share" ;;
"2") mount
/dev/sdb1 8148evm;
source
alias mydoc='sudo
mount.vboxsf mydoc /mnt/mydoc'
LESS="--tabs=4 --no-init"
export EDITOR=vim
case ${TERM} in
*)
source
echo "mount.vboxsf -w -o uid=1001 Shared_Folder
/home/qiime/Desktop/Shared_Folder" >> /etc/rc.local
cat /etc/rc.local.bak >> /etc/rc.local
source
echo "mount.vboxsf -w -o uid=1001 Shared_Folder
/home/qiime/Desktop/Shared_Folder" >> /etc/rc.local
cat /etc/rc.local.bak >> /etc/rc.local
description
Mount the
VirtualBox shared folder NAME from the host system to
MOUNTPOINT.
-w
mount the shared folder writable (the default)
-r
mount the shared folder read-only
-n
do not create an mtab entry
-o
OPTION[,OPTION...] use the
mount options specified
Available mount options are:
rw
mount writable (the default)
ro
mount read only
uid=UID
set the default file owner user
id to UID
gid=GID
set the default file owner
group id to GID
ttl=TTL
set the "time to
live" to TID for the dentry
dmode=MODE
override the mode of all
directories to (octal) MODE
fmode=MODE
override the mode of all
regular files to (octal) MODE
umask=UMASK
set the umask to (octal)
UMASK
dmask=UMASK
set the umask applied to
directories only
fmask=UMASK
set the umask applied to
regular files only
iocharset CHARSET
use the character set CHARSET
for I/O operations (default set is utf8)
convertcp CHARSET
convert the folder name from
CHARSET to utf8
Less common
used options:
noexec,exec,nodev,dev,nosuid,suid