deadman96385

Untitled

Jul 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #remount the root filesystem rw so that we can create the mountpoint
  2. /sbin/busybox mount -o remount,rw /
  3. #create the mountpoint
  4. /sbin/busybox mkdir -p /mnt/nfs/Download
  5. #make the mountpoint world readable so that all user apps can access it
  6. /sbin/busybox chmod 777 /mnt/nfs
  7. /sbin/busybox chmod 777 /mnt/nfs/Download
  8. #remount / as ro
  9. /sbin/busybox remount,ro /
  10. #mount the actual NFS share (on 192.168.1.5:/DataVolume/Download
  11. su --mount-master -c "/sbin/busybox mount -o nolock,ro,hard,intr,vers=3 -t nfs 192.168.1.5:/DataVolume/Download /mnt/nfs/Download"
  12. #check that it was mounted
  13. mount | grep /mnt/nfs/Download
Add Comment
Please, Sign In to add comment