Error mounting samba share, cannot mount block device xxxx read-only

After installing Ubuntu 12.04, I’m trying to mount a samba share from Windows under Linux, using a scripted command that’s always worked, and the server hasn’t changed. The error is as follows: $ mount -t cifs //<host>/<share> /media/<share> -o username=<user>,password=<pass> mount: block device //<host>/<share> is write-protected, mounting read-only mount: cannot mount block device //<host>/<share> read-only … Read more

Mount error(5):Input/output error on mount

I am getting mount error (5): Input output error on mounting to cifs windows share. Command executed: sudo /bin/mount -t cifs //server/folder /mnt/folder/ -o username=”domain/username”,password=password Error returned: mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) The ams command worked on RHEL 32 . Answer When setting up a share on … Read more

How to mount a samba share on non-standard port?

The firewall on my network drops all packets on TCP port 139 and 445. So all samba shares don’t work outside the LAN. I tried letting the samba daemon listen on a non-standard port. This method works well for linux, because both smbclient and smbmount has an option to set server port. But on windows … Read more