mount: cannot remount block device /dev/sda5 read-write, is write-protected
Solution 1:
I'm afraid this is due to corruption on the filesystem or problems on the underlying hardware, since it's the root filesystem my recommendation is to boot the server again with a rescue disc (or in single user mode) and try to repair the disk through fsck
.
- Check what
dmesg
says to confirm the corruption - Run
fsck
to repair the hard drive, as soon as fsck is run reboot immediately to avoid any issues
Hola Marc,
Em temo que aixo es un sintoma de corrupcio al sistema de fitxers o de problemes del hardware subjacent, com es el / lo que et recomano es de rebotar el servidor amb un CD de rescat e intentar reparar el disc amb fsck
.
- Mira que diu la comanda
dmesg
nomes per corroborar que hi ha corrupcio - Executa
fsck
per reparar el teu disc, en quan acabi rebota inmediatament per preveure qualsevol altre tipus de problema
Bona sort!
Solution 2:
I've seen this before when a RAID card went bad, and the ext3 journal file couldn't be written to. At that point, the kernel marked the root FS read-only and wouldn't allow it to go back.
Nothing was logged about this, because of course the /var FS was on the same disc, and also RO. dmesg
, however, was pleased to tell us about the problem. So, can you do a dmesg
and tell us about the output?
In our case, the only fix was to power-cycle to wake up the RAID card, then reboot from rescue media and fsck the file system.