1

Is it normal, that fsck on an SSD takes a second or two? I am on Linux Mint 17.3 and I called

sudo touch /forcefsck

EDIT: ext4 filesystem

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309

2 Answers2

0

There are two kinds of fsck, "normal"

sudo fsck /dev/sdx

and "full"

sudo fsck -f /dev/sdx

Your computer runs a normal fsck at every boot, which is really fast. fsck -f obviously takes longer, but in newer filesystems (ext4) it's still quite fast. With SSD might as well double that, and your fsck -f shouldn't take long at all.

Warning: Never run those codes on a mounted disk. It can cause severe filesystem corruption.

nebulon
  • 107
  • 6
  • 1
    Not really, ext4 only has one type of fsck. It just tracks internally if it is needed—without `-f`, it only does an fsck if it thinks one is needed. With `-f`, it does one regardless. Refer to `man e2fsck`. – derobert Apr 07 '16 at 16:10
  • I've found fsck -f -t takes longer than fsck -t consistently, but I guess that's just anecdotal – nebulon Apr 07 '16 at 19:55
  • that's probably because without -f it didn't actually run an fsck. Not entirely sure of the behavior of -t as I've never run fsck time trials... You can use tune2fs to set the fsck needed flag, BTW. – derobert Apr 07 '16 at 19:58
  • freaking ubuntu forums misled me. http://ubuntuforums.org/showthread.php?t=1680978 I wanted to edit the "f-ck" to fsck but apparently my time for that ran out. well I suppose that's good for everyone since that joke is old and tired. – nebulon Apr 07 '16 at 20:06
  • I can't believe 2 things: a) on kubuntu 16, `man fsck` DOES NOT have the `-f` option. Is it a hidden one??, WTF, how idiotic. Assume you have a half trusted device and you want to check it when you want, why can't linux allow you to do it. 2) Why this GREAT answer had -2 points is beyond me! – Angelos Pikoulas Oct 12 '18 at 22:47
0

Actual answer is, that the command on Linux Mint does not work as proven in this answer, section:

These two options did NOT work: Adding the /forcefsck empty file with


Please refer to the mentioned answer for more information, for instance as to how to actually force a file system check.

Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309