[LINUX] What to do when Ubuntu crashes

Overview

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

reference

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

Recommended Posts

What to do when Ubuntu crashes
What to do after installing Linux (Ubuntu)
What to do when PermissionError of tempfile.mkstemp occurs
What to do if you get an error when installing Dlib (Ubuntu)
[Go 1.13] What to do when unexpected directory layout: appears
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
curl: (60) What to do when Issuer certificate is invalid.
What to do when gdal_merge creates a huge file
What to do when raise ValueError, "unsupported hash type"
What to do when "cannot import name xxx" [Python]
What to do when you can't bind CaboCha to Python
[Ubuntu 18.04 LTS] What to do when the screen resolution cannot be selected [NVIDIA]
[AWS] What to do when you want to pip with Lambda
What to do if yum breaks
What to do when Japanese is not displayed on matplotlib
What to do with Magics install
What to do when PyCharm font is strange or garbled
What to do when a Remove Error occurs when updating conda
What to do when Unalignable boolean Series provided as indexer
What to do with PYTHON release?
What to do when an error occurs with import _ssl
What to do if package installation fails when deploying to heroku
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
OSError: [Errno 40] What to do when Message too long appears
What to do when "Invalid HTTP_HOST header" appears in Django
ImportError: No module What to do when you are told
What to do to get tensorflow-gpu to work
[AWS] What to do when the ping command causes a "timeout"
What to do when a video cannot be read by cv2.VideoCapture
[Beanstalk] What to do when an error occurs with import uuid
What to do when the jupyterlab extension settings are not reflected
What to do if Insecure Platform Warning appears when running Python
What to do when you get "I can't see the site !!!!"
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do when the value type is ambiguous in Python?
What I referred to when studying tkinter
13 Things to Do After Installing Ubuntu 20.04 LTS
Let's summarize what you want to do.
10 Things to Do After Installing Ubuntu 18.04 LTS
[Memorandum] What to do when a warning appears after executing pip list
What to do when the result downloaded via scrapy is in English
What to do when pyinstaller: error: argument --add-binary: invalid add_data_or_binary value: appears
[Docker] What to do when error Couldn't find the binary git appears
[Python] What to do when an error related to SSL authentication is returned
What to do if an error occurs when importing numpy with VScode
What to do if you get an error when trying to load mnist
What to do if fprintd requires a password when registering your fingerprint
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
Notes on what to do when matplotlib scatter () / scatter3d () does not work
[OSX] [pyenv] What to do when an SSL error occurs in pip
What to do when psycopg2 throws an error when pipenv lock under Pipenv environment
What to do when a warning message is displayed in pip list
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
[Python] What I did to do Unit Test
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
[For beginners] What to do after installing Anaconda
What to do if rails s doesn't work
What to do if pip cannot be installed