Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm not sure what happened, but right now all filesystems (expecpt for / which is on a separate drive) are "read only" even though mount lists them as "rw":

$ mount
/dev/sda1 on /media/Data type ext4 (rw,nosuid,nodev,user_xattr)

But wehn trying to create a file, I get:

$ cd /media/Data/; touch hello
touch: cannot touch `hello': Read-only file system

Trying to remount as rw leads to an error:

$ sudo mount -o remount,rw -t ext4 /dev/sda1 /media/Data
mount: cannot remount block device /dev/sda1 read-write, is write-protected

Any suggestions? could this be a physical problem of the drive?

share|improve this question

1 Answer 1

mount reads the content of the file /etc/mtab. Under some circumstances is this file not up to date.

Please double-check this against /proc/mounts.

The reason for the message cannot remount block device /dev/sda1 read-write, is write-protected may be a hardware write protection, e.g. a switch on the usb-stick.

To investigate your problem, you may investigate the output of dmesg shortly after you have tried to mount the partition.

Also a file system check with fsck is a valuable approach.

share|improve this answer
    
hmm.. you're right - it lists as ro. It's a laptop hard drive (non flash). So what do I do now? –  nbubis Mar 11 '13 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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