On 04/06/18 19:17, Andy Burns wrote:
> RobH wrote:
>
>> I think/reckon that something should be added to the /etc/fstab file
>
> you might eventually want an entry in the /etc/fstab to it can be
> mounted automatically, or with a "mount -a" command, but get the mount
> to work manually first.
>
> Does /CCTV/PiZero exist on the NAS, is it exported by samba or some
> other CIFS server?
>
> Does /mnt/CCTV/PiZero exist on the rPI
>
> All case sensitive.
This worked fine just now:
pi@raspberrypi:~ $ sudo mount //192.168.0.22/CCTV/PiZero /mnt/CCTV/PiZero
Password for root@//192.168.0.22/CCTV/PiZero: ******
I have added this in the fstab file:
192.168.0.22:/mnt/CCTV/PiZero /mnt/CCTV/PiZero
/CCTV/PiZero exists on my NAS box, and /mnt/CCTV/PiZero exist on the PiZero.
So as the mount works now, and is in the fstab file, it now points to
the python script:
NASname = os.path.join("//192.168.0.22/mnt/CCTV/PiZero" , fname)
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|