Mapping NAS on Raspberry Pi

First install the client needed to access the network (NAS):

sudo apt-get install cifs-utils

Then make the folder where the network will be mounted:
cd /home/pi
mkdir myNAS
cd myNAS
mkdir myShare

Then edit the fstab file:
sudo nano /etc/fstab
Put this in (in 1 line):
//myNAS/myShare /home/pi/myNAS/myShare cifs username=your_username
Then run this command to mount:
sudo mount -a