On 2018-05-20 20:00, RobH wrote:
> I did sudo chown pi:pi /mnt/CCTV/PiZero and sudo chown pi:pi /mnt/CCTV
>
> Then I:
> pi@raspberrypi:~ $ sudo mount //192.168.0.22/CCTV/PiZero /mnt/CCTV/PiZero
> Password for root@//192.168.0.22/CCTV/PiZero: ******
> pi@raspberrypi:~ $
>
> No error messages of any kind now, so in the script you provided, where
> or what should I change to incorporate FreeNAS ip address.
great.
before fiddling with the script try this
echo "test" > /mnt/CCTV/PiZero/test.txt
check on you nas if you see the file at CCTC/piZero
if you do - then try the script
if you get permission denied, try
sudo echo "test" > /mnt/CCTV/PiZero/test.txt
check again.
if ok (you see in in the nas)
remove the file with
sudo rm /mnt/CCTV/PiZero/test.txt
fix permissions
sudo chown -R pi:pi /mnt/CCTV/PiZero
(note '-R' for recursive)
and try again
echo "test" > /mnt/CCTV/PiZero/test.txt
if ok, try the script
--
--
Björn
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|