I have set-up my RPi to automatically mount a NAS drive. My /etc/fstab file looks like:
proc /proc proc defaults 0 0
/dev/mmcblk0p5 /boot vfat defaults 0 2
/dev/mmcblk0p6 / ext4 defaults,noatime 0 1
//192.168.2.11/Videos /home/pi/NASvideos cifs username=NASUSER,password=NASPAS,iocharset=utf8 0 0
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
When I start up the RPi and type in ls NASvideos
there is no output while the Videos folder on the NAS drive contains files. However, when I then manually mount the drive by typing in sudo mount -a
followed by ls NASvideos
it now shows the files. I don't understand why I can manually mount the drive like this but it doesn't do it automatically at boot.