You are not logged in.
Pages: 1
@
Last edited by duyinthee (2016-12-26 00:57:50)
Offline
From 'man mount.cifs':
Options to mount.cifs are specified as a comma-separated list of key=value pairs.
You are separating your options with a space, which is confusing the command into thinking 'password=secret' is the address of the share, and '//192.168.43.143/' is where you want to mount it.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I tried it.
but I get this:
# mount.cifs -o username=samusername,password=secrete //192.168.43.82 ~/tmp
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)Offline
even if I removed arguments, the error message persist. All of my user names are same.
# mount.cifs //192.168.43.82 ~/tmp
Password for root@//192.168.43.82:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)Offline
this not work too.
# mount.cifs -o sec=ntlm,username=msh,password=cprlaU5 //192.168.43.82 ~/tmp
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)Offline
Looks like it's not enough to just specify a server, you need to specify the share name too. The man page tells you this too.
The mount.cifs utility attaches the UNC name (exported network resource) specified as
service (using //server/share syntax, where "server" is the server name or IP address and
"share" is the name of the share) Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
@
Last edited by duyinthee (2016-12-26 00:58:23)
Offline
Pages: 1