Mounting a wifi usb

I have connected a usb storage (ntfs) to the wifi router and configured myuser mypassword from the router administration page.
I can see and mount the new usb drive from a window machine, through user and password.

Tried on Fedora 37

First, checked that

[giulio@fedora ~]$ smbclient -L -COMP -I 192.168.1.1 -U admin
Password for [SAMBA\admin]:

	Sharename       Type      Comment
	---------       ----      -------
	(usb1_sda1)Konstanz Disk      Konstanz
	IPC$            IPC       IPC Service (Gateway)
SMB1 disabled -- no workgroup available

But then

sudo  mount -t cifs -o username=myuser,password=mypassword '\\192.168.1.1\(usb1_sda1)Konstanz' /mnt/wifi-usb 
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
[giulio@fedora ~]$ journalctl -kS 17:30
Dec 26 17:31:11 fedora kernel: CIFS: Attempting to mount \\192.168.1.1\(usb1_sda1)Konstanz
Dec 26 17:31:11 fedora kernel: CIFS: VFS: cifs_mount failed w/return code = -22

What should I do?

Found it works with vers=2.0, so it was silently dropping version 3.

(now I have to sudo to modify files, but it’s supposed to work like that)

Adding uid=$UID to your list of mount options might allow you to edit the files without using sudo. You might also want/need file_mode=0600,dir_mode=0700.

1 Like

correct, btw I also manged to configure the router in such a way to avoid the parenthesis in the share name…

And it is too slow (surprisingly because the wifi conn is very fast, maybe it’s due to the vers=2.0? or to this specific service protocol)… I have to fall back to plugging it into a local usb