Recently I had a problem on my Torrent box (an old PC that I use as dedicated torrent client) that runs Ubuntu. For some reason my root partition was being mounted as read-only. Everything else seemed to work (all other partitions were mounted properly), but I couldn’t change any of my config or do anything on root partition.
I did the usual stuff:
Finally, I read somewhere that a similar problem was caused by faulty superblock on hard drive. Fortunately Ubuntu stores superblock backups in different places around disk, so I decided to try to restore it from one of those backups.
It turned out that all I needed was a single command (this Ubuntu forum post helped) to restore superblock:
e2fsck -b 32768 /dev/hdc1
After that my root partition was back to read-write mode. :-)linux, ubuntu