init=/bin/bash
to the kernel command linemount -o remount,rw /
nano /etc/fstab
sudo apt-get install nfs-kernel-server
sudo service nfs-kernel-server restart
/data/share-osx
as alias /share-osx
:
sudo mkdir -m 000 /share-osx
sudo chmod 777 /data/share-osx
sudo mount --bind /data/share-osx /share-osx
to mount automatically after booted, add the following to /etc/fstab
:
/data/share-osx /share-osx none bind 0 0
/etc/exports
:
/share-osx 192.168.56.0/24(rw,insecure,all_squash,anonuid=1000,anongid=1000,sync,no_subtree_check)
# anonuid, anongid: userId/groupId (numberic) to assign to all files in the share
sudo apt-get install nfs-common
sudo mkdir -m 000 /nfs-share
sudo mount 192.168.56.1:/share-osx /nfs-share
o resvport
arugment/etc/fstab
:
192.168.56.1:/share-osx /nfs-share nfs rw,async,noatime 0 0
resvport
if on OSX