TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2018-05-19 12:50:00
subject: Re: ftp causing invalid s

On Sat, 19 May 2018 10:08:03 +0100, RobH  declaimed the
following:

>
>pi@raspberrypi:~ $ sudo mount -t cifs -o username=root,password=******
>//NAS/CCTV/PiZero /mnt/CCTV/PiZero

 This is where you want the IP# of your NAS device, unless you have a
DNS system that knows what machine "NAS" refers to...

>mount error(115): Operation now in progress
>Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
>pi@raspberrypi:~ $
>
 Suggest rebooting the RPi to clean up any partial mount operations
before starting again...

>Here I used both password and username for my NAS box
>

 It took me a few attempts but I opened up a directory on my Windows box
for network sharing. Had to add my admin account to the share (my user
account does not have a password, but the mount command fails if I don't
provide one).

 Again -- all path names are for MY systems, don't take them literally;
I'm doing these just to show functioning examples!

 Create mount point directory on local machine
pi@raspberrypi:~$ ls /media
pi
pi@raspberrypi:~$ sudo mkdir /media/Shared

 Attempt to mount fails as Windows machine is not in any DNS lookup
pi@raspberrypi:~$ sudo mount -t cifs //ElusiveUnicorn/VB_Shared
/media/Shared -o username=wulfraed
mount error: could not resolve address for ElusiveUnicorn: Unknown error

 Using IP address; fails since my user account does not have a password
to send
pi@raspberrypi:~$ sudo mount -t cifs //192.168.2.109/VB_Shared
/media/Shared -o username=wulfraed
Password for wulfraed@//192.168.2.109/VB_Shared:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

 After adding "root" (my Windows admin account, which does have a
password) to the share (on Windows) (without adding that account to the
share users I get no-permissions errors)
pi@raspberrypi:~$ sudo mount -t cifs //192.168.2.109/VB_Shared
/media/Shared -o username=root
Password for root@//192.168.2.109/VB_Shared:  **********

 No error, display the contents of the shared directory
pi@raspberrypi:~$ sudo ls /media/Shared/
BabaYagaHut.bmp  cache    code_1.16.0-1504714880_amd64.deb  slrn.rc
VB_share_permissions.txt
BabaYagaHut.png  cache.c  myTest.dat                        so.py
pi@raspberrypi:~$

 Needed "sudo" since I didn't chown the mount to my RPi user. (Strange
-- the same sequence on my BBB is giving a "host is down" on the attempt to
mount)



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

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