You are not logged in.

#1 2018-09-28 11:09:25

Grenville
Member
Registered: 2018-09-24
Posts: 36

Problem mounting readyshare drive attached to router (SOLVED)

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

#2 2018-09-28 11:40:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

#3 2018-09-28 14:36:25

papavlos
Member
Registered: 2017-09-23
Posts: 67

Re: Problem mounting readyshare drive attached to router (SOLVED)

@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

#4 2018-09-28 15:37:57

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

papavlos wrote:

@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

#5 2018-10-10 10:27:23

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

#6 2018-10-10 10:55:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

#7 2018-10-10 11:01:00

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

V1del wrote:

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

#8 2018-10-12 09:51:38

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

#9 2018-10-12 10:30:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

#10 2018-10-12 12:37:11

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

V1del wrote:

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

#11 2019-01-07 22:09:13

Grenville
Member
Registered: 2018-09-24
Posts: 36

Re: Problem mounting readyshare drive attached to router (SOLVED)

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

Board footer

Powered by FluxBB