On 04/06/18 20:33, Andy Burns wrote:
> RobH wrote:
>
>> 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: ******
>
> hurrah :-)
>
>> I have added this in the fstab file:
>> 192.168.0.22:/mnt/CCTV/PiZero /mnt/CCTV/PiZero
> ^^^^
> where did that creep back from?
>
>> NASname = os.path.join("//192.168.0.22/mnt/CCTV/PiZero" , fname)
>
> once it's mounted you just use the local path you mounted it at
>
> os.path.join("/mnt/CCTV/PiZero", fname)
Does os.path.join("/mnt/CCTV/PiZero", fname) have to be added underneath
NASname= os.path.join etc.
Oh I removed the first /mnt in the fstab file, and now I have big
problem. The shell is locked again.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|