Bug 206061 - Poor NVME SSD support, EXT4 re-mounted
Summary: Poor NVME SSD support, EXT4 re-mounted
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: ext4 (show other bugs)
Hardware: All Linux
: P1 low
Assignee: fs_ext4@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-02 13:49 UTC by Anatolii Cherednicneko
Modified: 2020-01-02 15:16 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.18, 5.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Anatolii Cherednicneko 2020-01-02 13:49:23 UTC
Good time of day. After every time I turned on my computer on Xubuntu 18.04, I saw that my disk's file system was being checked. In dmesg, I saw the following: 
[    1.422390] EXT4-fs (nvme0n1p3): mounted filesystem with ordered data mode. Opts: (null)
[    3.522543] EXT4-fs (nvme0n1p3): re-mounted. Opts: (null)

. On the Internet, I found out that this is an old SSD NVME problem that can't be fixed for 2 years. Why are you not going to support new hardware and the kernel displays such messages after each run? This problem affects many users.
Comment 1 Theodore Tso 2020-01-02 15:16:25 UTC
These kernel messages (modulo the timestamps) are normal.   The root file system is mounted read-only, and after the file system is checked, the file system is mounted read-write.

What is not supposed to be happening is the file system getting checked after every boot.   I would need to look at the fsck logs to be sure, but the most likely cause is that your motherboard's real time clock is not correctly set, or the battery for the real time clock is dead.

Normally, when the kernel is booted, it sets the system clock from the motherboard's real-time clock, and then the file system is mounted, it is checked, and then it is remounted read-write.   After that, the network is set up, and the time gets set from an internet time server.  The motherboard's real time clock should be set after the time is set from the internet time server (to correct it from clock drift), and most init scripts will also set the hardware clock from the system clock at shutdown.  And then the real-time clock will be maintained even while the power is off using the battery on the motherboard.  (It's normally a watch battery, such as a CR2032.)

To work around something going wrong with the above, please try adding to /etc/e2fsck.conf --- or creating /etc/e2fsck.conf if it does not exist --- the following lines

[options]
    broken_system_clock = true

More information about this can be found in the e2fsck.conf man page.

Note You need to log in before you can comment on or make changes to this bug.