Mount network share, Unable to find suitable address.
-
Hey!
I'm trying to mount a network share to my retropie, tho it's not going well. I only get this message when trying to mount
Unable to find suitable address.
No error code no nothing, just this text.
Here is my mount code
sudo mount -t cifs //piserver.local/RetroPie/roms /home/pi/RetroPie/roms -o username=pi,password=**
Been google around for a bit and the line seems about right, not sure what to do now, i'm kinda stuck.
A bit of a weak explanation perhaps, but this is all i get =/
//Bagrn
-
Is
piserver.local
name known to the RetroPie system ? If you runping piserver.local
do you get an IP address ?
-
Yea it's known and all.
I've tried with the ip-address as well, same message.I've tried some other stuff too, found out you could run
tail /var/log/messages
and get some error message connected to, what I assume the latest actions?I get this stuff.
retropi kernel: [ 71.817225] CIFS: Attempting to mount //piserver.local/RetroPie/roms retropi kernel: [ 71.817362] CIFS: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
So naturally, I tried adding
,vers=1.0
to the option. resulting in this.sudo mount -t cifs //piserver.local/RetroPie/roms /home/pi/RetroPie/roms -o username=pi,password=**,vers=1.0
Same error message, saying unable to find....
and the log now only saysCIFS: Attempting to mount //piserver.local/RetroPie/roms
So, there isnt really much to go on here. I tried
sudo apt upgrade
in case there was something new, but still the same issue. -
If the IP address is ok, is your share really called
RetroPie
? -
pi@piserver:~/RetroPie/roms $
I've created a folder in the home directory with that name at least, so I figure it's there. If there was some kind of permission issue surely it would say so in the logs. -
@Bagarn That's not how (SMB) shares work - you need to explicitly add the share to the
smb.conf
on the server where the Samba services run before any client can connect to/mount them. -
Right, so I jsut installed samba and configured it, it's working like a charm now. So sorry for wasting your time mr! I'm kinda new to Linux and stuff.
To be fair, the guide did not mention samba or anything like that. :D
Thanks for the rubberducking and help. :D
-
@Bagarn said in Mount network share, Unable to find suitable address.:
To be fair, the guide did not mention samba or anything like that. :D
Yes, the guide is only for the client side setup, not the server itself. Glad you got it sorted out, have fun !
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.