I have two Raspberry Pi's and I want to mount the directory of the master on the slave on startup
This mounts the directory if I run it manually. I would like to get the mount working everytime I reboot. The master and slave directories both belong to user pi
mount -t cifs //192.168.1.40/scanner -o username=pi,password=raspberry /scanner
on master
drwsrwsrwt 3 pi root 4096 Dec 23 09:43 scanner
on slave
drwsrwsrwt 3 pi root 0 Dec 23 09:43 scanner
I added the mount to /etc/fstab, but it doesn't mount on startup. Here is my fstab file. I tried different things on the line that I defined that I found in this forum and other forums. Can't find the right combination
proc /proc proc defaults 0 0
/dev/mmcblk0p5 /boot vfat defaults 0 2
/dev/mmcblk0p6 / ext4 defaults,noatime 0 1
//192.168.1.40/scanner /scanner cifs username=pi,password=raspberry,rw,file_mode=0777,dir_mode=0777,noperm 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