puf*_*ffy 12 windows-7 hard-drive bad-sectors
如果我知道硬盘有坏扇区,我如何“标记”它们以便 Windows 7 在我复制文件和内容时不会写入它们?
这是由操作系统和 NTFS 自动完成的。现在要检查这一点,只需运行 CHKDSK。任何坏扇区都被标记并且不被使用。CHKDSK /R 将尝试恢复坏扇区。
到达那里的方法之一(几种!):打开 Windows 资源管理器;右键单击驱动器并从上下文菜单中选择属性;选择工具选项卡;选择立即检查。这将在下次重新启动时运行,因为它无法更改正在使用的文件。
注意:您必须以管理员帐户登录才能在此级别检查您的磁盘。您还可能会收到 UAC 提示。
如果要直接运行 CHKDSK:
comma搜索框; Command Prompt从列表中选择以打开命令提示符窗口(或右键单击它;从上下文菜单中选择以管理员身份运行;等等) CHKDSK /?以获取选项列表(大小写无关紧要)。CHKDSK C: /F /R以检查您的 C: 驱动器是否有错误并自动修复它们。我假设您指的是具有 NTFS 格式的标准旋转硬盘(尽管 FAT 对于这个答案并没有真正的不同)。固态硬盘在内部处理这个问题。
50 GB、500 GB 或 2 TB 磁盘上的一些坏扇区(通常大小为 4k,但如果针对存储大文件进行优化,则甚至为 64k)不值得担心(如果驱动器只有几 GB,也许是是时候更换了)。
我想如果你真的想摆弄,你可以围绕包含坏扇区的坏道进行分区(这样读/写磁头不会直接通过它们)但如果你的时间价值超过 1 美元/天或你这么担心,考虑买一个新磁盘。我想我已经看到了一些半自动化的软件,但是我很难想出一个我想要这样做的场景。(不过我期待在评论中看到好故事!)
从命令提示符
chkdsk /?
CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B]
volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
filename FAT/FAT32 only: Specifies the files to check for fragmentation.
/F Fixes errors on the disk.
/V On FAT/FAT32: Displays the full path and name of every file
on the disk.
On NTFS: Displays cleanup messages if any.
/R Locates bad sectors and recovers readable information
(implies /F).
/L:size NTFS only: Changes the log file size to the specified number
of kilobytes. If size is not specified, displays current
size.
/X Forces the volume to dismount first if necessary.
All opened handles to the volume would then be invalid
(implies /F).
/I NTFS only: Performs a less vigorous check of index entries.
/C NTFS only: Skips checking of cycles within the folder
structure.
/B NTFS only: Re-evaluates bad clusters on the volume
(implies /R)
The /I or /C switch reduces the amount of time required to run Chkdsk by
skipping certain checks of the volume.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
164312 次 |
| 最近记录: |