My power went out during some rain recently while I was away from home. When I got back the power was still out and when it came back on, my system seems to have suffered some issues.
Some information about my system:
It is a desktop running Windows 10 Professional installed on two SSDs setup in RAID0. It also has a RAID5 array of three 6TB disks used for bulk storage of media.
I run pretty much everything inside of a Linux Mint 18.3 Guest OS using Virtualbox.
The main virtual disk (VDI) on which Linux Mint is installed is stored on the SSDs, and all of the media on my RAID5 array is shared with the Linux guest OS via the shared folder feature of VirtualBox.
When power was restored to my place, I tried powering up the machine. The Windows 10 host OS booted fine, it didn't even need to run a disk check or anything that I noticed. Seems to be running fine.
When I tried to start up my Linux Mint VM, it also seemed to boot fine, but when I tried to check for OS updates I get the following error:
E: Can't write /root/.synaptic/selections.update W: Not using locking for read only lock file /root/.synaptic/lock W: Not using locking for read only lock file /root/.synaptic/lock.non-interactive
After this I realized that my entire main file system that linux was installed on was mounted in read only mode. I am unable to create a new files or write to any existing files. From what I have read it seems that Linux is automatically booting into read only mode because the file system may be corrupted.
I am currently backing up the entire virtual disk image. It is almost a terabyte, so it still has several hours left, after which I am going to attempt to repair the VM.
The advice I found briefly searching the web was that I should run the
fsck command to try to repair the file system, but that I can only do this on an unmounted file system. From what I read it was recommended to boot from a USB/LiveCD and use that to run
fsck on the unmounted file system.
Is it possible for me to do this for my VirtualBox VM? If so, how? Does anyone have any other advice on how I can go about attempting to repair this system?