I have a thumb drive that I keep LUKS-encrypted. Recently had a computer crash. I'm able to open the encrypted device without any apparent problems, but when I try to mount the drive (as root) I get the following error:
EXT4-fs (dm-1): write access unavailable, cannot proceed. mount: /media/thumb: cannot mount /dev/mapper/thumb read-only.
dmesg gives me:
EXT4-fs (dm-1): INFO: Recovery required on read-only filesystem EXT4-fs (dm-1): write access unavailable, cannot proceed
Okay, so fsck, right? Well...
fsck.ext4: Operation not permitted while trying to open /dev/mapper/thumb You must have r/w access to the filesystem or be root
And, of course, I'm running this as root.
Does anyone have any suggestions? Am I hooped?
Running Arch, if that makes a difference.
EDIT: The issue was the, uh, read/write switch on the SD card was in the "read only" position. Soooooooooo once I put it right I was able to fsck the partition without issue. Nevertheless the solution provided was enough to get the data off the partition, so I'll leave the question in case someone else has the same issue (since Google didn't really have much about it). I'm gonna go spend the rest of the night sitting in the corner. Cheers!