Fsck not executing?

Howdy, folks
Trying to verify SSD condition using fsck.
Both the USB and internal drives are SSD and I have reason to check both for errors.
I boot to the Zorin Lite 17.2 media on USB.
Select "Try Zorin"
Get the desktop up and verify in the disks app that both SSDs are unmounted
I open a terminal window and no matter what -switches I use in the command line example:
sudo fsck -switches /dev/sda1
It doesn't seem to actually run any checking at all
(Maybe I'm just too used to Windows' chkdsk command)
All that happens is the command completes returning some info on the media, but nothing about any errors, or if the drive is OK or not.
All help (as always) is greatly appreciated.
Thanks, all.

Hi, I would follow this extensive guide:

I also found interesting comment at end of this post:

Additionally:

see also:

and my Tutorial for when things are bad:

I've honestly not used fsck all that much to remember if it's supposed to show any output while it's doing its work, but usually Linux commands only print output to the terminal when there's an error. Quiet usually means good.

You can also type this cryptic command right after it's done: $?

This will print the exit status code of the previous command. A 0 means all good, and anything else will mean an error. From the fsck manual page:

The exit status returned by fsck is the sum of the following conditions:

0 No errors
1 Filesystem errors corrected
2 System should be rebooted
4 Filesystem errors left uncorrected
8 Operational error
16 Usage or syntax error
32 Checking canceled by user request
128 Shared-library error

When you say -switches did you actually typed it like that? Because that's not going to do what you think it might. When you write it like that, each of the letters means activates one flag if it's applicable to this program. As per the manual page that I linked above you can see that only -s and -t apply to this command... so watch out for that.

No, "-switches" was in my example as a placeholder. I tried a couple of combinations, none of which made a difference. Thanks, though. That was a good catch.

1 Like