Then, create a folder where the NAS will be mounted, e.g.
Next, create a file with username and password.
Add to the file your username/password to access the NAS.
Change credentials to the file.
Open fstab file.
sudo nano /etc/fstab
Add the following line (substitute ip.address with the IP of NAS and folder with the name of your shared folder).