从软盘硬盘驱动器中提取扇区

No one likes to think about a hard-drive going bad much less experiencing trouble with one, but how do hard-drive diagnostic tools actually know if sectors are bad or not? Today’s SuperUser Q&A post has the answers to a curious reader’s questions.

没有人喜欢想到硬盘坏了,而很少遇到麻烦,但是硬盘诊断工具实际上如何知道扇区是否坏呢? 今天的“超级用户问答”帖子回答了好奇的读者的问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Photo courtesy of Matthew (Flickr).

照片由Matthew(Flickr)提供 。

问题 (The Question)

SuperUser reader David wants to know how hard-drive diagnostic tools know if a sector is bad:

超级用户读者David想知道硬盘诊断工具如何知道一个扇区是否坏:

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?

当我在可能发生故障的硬盘驱动器上运行时,我使用ViVARD对其进行了扫描,它可以可靠地让我知道该硬盘驱动器是否需要更换。 这些工具如何工作? 他们如何分辨一个好的部门和一个坏的部门?

How do hard-drive diagnostic tools know if a sector is bad or not?

硬盘诊断工具如何知道某个扇区是否损坏?

答案 (The Answer)

SuperUser contributors Stavr00 and Ole Tange have the answer for us. First up, Stavr00:

超级用户贡献者Stavr00和Ole Tange为我们找到了答案。 首先,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.

现代硬盘驱动器在名为SMART的固件中实现了一个系统,该系统收集有关硬盘驱动器性能的统计信息,并通过将数据移出不良扇区来自动避免数据丢失。

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.

诊断工具查询硬盘驱动器的SMART软件,以生成运行状况检查报告。 在访问硬盘驱动器时会检测到坏扇区,这可以避免,并且SMART系统可以完成必要的重定位。

Followed by the answer from Ole Tange:

随后是Ole Tange的回答:

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

我不熟悉ViVARD,所以这是一个一般性的答案。

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.

SMART是大多数现代硬盘驱动器的一部分。 当硬盘驱动器看到坏扇区并且“搜索或加速时间”长于正常时间时,它将注册。 这些都是硬盘驱动器发生故障的指示灯。

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.

硬盘挽救故障扇区的方式是由于纠错码(通常是Reed-Solomon)引起的,如果有几处错误,它们可以执行救援。 如果很多位错误,则硬盘驱动器尝试通过一次又一次地读取扇区来进行补救。 最终使其正确时,将其保存到备用扇区之一。

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.

但是可以绕过纠错。 我相信每种型号都不同,但是也许ViVARD可以吗? 这样,您可以读取硬盘驱动器上的实际数据。 通过阅读此内容,即使操作系统本身未发现任何错误,您也可以查看哪些扇区有错误。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek.com/230492/how-do-hard-drive-diagnostic-tools-know-if-a-sector-is-bad-or-not/

从软盘硬盘驱动器中提取扇区

从软盘硬盘驱动器中提取扇区_硬盘驱动器诊断工具如何知道某个扇区是否损坏?...相关推荐

  1. python如何从文本中提取数据_如何从文本文件中提取数据?

    所以我有一组文件,我需要从中提取数据并写入一个新的txt文件,我不知道如何使用Python来实现这一点.下面是一个样本数据.我试图从NSF的组织,文件和摘要中提取部分.在 标题:CRB:神秘鲸濒危种群 ...

  2. excel中提取月份_在Excel中自动添加月份表

    excel中提取月份 Set up a Master sheet in your workbook, and add month sheets automatically, based on that ...

  3. python在txt文件中提取段落_如何使用python从.txt文件中提取段落?

    我需要从一个.txt文件中提取段落,其中每个段落都以字母摘要开头,如下所示.在 文摘:大规模多输入多输出天线系统.毫米波通信和超密集网络被广泛认为是 促进5G开发和部署的三大关键因素 系统.我们提出了 ...

  4. python从视频中提取音频_提取视频中的音频——python三行程序搞定!

    原标题:提取视频中的音频--python三行程序搞定! 写在开头 身处数据爆炸增长的时代,各种各样的数据都飞速增长,视频数据也不例外.我们可以使用 python 来提取视频中的音频,而这仅仅需要安装一 ...

  5. python从视频中提取音频信号_三行Python代码提取视频中的音频

    作者:小舟逝江海 http://suo.im/5yOtbx 写在开头 身处数据爆炸增长的时代,各种各样的数据都飞速增长,视频数据也不例外.我们可以使用 python 来提取视频中的音频,而这仅仅需要安 ...

  6. python从html中提取文本_使用Python从HTML中提取可读文本?

    我知道像html2text,BeautifulSoup等的utils,但问题是他们也提取javascript并将其添加到文本中,因此很难将它们分开. htmlDom = BeautifulSoup(w ...

  7. c与指针 从一个字符串中提取子串_利用双指针解LeetCode第1297题:子串的最大出现次数

    题目描述(难度中等) 给你一个字符串 s ,请你返回满足以下条件且出现次数最大的任意子串的出现次数: 子串中不同字母的数目必须小于等于 maxLetters . 子串的长度必须大于等于 minSize ...

  8. java从学号中提取班级_如何实现表间查询并提取班级号

    今天下午在整理学生模块成绩时,突然发现学生的模块成绩表中的班级是教学班,而发展报告是要求按行政班进行填写的.就有个问题了:如何按学籍号(因为发展报告只需要用学籍的学生填写),而现在就要把模块成绩表中的 ...

  9. python从视频中提取音频信号_通过python从音频文件中提取音频

    我认为你的问题有三个不同的部分: >如何将音频文件加载到python中? >如何计算python中的频谱? >如何处理频谱? 1.如何在python中加载音频文件? 使用scipy可 ...

最新文章

  1. java new newinstance_Java中newInstance()和new()区别
  2. 外企工作必备英语日积月累 -2020年10月26日,星期一
  3. go编译库给c语言函数返回值,go语言 函数return值的几种情况
  4. Cocos2dx---之粒子系统
  5. C++文本处理造轮子
  6. gogs 把用户加入项目
  7. 三维空间长度温度数量_PET注塑成型温度过低会怎么样?
  8. SpringBoot整合WebService实例
  9. 【毕业设计/课程设计】基于Flutter的聊天社交应用
  10. c语言求布尔矩阵的乘积,离散数学 关系矩阵的布尔乘法的简便方法
  11. 4个好用的WebShell网站后门查杀工具 在线木马查杀
  12. word文件打开之后不能编辑是怎么回事
  13. linux桌面文件夹路径是什么,【已解决】Ubuntu中右键(桌面和文件夹)打开终端(定位到当前路径)...
  14. 蓝桥杯--历届真题 最优包含【第十届】【决赛】【B组】
  15. UG NX 12 鼠标操作
  16. [野狐行][2016/04/11][群直播系列2][那些年让我们郁闷不已的游戏保护]
  17. 防止小孩长时间沉迷电脑游戏-卓越电脑定时关机软件
  18. 记录QT学习:QT框架(第一天)
  19. 网络协议:TCP三次握手与四次挥手
  20. JSP+MySQL1703药店药品销售管理系统

热门文章

  1. 【三层架构】——COM/DCOM初识
  2. Mac OS X 使用gdb
  3. 机器视觉LED光源 选择
  4. 普适各类IoT场景,润和HH-SLNPT100开发板通过OpenHarmony兼容性
  5. 阿里云和腾讯云,最终谁会成为中国的AWS?
  6. 微软宣布开放其文档格式
  7. 创建学生选课成绩的数据库的语句
  8. 重音符accent 符号在mysql中的作用
  9. bootstrap之FONTAWESOME 图标
  10. 迁移度盘资源到Adrive(docker)