Code:
# mkdir /data/virtual_machines/vbox/vbusbfs # chown vboxuser.vboxusers /data/virtual_machines/vbox/vbusbfs # chmod 775 /data/virtual_machines/vbox/vbusbfs # echo "none /data/virtual_machines/vbox/vbusbfs usbfs rw,devgid=$(awk -F : '/vboxusers/ {print $3}' /etc/group),devmode=664 0 0" >> /etc/fstab # echo "none /data/virtual_machines/vbox/vbusbfs usbfs rw,devgid=$(awk -F : '/vboxusers/ {print $3}' /etc/group),devmode=664 0 0" >> /etc/fstab # mount -a
I executed the above script (except didn't execute Line 5, and my user:group is vbox:vbox and not vboxuser.vboxusers, and the folder is at /home/vbox and not /data/virtual_machines/vbox), and the following was added to /etc/fstab. Please explain what Line 4 did and what the below line in my fstab file means.
Code:
none /home/vbox/vbusbfs usbfs rw,devgid=496 504,devmode=664 0 0
I then executed mount -a, and got the following response. The part about /var/www/main/ayb_resources and /var/www/main/ayb_cache does not exist is probably some old stuff which I can get rid of, but I am particularly interested in "mount point 0 does not exist" as it seems to be related to the above.
Code:
[root@devserver vbox]# mount -a mount: special device /var/www/main/ayb_resources does not exist mount: special device /var/www/main/ayb_cache does not exist mount: mount point 0 does not exist [root@devserver vbox]#
My total fstab file is as follows:
Code:
[root@devserver vbox]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Sat Apr 19 05:57:56 2014 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/VolGroup-lv_root / ext4 defaults 1 1 UUID=xxx-xxx-xxx-xxx-xxx /boot ext4 defaults 1 2 /dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2 /dev/mapper/VolGroup-lv_mysql /var/lib/mysql ext3 barrier=0 1 2 /dev/mapper/VolGroup-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /home/public/lib /var/www/main_lib/ayb_application/lib none bind /var/www/main/html /var/www/main_lib/html none bind /var/www/main/ayb_resources /var/www/main_lib/ayb_resources none bind /var/www/main/ayb_cache /var/www/main_lib/ayb_cache none bind none /home/vbox/vbusbfs usbfs rw,devgid=496 504,devmode=664 0 0 [root@devserver vbox]# mount -a mount: special device /var/www/main/ayb_resources does not exist mount: special device /var/www/main/ayb_cache does not exist mount: mount point 0 does not exist [root@devserver vbox]#