Solved the problem of freezing due to sudden "EXT4-fs error" on Ubuntu 20.04

environment

ThinkPad T14 Gen1 (AMD)

phenomenon

While using Ubuntu 20.04, I suddenly get a black screen and I see multiple EXT4-fs error .... It reoccurs even if it is restarted.

Cause

According to the reference site [1], APST, a function that allows the SSD to reduce power consumption, puts the SSD to sleep and makes the root file system read-only.

solution

Check the status of APST

sudo apt install -y nvme-cli && sudo nvme get-feature -f 0x0c -H /dev/nvme0

When APST is enabled, Autonomous Power State Transition Enable (APSTE): is Enable.

Disable APST

sudo -i gedit /etc/default/grub

Add nvme_core.default_ps_max_latency_us = 0 to GRUB_CMDLINE_LINUX_DEFAULT to make it as follows.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme_core.default_ps_max_latency_us=0"

After reflecting the settings with the following command, restart.

sudo update-grub

Confirm that the settings have been reflected

After restarting, recheck the APST status with the following command

sudo nvme get-feature -f 0x0c -H /dev/nvme0

Make sure Autonomous Power State Transition Enable (APSTE): is Disenable.

Reference site

[1] https://kledgeb.blogspot.com/2017/05/ubuntu-1704-66-ssd.html?m=1

Recommended Posts

Solved the problem of freezing due to sudden "EXT4-fs error" on Ubuntu 20.04
How to change the timezone on Ubuntu
How to find the cause of the Ruby error
Install the latest version of Jenkins on Ubuntu 16
[Ruby on Rails] How to Japaneseize the error message of Form object (ActiveModel)
[Java] The problem that uploaded images are not updated due to the influence of cache
[Ubuntu 20.04] Display the day of the week on the date / clock
Solved the problem that apt-get update could not be executed on Ubuntu (Virtual Box) on Windows.
About the function of Spring Boot due to different versions
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
I want to use screen sharing on the login screen on Ubuntu 18
How to check the database of apps deployed on Heroku
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home
I tried to solve the problem of "multi-stage selection" with Ruby
Results of trying to use NVENC (CUDA) with Ubuntu 18.04 on WSL2
[Swift] How to dynamically change the height of the toolbar on the keyboard
A story of frustration trying to create a penetration environment on Ubuntu 20.04
A solution to the problem of blank spaces at the beginning of textarea
How to display 0 on the left side of the standard input value
[Rails / Heroku / MySQL] How to reset the DB of Rails application on Heroku
How to install and configure the monitoring tool "Graphite" on Ubuntu
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
I want to control the default error message of Spring Boot
I tried to solve the problem of Google Tech Dev Guide
An error occurred in the free course of RubyOnRails Udemy, solved it, and went through to the end