Làm thế nào để Hard-Drive Công cụ Chẩn đoán Biết nếu một ngành là xấu hay không?

Mục lục:

Làm thế nào để Hard-Drive Công cụ Chẩn đoán Biết nếu một ngành là xấu hay không?
Làm thế nào để Hard-Drive Công cụ Chẩn đoán Biết nếu một ngành là xấu hay không?

Video: Làm thế nào để Hard-Drive Công cụ Chẩn đoán Biết nếu một ngành là xấu hay không?

Video: Làm thế nào để Hard-Drive Công cụ Chẩn đoán Biết nếu một ngành là xấu hay không?
Video: Bài 2: Các thao tác cơ bản với tập tin | word 2016 - YouTube 2024, Có thể
Anonim
Không ai thích nghĩ về một ổ đĩa cứng sẽ tồi tệ hơn rất ít gặp rắc rối với một, nhưng làm thế nào để các công cụ chẩn đoán ổ đĩa cứng thực sự biết nếu các lĩnh vực có xấu hay không? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.
Không ai thích nghĩ về một ổ đĩa cứng sẽ tồi tệ hơn rất ít gặp rắc rối với một, nhưng làm thế nào để các công cụ chẩn đoán ổ đĩa cứng thực sự biết nếu các lĩnh vực có xấu hay không? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Ảnh lịch sự của Matthew (Flickr).

Câu hỏi

Người đọc siêu người dùng David muốn biết các công cụ chẩn đoán ổ đĩa cứng biết một lĩnh vực xấu như thế nào:

When I run across a hard-drive that may be failing, I scan it using ViVARD, which reliably lets me know if the hard-drive needs replacing or not. How do these sorts of tools work? How can they tell a bad sector from a good sector?

Làm thế nào để các công cụ chẩn đoán ổ đĩa cứng biết nếu một khu vực là xấu hay không?

Câu trả lời

Những người đóng góp của SuperUser Stavr00 và Ole Tange có câu trả lời cho chúng tôi. Đầu tiên, Stavr00:

Modern hard-drives implement a system in firmware called S.M.A.R.T. which collects statistics on the hard-drive’s performance and automatically avoids data loss by moving data away from bad sectors.

Diagnostic tools query the hard-drive’s S.M.A.R.T. software in order to build a health check report. Bad sectors are detected upon accessing the hard-drive, avoided, and necessary relocation is done by the S.M.A.R.T. system.

Tiếp theo là câu trả lời từ Ole Tange:

I am not familiar with ViVARD, so this is a general answer.

S.M.A.R.T.

S.M.A.R.T. is a part of most modern hard-drives. It registers when the hard-drive sees a bad sector and when the ‘seek or spin up time’ is longer than normal. These are all indicators that a hard-drive is failing.

The way the hard-drive salvages a failing sector is due to error correcting codes (usually Reed-Solomon) that can perform a rescue if a few bits are wrong. If many bits are wrong, then the hard-drive tries salvaging by reading the sector over and over again. When it finally gets it right, it saves it to one of the spare sectors.

Reading Sectors

The hard-drive reallocates sectors with read errors to a set of spare sectors that are reserved for this. The operating system does not usually see this, but sees the whole hard-drive as having no errors. Only when there are no more sectors to reallocate to (or the sector cannot be salvaged) will the operating system see the broken sectors.

But it is possible to bypass error correction. I believe it is different for each model, but maybe ViVARD does it? This way you can read the actual data on the hard-drive. By reading this you will be able to see which sectors have errors, even if the operating system itself sees no errors.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: