I have a Lenovo laptop with an SSD and Ubuntu 18.04. The root partition keeps remounting read-only, according to the console messages. Except it won't read when it happens, either, just giving I/O errors. Unfortunately, it's the root partition, and I don't have any other Linux partitions on the disk, so this means I can't do dmesg
(or virtually any other command) when it happens. When I force it to reboot, everything is fine again for a few days until it randomly happens again. (Although, recently I did discover there is one particular setup script in a Git repo I'm working with that somehow always causes it to happen.)
Without any kind of logging or dmesg
, the best info I can find is what is on the console before I reboot, which is always something like this, with more of the same scrolling across the screen until I force shutdown:
(Pardon the cell phone quality photo)
I've booted from a live USB and used e2fsck to force a check for errors including bad blocks (-c twice) and it found nothing. I've booted Lenovo's diagnostics and it found nothing wrong with the hardware. I've checked the S.M.A.R.T. data for the disk and everything was normal. I don't know what else to check.
Is there any way to determine what is going on?