Error mounting samba share, cannot mount block device xxxx read-only
        Posted  
        
            by 
                Jeff Ward
            
        on Super User
        
        See other posts from Super User
        
            or by Jeff Ward
        
        
        
        Published on 2012-12-06T16:55:44Z
        Indexed on 
            2012/12/06
            17:08 UTC
        
        
        Read the original article
        Hit count: 321
        
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
$
I've read a lot of discussions about permissions, but unfortunately, that wasn't the issue. I'm submitting my own answer below for reference, hope this helps someone else.
© Super User or respective owner