1
vote
0answers
1k views

Why does mkfs fail with 'Read-only file system'?

I'm trying to format a pen drive using mkfs, but it fails with: Read-only file system. Here is what I have tried so far: $ sudo hdparm -r0 /dev/sdb1 /dev/sdb1: setting readonly to 0 (off) readonly ...
5
votes
3answers
24k views

How to delete/edit files from readonly filesystem

I am having problem with my memory device (actually a memory card that act external memory device like pendrive). experimentx@workmateX:/var/www/zendtest$ sudo rm ...