check for bad sectors on hard disk

孤街醉人 提交于 2019-12-02 03:17:22
Randy Howard

You might be better off looking at S.M.A.R.T prefailure notifications, through an API that allows early warning of drive issues before they occur. Here is one implementation I found quickly which appears to be for your platform, but I have not tested it.

I suspect there are better ones available. The main advantage of this SMART approach is finding issues before they become important. However, many operating systems have this functionality built in, it's rare to do it at the application level in something other than a disk utility.

As your application is built on top of the OS, you have to rely on its error reporting, and pass them up. You can't assume that particular errors mean it needs a disk check.

In your case, I recommend running a full disk check and carry on as normal.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!