TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: =?UTF-8?Q?BJ=C3=B6RN_LUND
date: 2018-05-17 16:27:00
subject: Re: ftp causing invalid s

On 2018-05-17 10:08, 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


again (from earlier in the thread)

here I guess I need to clarify that you should exchange
 * USERNAME to the username used to log on to the NAS
 * PASSWORD to the password of above user on the NAS
 * //192.168.1.88/shares to the ipaddres of the NAS +
    the name of the share
 * /mnt/share to a local directory. /mnt/nas is not to bad

if /mnt/nas does not exist - create it :
sudo mkdir /mnt/nas
sudo chown -R pi:pi /mnt/nas

to fix permissions


>
> and it returned:
> mount: mount point /mnt/CCTV/PiZero does not exist

so what does
ls /mnt/CCTV/PiZero on the pi say ?
Most likely that is does not exists.

The create it

sudo mkdir /mnt/CCTV/PiZero
sudo chown -R pi:pi /mnt/CCTV/PiZero


>
> 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.

if the NAS publish a file-share called CCTV and you want to reference
that - deom the pi - with /mnt/CCTV/PiZero, then /mnt/CCTV/PiZero must
exist on the pi.


--
--
Björn

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.