Keep a record of what you did when Ubuntu crashed. Environment: Ubuntu 20.04 LTS
fsck
On Windows, you can scan and repair the file system with the command equivalent to scandisk.
It runs automatically when the system terminates abnormally, but you can force it to run the next time you start it by creating a forcefsck file in your home directory.
python
sudo touch /forcefsck
The confirmation of the result is as follows.
python
sudo cat /run/initramfs/fsck.log
If there is no problem, it will be displayed as follows.
python
/dev/nvma03x1: clean, 239896/31227904 files, 4604346/124895488 blocks
debsums
On Windows, you can check the integrity of the installed packages with the command equivalent to sfc / scannow.
python
sudo apt install debsums
You can display only the changed parts with the following command.
python
sudo debsums -s
https://www.xmisao.com/2014/02/06/force-fsck-or-reboot-fast-with-shutdown-command.html http://manpages.ubuntu.com/manpages/trusty/man1/debsums.1.html