NFS stands for Network File System, which is made by sharing each file between different machine or different operating system.
In this demo, user will learn how to install NFS Server under Linux NAS. By installs NFS server, user can share files between computer and NAS more smoothly and improve work efficiency. NFS can also help data interfacing more easily between other software. This manual is applicable to the following models: Power NAS PN-401, PN401-R and other Linux NAS.
Please note that this demo is all operated by Power NAS PN-401.
Step 1. Set up a Remote Desktop
Use WINDOWS Built-in function [Remote Desktop Connection] connect to the PN-401.
Please note: Your computer and PN-401 need to connect to the same Local area network(LAN).
1.Login to PDM, and find [PowerBox].
2.Turn on [Remote Desktop] button.
3.Press Windows+R key, it should pop out the Run Dialog box; please enter [mstsc] and press OK.
4. It should jump out [Remote Desktop Connection] box. Please enter your IP address.
Please note: The IP address should follow your PN-401, In this demo, IP address is 192.168.1.69
Then, you may be prompted to verify that you want to connect to that computer. Please select “Yes.”
5. It should go straight to the login box; please enter your System Administrator username and password.
After finish entering, press OK, and it goes to the PN-401 operating system.
Step 2. Enter Command to get ROOT authorization
1. Press CTRL+ALT+T to call out a terminal
2. Enter cat /etc/pdm/pnadmin to get your operating system administrator – pnadmin’s password. In this demo, pnadmin’s password is 35f195f2.
Please note: each PN-401 all have a different password.
3. Next, please enter su pnadmin as system administrator – pnadmin username to log in. When you are entering the password, the password will not display on the screen; just press enter after you finished all the information.
If you entered the wrong information, the system would show [Authentication failure]
If system showed [pnadmin@PowerNAS: /mnt/myraid/home/admin$] that means you already succeed switch account to pnadmin.
4. Enter sudo su to get ROOT authorization, then enter the password you already have (Same as pnadmin’s password), press enter.
When you succeed, you should see your account already switch to root.
Step 3. Install NFS Server
Back to the command box.
1.Please enter [sudo apt-get update]
2.That should activate an update, after update process finish, please enter [sudo apt-get install nfs-kernel-server] to install NFS kernel server.
Wait for the installation finished.
3. After installation completed, please enter [mkdir /mnt/myraid/test] to build folder under myriad.
Please note: In PN-401, RAID saved in mnt/myriad, that is why we use this as a demo.
4. Please enter [chmod –R 777 /mnt/myraid/test]
5. Enter [nano /etc/exports], it will activate the editor.
6. Enter information:[/mnt/myriad/test 192.168.0.139(rw,sync,no_root_squash,no_all_squash)]
Then press CTRL+X to save the process.
Please note: 192.168.0.139 is the IP address from the Client side.
Press Y key to save all changes.
Press ENTER to make sure the file name is correct.
7. Enter [sudo ufw allow from 192.168.0.139], in order to build firewall rule to allow access for 192.168.0.139 (Client side)
8. Enter [/etc/init.d/nfs-kernel-server restart] to restart NFS server.
Step 4. Client-side Validation
1.Back to Client side, in this demo, it should be Win10 (IP:192.168.0.139)
2.Open the Command Prompt box, enter mount \\192.168.1.69\mnt\myraid\test H:
3. After finished all the information and press enter，you will see there’s a new H drive.
4. Use remote desktop back to PN-401 to make sure server side’s data match to the client side.
5. In command prompt character, enter [NET USE] in the command box, you can see \\192.168.1.69\mnt\myraid\test is using NFS network to transfer data. That means installation succeed and we are all set!