Prerequisites
Mount folders on NAS
My goal is to share folders that are on my NAS which hostname is chezak.local and IP is 192.168.0.13. So first:
- create a
piuser/group on the NAS with the sames uids as on the pi:1000/1000 - setup NFS permissions on shared directories on the NAS via the web interface
It seems that rpcbin is a necessary dependency:
$ sudo apt-get install rpcbind
$ sudo update-rc.d rpcbind enable
$ sudo /etc/init.d/rpcbind startCreate folders:
$ sudo mkdir /mnt/incoming
$ sudo mkdir /mnt/music
$ sudo mkdir /mnt/videoMount folders:
$ sudo mount chezak.local:/volume1/incoming /mnt/incoming
$ sudo mount chezak.local:/volume1/music /mnt/music
$ sudo mount chezak.local:/volume1/video /mnt/videoTest:
$ showmount -e chezak.localPersist mounts:
$ sudo emacs /etc/fstabAdd those lines:
192.168.0.13:/volume1/incoming /mnt/incoming nfs rw,hard,intr 0 0
192.168.0.13:/volume1/music /mnt/music nfs ro,hard,intr 0 0
192.168.0.13:/volume1/video /mnt/video nfs ro,hard,intr 0 0
External References:
- https://help.ubuntu.com/community/SettingUpNFSHowTo
- https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/3/html/System_Administration_Guide/s1-nfs-mount.html
Mount folder on Freebox v6
First, enable windows share on freebox with user/pass and CHEZAK workgroup.
Freebox's hostname is mafreebox.freebox.fr.
Test:
$ smbclient -L mafreebox.freebox.fr -N | grep "Disk" | cut -c -17Create folder:
$ sudo mkdir /mnt/freeboxSetup mount:
$ sudo emacs /etc/fstabAdd that line:
//mafreebox.freebox.fr/Disque\040dur /mnt/freebox cifs _netdev,rw,users,iocharset=utf8,user=freebox,password=PASSWORD, uid=1000,sec=none,file_mode=0777,dir_mode=0777 0 0
Mount folder:
$ sudo mount /mnt/freeboxExternal References: