1

I am trying to mount one of network share to my laptop. I am using following command

sudo mount -t cifs //server.name/shared /mnt/myfolder -o user="username"

However, I am getting very different errors every time I run this command. See attached picture

dex@lina:/$ sudo mount -t cifs //server.name/shared /mnt/share -o user="username"
Password for username@//server.name/shared:  ********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
dex@lina:/$ sudo mount -t cifs //server.name/shared /mnt/share -o user="username"
Password for username@//server.name/shared:  ********
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
dex@lina:/$ sudo mount -t cifs //server.name/shared /mnt/share -o user="username"
Password for username@//server.name/shared:  ********
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
dex@lina:/$ 

In case someone wants to see screen-shot, can find it here.

server.name is a name of a server and not an IP address. I know this server exists because person next to me running Windows 10 and has that share mapped. However, that person have no idea who and how mapped that drive. We both are on same network.

Can anyone tell me what is going on and how can I fix this? I have also tried with -o rw but same errors. I am using Debian 9 (stretch) with xfce.

  • Please don't post screenshots of text. Copy the text here and apply code formatting: unix.stackexchange.com/editing-help#code – muru Jun 12 at 9:50
  • @muru, I have already added text of the command before screen shot. – Dexter Jun 12 at 9:57
  • But not the errors, and you're talking about multiple "different errors" – muru Jun 12 at 10:00
  • What does the server report in its logfiles? – roaima Jun 12 at 12:18
  • @roaima I don't have access to server. I am just an user trying to access common network share folder. – Dexter Jun 12 at 12:23
0

I figured it out. Command works when I used IP address instead server name.

sudo mount -t cifs //0.0.0.0/shared /mnt/myfolder -o user="username"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.