特殊:Badtitle/NS100:TestingStorageMedia/zh:修订间差异
第61行: | 第61行: | ||
== 数据恢复 == | == 数据恢复 == | ||
[http://www.cgsecurity.org/wiki/TestDisk TestDisk]是一个专门用于数据修复的工具,点击这个链接访问它的官方网站. | |||
你也可以在Universe源中找到一些相关的资料 [http://packages.ubuntu.com/dapper/admin/testdisk]. | |||
== 深入学习 == | == 深入学习 == |
2007年5月18日 (五) 21:01的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/TestingStorageMedia }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/af | • {{#if: UbuntuHelp:TestingStorageMedia|Afrikaans| [[::TestingStorageMedia/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ar | • {{#if: UbuntuHelp:TestingStorageMedia|العربية| [[::TestingStorageMedia/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/az | • {{#if: UbuntuHelp:TestingStorageMedia|azərbaycanca| [[::TestingStorageMedia/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/bcc | • {{#if: UbuntuHelp:TestingStorageMedia|جهلسری بلوچی| [[::TestingStorageMedia/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/bg | • {{#if: UbuntuHelp:TestingStorageMedia|български| [[::TestingStorageMedia/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/br | • {{#if: UbuntuHelp:TestingStorageMedia|brezhoneg| [[::TestingStorageMedia/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ca | • {{#if: UbuntuHelp:TestingStorageMedia|català| [[::TestingStorageMedia/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/cs | • {{#if: UbuntuHelp:TestingStorageMedia|čeština| [[::TestingStorageMedia/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/de | • {{#if: UbuntuHelp:TestingStorageMedia|Deutsch| [[::TestingStorageMedia/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/el | • {{#if: UbuntuHelp:TestingStorageMedia|Ελληνικά| [[::TestingStorageMedia/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/es | • {{#if: UbuntuHelp:TestingStorageMedia|español| [[::TestingStorageMedia/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/fa | • {{#if: UbuntuHelp:TestingStorageMedia|فارسی| [[::TestingStorageMedia/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/fi | • {{#if: UbuntuHelp:TestingStorageMedia|suomi| [[::TestingStorageMedia/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/fr | • {{#if: UbuntuHelp:TestingStorageMedia|français| [[::TestingStorageMedia/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/gu | • {{#if: UbuntuHelp:TestingStorageMedia|ગુજરાતી| [[::TestingStorageMedia/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/he | • {{#if: UbuntuHelp:TestingStorageMedia|עברית| [[::TestingStorageMedia/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/hu | • {{#if: UbuntuHelp:TestingStorageMedia|magyar| [[::TestingStorageMedia/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/id | • {{#if: UbuntuHelp:TestingStorageMedia|Bahasa Indonesia| [[::TestingStorageMedia/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/it | • {{#if: UbuntuHelp:TestingStorageMedia|italiano| [[::TestingStorageMedia/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ja | • {{#if: UbuntuHelp:TestingStorageMedia|日本語| [[::TestingStorageMedia/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ko | • {{#if: UbuntuHelp:TestingStorageMedia|한국어| [[::TestingStorageMedia/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ksh | • {{#if: UbuntuHelp:TestingStorageMedia|Ripoarisch| [[::TestingStorageMedia/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/mr | • {{#if: UbuntuHelp:TestingStorageMedia|मराठी| [[::TestingStorageMedia/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ms | • {{#if: UbuntuHelp:TestingStorageMedia|Bahasa Melayu| [[::TestingStorageMedia/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/nl | • {{#if: UbuntuHelp:TestingStorageMedia|Nederlands| [[::TestingStorageMedia/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/no | • {{#if: UbuntuHelp:TestingStorageMedia|norsk| [[::TestingStorageMedia/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/oc | • {{#if: UbuntuHelp:TestingStorageMedia|occitan| [[::TestingStorageMedia/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/pl | • {{#if: UbuntuHelp:TestingStorageMedia|polski| [[::TestingStorageMedia/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/pt | • {{#if: UbuntuHelp:TestingStorageMedia|português| [[::TestingStorageMedia/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ro | • {{#if: UbuntuHelp:TestingStorageMedia|română| [[::TestingStorageMedia/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/ru | • {{#if: UbuntuHelp:TestingStorageMedia|русский| [[::TestingStorageMedia/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/si | • {{#if: UbuntuHelp:TestingStorageMedia|සිංහල| [[::TestingStorageMedia/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/sq | • {{#if: UbuntuHelp:TestingStorageMedia|shqip| [[::TestingStorageMedia/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/sr | • {{#if: UbuntuHelp:TestingStorageMedia|српски / srpski| [[::TestingStorageMedia/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/sv | • {{#if: UbuntuHelp:TestingStorageMedia|svenska| [[::TestingStorageMedia/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/th | • {{#if: UbuntuHelp:TestingStorageMedia|ไทย| [[::TestingStorageMedia/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/tr | • {{#if: UbuntuHelp:TestingStorageMedia|Türkçe| [[::TestingStorageMedia/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/vi | • {{#if: UbuntuHelp:TestingStorageMedia|Tiếng Việt| [[::TestingStorageMedia/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/yue | • {{#if: UbuntuHelp:TestingStorageMedia|粵語| [[::TestingStorageMedia/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/zh | • {{#if: UbuntuHelp:TestingStorageMedia|中文| [[::TestingStorageMedia/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/zh-hans | • {{#if: UbuntuHelp:TestingStorageMedia|中文(简体)| [[::TestingStorageMedia/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TestingStorageMedia | UbuntuHelp:TestingStorageMedia | {{#if: | :}}TestingStorageMedia/zh}}/zh-hant | • {{#if: UbuntuHelp:TestingStorageMedia|中文(繁體)| [[::TestingStorageMedia/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:TestingStorageMedia|:TestingStorageMedia/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :TestingStorageMedia/zh/zh | | {{#ifexist: TestingStorageMedia/zh/zh | | {{#ifeq: {{#titleparts:TestingStorageMedia/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:TestingStorageMedia/zh|1|-1|}} | zh | | }}
本文讲述当你怀疑自己的硬盘出现某些问题时,如果对其进行检测.
简述
当你通过计算机存储你的图片或文档文件时,它们将以某种形式记录在你的物理存储器上.比如转化为磁性信号然后存取于硬盘上,或是通过光信号存取于光盘上,或是转换为电流信息存取于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源中找到一些相关的资料 [1].
深入学习
This page is a stub, you can help the Ubuntu documentation team by expanding it.