个人工具

“UbuntuHelp:TestingStorageMedia/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/TestingStorageMedia}} {{Languages|UbuntuHelp:TestingStorageMedia}} 本文讲述当你怀疑自己的硬盘出现某些问题时,如果对其进行...)
 
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
 +
{{Copyedit translation|from=https://help.ubuntu.com/community/TestingStorageMedia}}
 
{{From|https://help.ubuntu.com/community/TestingStorageMedia}}
 
{{From|https://help.ubuntu.com/community/TestingStorageMedia}}
 +
{{Translator|雕啸长空 Fideas}}
 
{{Languages|UbuntuHelp:TestingStorageMedia}}
 
{{Languages|UbuntuHelp:TestingStorageMedia}}
本文讲述当你怀疑自己的硬盘出现某些问题时,如果对其进行检测.
+
本文讲述当你怀疑自己的硬盘出现某些问题时,如何对其进行检测.
  
 
== 简述 ==
 
== 简述 ==
 +
当你通过计算机存储你的图片或文档文件时,它们将以某种形式记录在你的物理存储器上.比如转化为磁性信号然后存取于硬盘上,或是通过光信号存取于光盘上,或是转换为电流信息存取于U盘.无论是哪种方式,都可以把它比拟为是往某个文件柜中存放文档.
  
When you store your files, be they pictures or text, they reside on a physical media. They can be magnetically coded on the surface of a hard disk, etched and optically read from a CD, or electrically stored on a USB flash drive. Using these methods, your files are organised in a way analogous to placing files in a filing cabinet.  
+
任何事物都不是完美的,你有可能会碰到两个问题:你的文件丢失-你的文件变得无比混乱,甚至根本无法正常读取,或者是你的存储介质发出故障-比如硬盘坏道,光盘腐蚀.
  
Nothing being perfect, there are two problems that may occur : your files may become lost - a corrupt index meaning that all the pieces of the files are so muddled up they no longer make any sense - or the storage media may develop defects - bad blocks on hard disks or scratched CDs.
+
当然,当遇到这些情况的时候,有些工具是可以帮助进行错误检测和修复的,本文就是向你介绍这些工具,以便在你发生上述不幸时给予一些帮助.切记,要经常在一个独立的设备上备份你的最新文件.
 
+
Of course, in case this should happen, tools exist to detect and repair errors. We will present these tools to you now, in the unlucky event you will need them. Remember, always backup your files on at least a separate media.
+
  
 
== 检测文件系统 ==
 
== 检测文件系统 ==
 +
在某些情况下,你的硬盘上存储的数据有可能出现错误,比如突然断电,系统崩溃或是不正常的拔除存储设备.当这些情况发生时,文件有可能出现丢失的情况,这个时候就有必要对文件的正确性进行检测了.
  
On occasion, errors may occur in the data stored on a disk. This may be due for example to power failures, system crashes or impetuous removal of media. When this happens, files may become lost or corrupt - you will need to check your data for validity.
+
不同的文件系统对应着不同的检测工具,请必务保证工具和系统的匹配.
 
+
=== ext2和ext3的检测 ===
The tools used to check your data depend on your filesystem, please refer to the approriate section.
+
在终端中运行下面的指令:
 
+
=== ext2 and ext3 ===
+
 
+
In a terminal run :
+
  
 
<pre><nowiki>
 
<pre><nowiki>
 
man e2fsck
 
man e2fsck
 
</nowiki></pre>
 
</nowiki></pre>
 
+
来检测该类分区中的文档
to consult the documentation related to testing there partitions.
+
  
 
=== FAT32和FAT16的检测 ===
 
=== FAT32和FAT16的检测 ===
  
To check and repair MS-DOS type filesystem, we will use the dosfsck tool.
+
要对MS-DOS文件系统分区进行检测,我们需要用到'''dosfsck'''这个工具.
In a terminal, type the fooling to know the name of the partition you want to check :
+
 
 +
打开终端,执行下面的指令以得到你想检测的分区对应的名称:
  
 
<pre><nowiki>
 
<pre><nowiki>
第36行: 第34行:
 
</nowiki></pre>
 
</nowiki></pre>
  
No we will run the check with the following command (assuming your partition is /dev/hda1) :
+
然后通过下面的指令对该分区进行检测(假设该分区为'''/dev/hda1''')
 
+
 
<pre><nowiki>
 
<pre><nowiki>
 
dosfsck -a -v /dev/sda1
 
dosfsck -a -v /dev/sda1
 
</nowiki></pre>
 
</nowiki></pre>
  
* The a option is use to automatically repair the file system.
+
* 选项'''"a"'''让系统自动对文件系统进行修复.
* The v option is use to get some more information about the check.
+
* 选项'''"v"'''用于获取更多关于检测的信息.
  
You may have a look at :
+
你最好阅读一下相关的说明文档:
 
<pre><nowiki>
 
<pre><nowiki>
 
man dosfsck
 
man dosfsck
 
</nowiki></pre>
 
</nowiki></pre>
to get some information about the others options available.
+
以便于获取更多的参数及对应的说明.
 
+
 
=== NTFS的检测 ===
 
=== NTFS的检测 ===
 +
在Linux系统中并没有提供类似chkdsk/scandisk这类对NTFS文件系统进行检查的工具
  
Their is no equivalent yet to chkdsk/scandisk for NTFS in linux.
+
不过linux-ntfs小组为之开发了一个工具.
 +
你可以浏览 http://wiki.linux-ntfs.org/doku.php?id=ntfsck 获得该工具的最新信息.
  
The linux-ntfs team project to make one.
+
换言之,你最好使用windows所提供的检测工具来对NTFS分区进行检测
 
+
Check http://wiki.linux-ntfs.org/doku.php?id=ntfsck for the current status of the project.
+
 
+
In the meanwhile, you'll have to use windows to check your NTFS partition.
+
 
+
== Checking for Physical defects ==
+
 
+
In a terminal run :
+
  
 +
== 物理错误的检修 ==
 +
打开终端,执行下面的指令
 
<pre><nowiki>
 
<pre><nowiki>
 
man badblocks
 
man badblocks
 
</nowiki></pre>
 
</nowiki></pre>
 
+
阅读关于硬盘物理检测的相关资料.
to consult the documentation related to testing disks.
+
  
 
== 数据恢复 ==
 
== 数据恢复 ==
 +
[http://www.cgsecurity.org/wiki/TestDisk TestDisk]是一个专门用于数据修复的工具,点击这个链接访问它的官方网站.
  
[http://www.cgsecurity.org/wiki/TestDisk TestDisk] is a tool for recovering lost data, click on the previous link to visit their website.
+
你也可以在Universe源中找到一些相关的资料 [http://packages.ubuntu.com/dapper/admin/testdisk 点击这里].
 
+
You may also find this in the Universe repository [http://packages.ubuntu.com/dapper/admin/testdisk here].
+
  
 
== 深入学习 ==
 
== 深入学习 ==

2007年5月18日 (五) 21:04的最新版本

本文讲述当你怀疑自己的硬盘出现某些问题时,如何对其进行检测.

简述

当你通过计算机存储你的图片或文档文件时,它们将以某种形式记录在你的物理存储器上.比如转化为磁性信号然后存取于硬盘上,或是通过光信号存取于光盘上,或是转换为电流信息存取于U盘.无论是哪种方式,都可以把它比拟为是往某个文件柜中存放文档.

任何事物都不是完美的,你有可能会碰到两个问题:你的文件丢失-你的文件变得无比混乱,甚至根本无法正常读取,或者是你的存储介质发出故障-比如硬盘坏道,光盘腐蚀.

当然,当遇到这些情况的时候,有些工具是可以帮助进行错误检测和修复的,本文就是向你介绍这些工具,以便在你发生上述不幸时给予一些帮助.切记,要经常在一个独立的设备上备份你的最新文件.

检测文件系统

在某些情况下,你的硬盘上存储的数据有可能出现错误,比如突然断电,系统崩溃或是不正常的拔除存储设备.当这些情况发生时,文件有可能出现丢失的情况,这个时候就有必要对文件的正确性进行检测了.

不同的文件系统对应着不同的检测工具,请必务保证工具和系统的匹配.

ext2和ext3的检测

在终端中运行下面的指令:

man e2fsck

来检测该类分区中的文档

FAT32和FAT16的检测

要对MS-DOS文件系统分区进行检测,我们需要用到dosfsck这个工具.

打开终端,执行下面的指令以得到你想检测的分区对应的名称:

sudo fdisk -l

然后通过下面的指令对该分区进行检测(假设该分区为/dev/hda1)

dosfsck -a -v /dev/sda1
  • 选项"a"让系统自动对文件系统进行修复.
  • 选项"v"用于获取更多关于检测的信息.

你最好阅读一下相关的说明文档:

man dosfsck

以便于获取更多的参数及对应的说明.

NTFS的检测

在Linux系统中并没有提供类似chkdsk/scandisk这类对NTFS文件系统进行检查的工具

不过linux-ntfs小组为之开发了一个工具. 你可以浏览 http://wiki.linux-ntfs.org/doku.php?id=ntfsck 获得该工具的最新信息.

换言之,你最好使用windows所提供的检测工具来对NTFS分区进行检测

物理错误的检修

打开终端,执行下面的指令

man badblocks

阅读关于硬盘物理检测的相关资料.

数据恢复

TestDisk是一个专门用于数据修复的工具,点击这个链接访问它的官方网站.

你也可以在Universe源中找到一些相关的资料 点击这里.

深入学习


This page is a stub, you can help the Ubuntu documentation team by expanding it.