A Ubuntu 18.04 LTS server VM has entered Read-Only Mode, to the point that basic commands such as ls
are not executed anymore, and return the error message -bash: /usr/bin/ls: Input/output error
, even for root.
A Read-only state is usually fixed by executing a disk check (fsck
) or remounting the partitions (remount
), but none of these commands can be called.
It being a VM, booting from an external disk is not an option.
At present, there is connectivity over ssh to the VM, but I fear the connectivity will be lost after a reboot. Does anyone have any idea of something to try, before rebooting as a last resort?
Thanks