Link to home
Start Free TrialLog in
Avatar of broadsoft
broadsoftFlag for Australia

asked on

Trying to mount a windows share on a ubuntu server 14.04 from command line

Can someone help with the correct syntax for a shell command to mount a whare on a windows machine from a Ubuntu box please.
Trying with the following and cant get a combination that works.

mount -t cifs '\\192.168.21.5\Aquira' /mnt/share -o user=,password=,sec=lanman,rw

The response I get is:
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Avatar of sachiek
sachiek
Flag of Singapore image

Did you check this site..

Clearly explain the steps to mount windows share in ubuntu.

https://wiki.ubuntu.com/MountWindowsSharesPermanently
Avatar of Member_2_406981
Member_2_406981

try sec=ntlm
Avatar of broadsoft

ASKER

sec=ntlm does not work and I get Permission denied error once again..
but its different from IO error.
Try to hardcode user and passwort to the mount-command parameters.

like this:

mount -t cifs '\\server\share' /mnt -o user=username,password=passwordofuser,sec=ntlm
ASKER CERTIFIED SOLUTION
Avatar of Mazdajai
Mazdajai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you
Thank you
I've requested that this question be deleted for the following reason:

No longer relavent
What is "No longer relavent" means?