2010-05-28

Slitaz -- vboxadd / folder sharing


folder sharing

Env:
HOST: winxp (with Ext2fsd)
GUEST: slitaz-3.0.iso in HD (vdi)
VirtualBox: 3.1.8

root@slitaz:~# lsmod | grep vboxsf
vboxsf 29528 1
vboxguest 113576 2 vboxsf
root@slitaz:/home/slitaz# mount.vboxsf slitaz3 /mnt/share
root@slitaz:/home/slitaz# ls -l /mnt/share
drwxrwxrwx 1 root root 0 Apr 26 15:25 bin
drwxrwxrwx 1 root root 0 May 15 22:55 boot
drwxrwxrwx 1 root root 0 May 27 10:13 dev
drwxrwxrwx 1 root root 0 May 27 09:07 etc
drwxrwxrwx 1 root root 0 May 27 09:13 home
-rwxrwxrwx 1 root root 3162 Mar 12 17:26 init
drwxrwxrwx 1 root root 0 May 15 23:45 lib
drwxrwxrwx 1 root root 0 Mar 7 01:08 lost+found
drwxrwxrwx 1 root root 0 May 27 10:16 media
drwxrwxrwx 1 root root 0 Apr 23 14:42 mnt
drwxrwxrwx 1 root root 0 May 19 15:32 opt
drwxrwxrwx 1 root root 0 May 15 23:58 opt-backup
drwxrwxrwx 1 root root 0 Mar 7 01:08 proc
drwxrwxrwx 1 root root 0 May 27 19:44 root
drwxrwxrwx 1 root root 0 May 19 14:24 sbin
drwxrwxrwx 1 root root 0 Mar 7 01:08 sys
drwxrwxrwx 1 root root 0 May 27 19:44 tmp
drwxrwxrwx 1 root root 0 May 27 17:37 usr
drwxrwxrwx 1 root root 0 May 2 01:28 var
root@slitaz:/home/slitaz# ls -l /mnt/share/home/slitaz/distro
drwxrwxrwx 1 root root 0 May 27 10:30 rootcd
drwxrwxrwx 1 root root 0 May 27 10:30 rootfs
-rwxrwxrwx 1 root root 31457280 May 27 11:54 slitaz-1.iso
-rwxrwxrwx 1 root root 45 May 27 11:54 slitaz-1.md5
-rwxrwxrwx 1 root root 81788928 May 27 13:08 slitaz-201005271305.iso
-rwxrwxrwx 1 root root 58 May 27 13:08 slitaz-201005271305.md5
-rwxrwxrwx 1 root root 108003328 May 27 15:23 slitaz-201005271522.iso
-rwxrwxrwx 1 root root 58 May 27 15:23 slitaz-201005271522.md5
-rwxrwxrwx 1 root root 81788928 May 27 12:13 slitaz-2.iso
-rwxrwxrwx 1 root root 45 May 27 12:13 slitaz-2.md5
root@slitaz:/home/slitaz# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,data=writeback)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /dev/shm type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
none on /mnt/share type vboxsf (rw,nodev,relatime)
root@slitaz:/home/slitaz#

root@slitaz:~# mount.vboxsf -help
Usage: mount.vboxsf [OPTIONS] NAME MOUNTPOINT
Mount the VirtualBox shared folder NAME from the host system to MOUNTPOINT.

-w mount the shared folder writably (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 writably (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
root@slitaz:~#