Thursday, May 2, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 31481  / 3 Years ago, sat, october 2, 2021, 8:07:19

My kern.log file advises me to run e2fsck.



Aug 30 14:10:11 ubuntu kernel: [  122.378292] EXT4-fs (sda11): warning: maximal mount count reached, running e2fsck is recommended
Aug 30 14:10:11 ubuntu kernel: [ 122.387488] EXT4-fs (sda11): mounted filesystem with ordered data mode. Opts: (null)


/dev/sda11 is not mounted in my current OS (Ubuntu 10.04)



I have read that e2fsck is a dangerous command to run on the root partition which is on the same hard disk as sda11. I would trust in this solution better than others Can I run fsck or e2fsck when Linux file system is mounted?


More From » partitioning

 Answers
7

Unless you have done something unusual with your system configuration, Ubuntu will automatically run the appropriate fsck (FileSystem ChecK) command when you next reboot.



The generic 'fsck' command will attempt to detect the filesystem type, or it will accept parameters specifying the type. 'e2fsck' is essentially a shortcut saying it's an ext2 filesystem. They all behave the same way and check the filesystem for errors.



You're correct that they can be dangerous - never run fsck on any mounted filesystem (root partition or otherwise), as it can lead to data loss. Reboot and it will be done safely without you needing to run any commands manually.



Update: The message you saw does not mean there is damage, it is just logging the preventative maintenance that will be done automatically.


[#35848] Sunday, October 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
beateyra

Total Points: 499
Total Questions: 113
Total Answers: 125

Location: Falkland Islands
Member since Mon, Jul 13, 2020
4 Years ago
;