On 05Jul2020 10:20, Bob Goodwin <[email protected]> wrote:
>On 2020-07-05 10:04, Ed Greshko wrote:
>>You're missing the final parameter. You didn't say where to mount! I wrote
>>this out....
>>You're missing /media/smb at the very end.
>.
>[root@WS1 bobg]# mount -o uid=bobg,credentials=/home/bobg/cred
>//192.168.50.149/home/share /media/smb
>mount error(2): No such file or directory
>Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and
>kernel log messages (dmesg)
>
>Sorry for the error. too msny copy pastes ...
Late to the game, but... I would add a "-t cifs" to the above command
line just to be utterly sure. Eg:
mount -t cifs -o uid=bobg,credentials=/home/bobg/cred
//192.168.50.149/home/share /media/smb
When you have that working, you can assemble the fstab entry from the
working incantation.
It is very annoying that mount doesn't what _what_ caused the error(2).
One thing that occurs to me in the above command is that samba shares
are not paths. Normally (presume a samba server and not a Windows
server) the smb.conf has something like:
[sharename]
path = /home/share
and whatever other options. With that, what you ask to mount is the
share name. So:
mount -t cifs -o uid=bobg,credentials=/home/bobg/cred
//192.168.50.149/sharename /media/smb
You can't ask a Samba server for an arbitrary path, you need to ask for
a share name.
Cheers,
Cameron Simpson <[email protected]>
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]