On Fri, 18 May 2018 12:47:24 +0100, RobH declaimed the
following:
>Ok I have removed the //192.168.0.22 and is now //mnt/CCTV/PiZero.
>
Remove the extra / -- the local machine file system root is just one /
>The python script runs without error, BUT it does not record any file
>from detected motion.At least, I cannot find any files in
>//mnt/CCTV/PiZero on the PI Zero, nor on my NAS box.
>
>You say to 'mount the NAS directory into this'
>
>Where abouts in the //mnt/CCTV/PiZero does it go.
>
It doesn't go "in" the directory...
The "mount" command takes the NAS path (this is the one that has the
IP#) and maps it to the local directory path (the one without an IP#) by
which you will access it. They don't have to be the same names. It just
requires the local directory path to exist first.
mount ... //NAS/mnt/CCTV/PiZero /mnt/CCTV/PiZero
maps the local PiZero directory to the NAS PiZero directory -- but leaves
the parent CCTV directory as a local:
cd /mnt/CCTV is still on the RPI
cd /mnt/CCTV/PiZero is really on the NAS
but if you did
mount ... //NAS/mnt/CCTV /mnt/CCTV
and the NAS has the full path to a PiZero directory then
cd /mnt/CCTV will be on the NAS, and
cd /mnt/CCTV/PiZero will also be on the NAS
"mount" sets the "root" for the remote file system -- you can go /down/
deeper in the directory structure, but can not go above the remote root
(attempts will put you back in the local RPI file system)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|