On Thu, 17 May 2018 14:44:08 +0100, RobH wrote:
> On 17/05/18 14:20, Martin Gregorie wrote:
>> On Thu, 17 May 2018 13:45:04 +0100, RobH wrote:
>>
>>> On 17/05/18 10:16, Chris Green wrote:
>>>> RobH wrote:
>>>>> On 15/05/18 09:55, Björn Lundin wrote:
>>>>>> On 2018-05-15 10:39, RobH wrote:
>>>>>>> ftp://NAS server ip address/mnt/folder/subfolder
>>>>>>
>>>>>> A NAS usually exports fileshare, and often via smb/cifs mount a
>>>>>> fileshare to the NAS on the pi,
>>>>>> and save the picture directly on the NAS - without ftp.
>>>>>>
>>>>>>
>>>>>> eg #mount -t cifs -o username=USERNAME,password=PASSWD
>>>>>> //192.168.1.88/shares /mnt/share
>>>>>>
>>>>>> (as root)
>>>>>>
>>>>>> I
>>>>>> from
>>>>>> https://askubuntu.com/questions/101029/how-do-i-mount-a-cifs-share
>>>>>>
>>>>>>
>>>>>>
>>>>> I have tried:
>>>>> sudo mount -t cifs -o username=USERNAME,password=PASSWD
>>>>> //192.168.1.88/shares /mnt/share
>>>>>
>>>>> and it returned:
>>>>> mount: mount point /mnt/CCTV/PiZero does not exist
>>>>>
>>>>> I then changed it and added //192.168.0.22/CCTV /mnt/CCTV/PiZero in
>>>>> the fstab file The line in fstab looks like this: /192.168.0.22/CCTV
>>>>> /mnt/CCTV/Pizero, but till get the same error message as above mount
>>>>> point does not exist.
>>>>>
>>>>> What have I missed.
>>>>
>>>> I think it means what it says. /mnt/CCTV/PiZero doesn't exist, you
>>>> need to create the directory where something is to be mounted.
>>>>
>>> I have just created on the root folder of PiZero, and when I run the
>>> mount command, it still says that it does not exist.
>>>
>>> I'm beat now!
>>>
>> Does the directory on the NAS box you're trying to access exist?
>>
>> Since none of the parameters for any 'mount' command you've shown us
>> contain /mnt/CCTV/PiZero I think, to avoid confusion, you should show
>> us:
>>
>> - the output of "ls /" when run on both the Pi zero and your NAS box
>>
>> - the exact 'mount' command that is failing and the error message (copy
>> and paste the command line, "$ mount....", and the error line.
>>
>> - an explanation of why you've added /mnt/CCTV/PiZero to /etc/fstab,
>> and which system you did that on.
>>
>> - what, if any, Linux reference guide you're using.
>>
>> "Linux in a Nutshell" and
>> http://www.debian.org/doc/manuals/debian-reference/
>> are both good.
>>
>>
>>
> Yes the folder/directory/dataset does exist on my NAS box, and have been
> downloading pictures and video to /CCTV for about 3 years now. Now I
> want to dowonload video from my PiZero to /CCTV/PiZero on my NAS box
>
> Pi Zero ls /
> . bin dev home lost+found media opt root sbin sys usr .. boot etc lib
> man mnt proc run srv tmp var
>
> NAS box ls /
> .cshrc boot entropy mnt sys
>
> .profile compat etc proc tmp
>
> .rnd conf lib rescue usr
>
> COPYRIGHT data libexec root var
>
> bin dev media sbin
>
>
> Why I added this /mnt/CCTV/PiZero to /etc/fstab, was because running
> the mount command kept say the said folder doesn't exist.
>
It never ocurred to you to create the directory, e.g.:
$ mkdir /mnt/CCTV
$ mkdir /mnt/PiZero
'mount' is for mounting disk partitions by creating a directory,
typically in the root directory, that points to the partition - not for
creating directories in partitions.
> On my linux desktop I a similar line to the fstab file as I was using
> emby media player:
> 192.168.0.22:/mnt/WinShare/Media/Music /mnt/WinShare/Media/Music nfs
> auto, nofa$
>
> And it works.
>
> I am not using any reference guide, just from youtube and poster who
> reply to me.
>
Then I strongly suggest you get "Linux in a Nutshell" and/or bookmark the
Debian reference that I also mentioned and read. understand and inwardly
digest what it they have to say about mounting remote filing systems.
'man mount' explains the specifics of using the 'mount' command. Reading
either of the above gives the context you need to understand what happens
when you mount a local partition and/or a remote mount point. Finding out
about nfs and/or samba are also useful things to do. So is finding out
about the 'apropos' command.
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|