7

In Windows, sfc /scannow will check the system files with those available in OS disk and replace faulty, missing files. Is there anything similar available for Ubuntu 16.04 ?

7

There are two things to do to replicate sfc /scannow:

  1. sudo debsums -s (sudo apt install debsums to install it) will list system files that have been changed or corrupted as well as what packages they come from. If none are listed, all system files are fine.

    Use sudo debsums -sa to check configuration files as well.

  2. sudo apt install --reinstall [package] will reinstall the package, reinstalling the file.
0

I found a guide pretty easily with google search: https://help.ubuntu.com/community/FilesystemTroubleshooting

Have you seen that guide?

5
  • I was trying to correct OS files. Not sure this guide is the one I am looking for.
    – user227495
    Dec 7 '16 at 21:39
  • You are asking for an equivalent of Windows's sfc. I think you are searching for fsck which is explained in that guide. There still might other tools.
    – TiriPon
    Dec 7 '16 at 21:43
  • I see. I could'nt quite understand what that guide says. I am not a pro with this. Thanks for the input.
    – user227495
    Dec 7 '16 at 21:48
  • From what I read so far, it simply correct partition related errors. Just like the disc check we used to get in XP. I could be wrong though.
    – user227495
    Dec 7 '16 at 21:49
  • You are right this would be the equivalent of chkdsk.
    – TiriPon
    Dec 7 '16 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.