特殊:Badtitle/NS100:TestingStorageMedia/zh
文章出处: |
{{#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盘.无论是哪种方式,都可以把它比拟为是往某个文件柜中存放文档.
任何事物都不是完美的,你有可能会碰到两个问题:你的文件丢失-你的文件变得无比混乱,甚至根本无法正常读取,或者是你的存储介质发出故障-比如硬盘坏道,光盘腐蚀.
当然,当遇到这些情况的时候,有些工具是可以帮助进行错误检测和修复的,本文就是向你介绍这些工具,以便在你发生上述不幸时给予一些帮助.切记,要经常在一个独立的设备上备份你的最新文件.
检测文件系统
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.
The tools used to check your data depend on your filesystem, please refer to the approriate section.
ext2 and ext3
In a terminal run :
man e2fsck
to consult the documentation related to testing there partitions.
FAT32和FAT16的检测
To check and repair MS-DOS type filesystem, we will use the dosfsck tool. In a terminal, type the fooling to know the name of the partition you want to check :
sudo fdisk -l
No we will run the check with the following command (assuming your partition is /dev/hda1) :
dosfsck -a -v /dev/sda1
- The a option is use to automatically repair the file system.
- The v option is use to get some more information about the check.
You may have a look at :
man dosfsck
to get some information about the others options available.
NTFS的检测
Their is no equivalent yet to chkdsk/scandisk for NTFS in linux.
The linux-ntfs team project to make one.
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 :
man badblocks
to consult the documentation related to testing disks.
数据恢复
TestDisk is a tool for recovering lost data, click on the previous link to visit their website.
You may also find this in the Universe repository here.
深入学习
This page is a stub, you can help the Ubuntu documentation team by expanding it.