How to run fsck to report errors only

Hi, experts,

I want to run fsck but only report error, not change anything on a hard drive. I tried -N option, but that does not do anything at all, only says what it will check.

Thank you.
LVL 1
kerznerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
woolmilkporcConnect With a Mentor Commented:
Try

fsck -n ...

(lowercase "n").

If this is not supported by your fsck try

yes "n" | fsck -r ...
0
 
kerznerAuthor Commented:
Yes, thank you, I figured it out meanwhile (not a very popular option, I wonder why), but it is comforting to have support.... and ruin anything :)
0
All Courses

From novice to tech pro — start learning today.