You are not logged in.
Tried:
sudo mount -t cifs //192.168.0.1/usb_storage /media/readyshare -o sec=ntlm
This works on Mint but not as a fstab entry.
From the terminal Arch returns a "mount.cifs" fault and refers me to the man entry.
I have samba running and systemctl status does not report any errors.
Any suggestions?
Last edited by Grenville (2019-01-07 22:07:15)
Offline
Post the exact error message. Also look into your dmesg, chances are your server tries to serve you an old SMB protocol, modern kernels default to SMB 3 add vers=2.1 (or vers=1.0) to the mount options (or preferably fix the server so that it uses a more up to date and non deprecated protocol version).
Offline
@Grenville:
Highly recemmend adding "noauto" option in fstab for mounting samba network shares, as systemd needs sometimes more time to raise network services.
//192.168.0.1/usb_storage /media/readyshare cifs noauto,sec=ntlm 0 0
With this option your boot process will not wait for the network to be up, and you will get access the first time you touch the mounting point, like
ls /media/readyshare/*
Offline
@Grenville:
Highly recemmend adding "noauto" option in fstab for mounting samba network shares, as systemd needs sometimes more time to raise network services.
//192.168.0.1/usb_storage /media/readyshare cifs noauto,sec=ntlm 0 0
With this option your boot process will not wait for the network to be up, and you will get access the first time you touch the mounting point, like
ls /media/readyshare/*
It appears in the sidebar but I am told I need root privileges to mount it.
Offline
I am working through a few solutions suggested on the NETGEAR site and need to understand the feedback I am getting from the terminal.
sudo mount --verbose -t cifs //192.168.0.1/USB_storage /media/readyshare -o sec=ntlm
Password for root@//192.168.0.1/USB_storage:
mount.cifs kernel mount options: ip=192.168.0.1,unc=\\192.168.0.1\USB_storage,sec=ntlm,user=root,pass=********
Unable to find suitable address
What is it telling me to do?
Offline
That message can have a wide array of causes.
Are you sure that your share user is root? You have to pass the user on the share. Have you tried my suggestion wrt to the SMB protocol version?
Offline
That message can have a wide array of causes.
Are you sure that your share user is root? You have to pass the user on the share. Have you tried my suggestion wrt to the SMB protocol version?
Unfortunately, I didn't understand what you meant.
Could you give me an example?
Thanks!
Offline
Just an update for reference purposes.
Used recommended format as shown in ArchWiki/Samba/Cifs
sudo mount -t cifs //192.168.0.1/USB_Storage /mnt/readyshare -o username=*****,password=******,iocharset=utf8,vers=4.8.5-1
mount.cifs kernel mount options: ip=192.168.0.1,unc=\\192.168.0.1\USB_Storage,iocharset=utf8,vers=4.8.5-1,user=******,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Offline
That vers argument doesn't make any sense, your options are 3.1.1,3.0 (the default since kernel 4.13) , 2.1, 2.0, 1.0 (the default for previous kernels) If this server/router hasn't been updated in a while there are chances that 1.0 is the only one that works. You aren't passing SAMBA versions but CIFS/SMB protocol versions: https://en.wikipedia.org/wiki/Server_Message_Block In addition to that page I suggest you read through the man page and look up the arguments you are trying to pass and what they are actually intended to be doing.
Last edited by V1del (2018-10-12 10:38:45)
Offline
That vers argument doesn't make any sense, your options are 3.1.1,3.0 (the default since kernel 4.13) , 2.1, 2.0, 1.0 (the default for previous kernels) If this server/router hasn't been updated in a while there are chances that 1.0 is the only one that works. You aren't passing SAMBA versions but CIFS/SMB protocol versions: https://en.wikipedia.org/wiki/Server_Message_Block In addition to that page I suggest you read through the man page and look up the arguments you are trying to pass and what they are actually intended to be doing.
That looks like a useful pointer.
I was assuming that ver was the version of Samba package.
Thanks!
Last edited by Grenville (2018-10-12 12:37:59)
Offline
Solved the problem by installing gvfs-smb.
It seems I had been led astray by the Netgear website.
Thanks!
Last edited by Grenville (2019-01-08 08:09:54)
Offline