Linux Commands Examples

A great documentation place for Linux commands

mount.vboxsf

x86 virtualization solution

Synopsis

mount.vboxsf [OPTIONS] NAME MOUNTPOINT


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
sudo mount.vboxsf EXCHANGE shared;
ssh-add ./git/CA/id_rsa;
0
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"
0
source
            
sudo mount.vboxsf $1 ~/VBoxShares/$1
cd ~/VBoxShares/$1
pwd
ls --color=auto
}
function umountshare {
0
source
            
"1") mount.vboxsf share share;
echo "mount.vboxsf share share" ;;
"2") mount /dev/sdb1 8148evm;
0
source
            
alias mydoc='sudo mount.vboxsf mydoc /mnt/mydoc'
LESS="--tabs=4 --no-init"
export EDITOR=vim
case ${TERM} in
*)
0
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
0
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

How can this site be more helpful to YOU ?


give  feedback