From 1460e54d548dd95bdb4a84a5f5acf2cbacf086b2 Mon Sep 17 00:00:00 2001 From: carolinewuyan <309866211@qq.com> Date: Thu, 21 Aug 2014 11:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=A0=A1=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...d drive for bad sectors or bad blocks in linux.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/translated/tech/20140808 Check Hard drive for bad sectors or bad blocks in linux.md b/translated/tech/20140808 Check Hard drive for bad sectors or bad blocks in linux.md index d4dcbb7d5a..31c51c2938 100644 --- a/translated/tech/20140808 Check Hard drive for bad sectors or bad blocks in linux.md +++ b/translated/tech/20140808 Check Hard drive for bad sectors or bad blocks in linux.md @@ -1,10 +1,10 @@ -检查linux中的损坏的扇区和区块 +检查linux中硬盘损坏的扇区和区块 ================================================================================ **badblocks**是linux及其类似的操作系统中,扫描检查硬盘和外部设备损坏扇区的命令工具。损坏的扇区或者损坏的区块是硬盘中因为永久损坏或者是操作系统不能读取的空间。 -Badblocks命令可以探测硬盘中所有损坏的扇区或者区块并将结果保存在一个文本文档中,这样,我们就可以使用**e2fsck**命令来配置操作系统不在这些损坏的扇区中存储。 +Badblocks命令可以探测硬盘中所有损坏的扇区或者区块并将结果保存在一个文本文档中,这样,我们就可以使用**e2fsck**命令来配置操作系统不在这些损坏的扇区中存储数据。 -### 步骤:1 使用fdisk识别硬盘信息 ### +### 步骤:1 使用fdisk命令识别硬盘信息 ### # sudo fdisk -l @@ -12,13 +12,13 @@ Badblocks命令可以探测硬盘中所有损坏的扇区或者区块并将结 # sudo badblocks -v /dev/sdb > /tmp/bad-blocks.txt -只需将“/dev/sdb”替换为自己机器的/分区。执行完成上述命令后,一个名为“bad-blocks”文本文档将会在/tmp下创建,它将包含所有的损坏区块。 +只需将“/dev/sdb”替换为自己机器的硬盘/分区。执行完成上述命令后,一个名为“bad-blocks”文本文档将会在/tmp下创建,它将包含所有的损坏区块。 例如: ![](http://www.linuxtechi.com/wp-content/uploads/2014/08/badblocks.png) -### 步骤:3 告诉操作系统不要使用损坏区块存储 ### +### 步骤:3 提示 操作系统不要使用损坏区块存储 ### 扫描完成后,如果损坏区块被发现了,然后通过e2fsck命令使用“bad-blocks.txt”,强迫操作系统不使用这些损坏的区块存储数据。 @@ -37,7 +37,7 @@ via: http://www.linuxtechi.com/check-hard-drive-for-bad-sector-linux/ 作者:[Pradeep Kumar][a] 译者:[Vic___](http://www.vicyu.net) -校对:[校对者ID](https://github.com/校对者ID) +校对:[Caroline](https://github.com/carolinewuyan) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出