[Topic DIscussion] 怎么检测机械硬盘坏道
Tofloor
poster avatar
xiaoliu6
deepin
2023-05-09 14:11
Author

检测磁盘坏道是这样的吗?电脑挂了以一晚上一直这样没有动
image.png

Reply Favorite View the author
All Replies
jjcui8595
deepin
2023-05-09 14:46
#1

看看生成的文本文件

Reply View the author
Amber
deepin
2023-05-09 15:05
#2

搞个pe盘,diskgenuis

Reply View the author
xiaoliu6
deepin
2023-05-09 15:11
#3
Amber

搞个pe盘,diskgenuis

我有pe,但是那个是win版的 制作pe也要win系统,所以我想直接用Linux上的工具

Reply View the author
xiaoliu6
deepin
2023-05-09 15:13
#4
jjcui8595

看看生成的文本文件

是空白的,

Reply View the author
阿尼樱奈奈
deepin
2023-05-09 15:45
#5

你这个是机械盘对吧?检测速度可能比较慢,时间也较长。

Reply View the author
xiaoliu6
deepin
2023-05-09 16:31
#6
阿尼樱奈奈

你这个是机械盘对吧?检测速度可能比较慢,时间也较长。

嗯 机械移动硬盘

Reply View the author
xiaoliu6
deepin
2023-05-09 16:32
#7
阿尼樱奈奈

你这个是机械盘对吧?检测速度可能比较慢,时间也较长。

主要是没有显示状态 不知道有没有检测,看到硬盘的指示灯一直在闪,应该是在检测把

Reply View the author
绍贝格尔
deepin
2023-05-09 16:55
#8
xiaoliu6

我有pe,但是那个是win版的 制作pe也要win系统,所以我想直接用Linux上的工具

不需要win ventoy 制作的u盘 微pe ISO丢进去就行

Reply View the author
阿尼樱奈奈
deepin
2023-05-09 17:01
#9
绍贝格尔

不需要win ventoy 制作的u盘 微pe ISO丢进去就行

但是那个微PE的程序需要Windows运行

Reply View the author
绍贝格尔
deepin
2023-05-09 17:31
#10
阿尼樱奈奈

但是那个微PE的程序需要Windows运行

微pe 有iso的镜像文件,可以直接丢到ventoy做的启动盘里面直接用, 好像现在没直接提供,需要自己转

image.png

Reply View the author
xiaoliu6
deepin
2023-05-09 17:38
#11
绍贝格尔

不需要win ventoy 制作的u盘 微pe ISO丢进去就行

也是,我怎么没想到 tail

Reply View the author
xiaoliu6
deepin
2023-05-09 17:39
#12
xiaoliu6

也是,我怎么没想到 tail

哈哈

Reply View the author
Amber
deepin
2023-05-09 20:39
#13
阿尼樱奈奈

但是那个微PE的程序需要Windows运行

wine可以

Reply View the author
阿尼樱奈奈
deepin
2023-05-09 20:45
#14
Amber

wine可以

我怎么没发现还有这个?!

用Wine运行器试了一下,还真可以耶!
截图_wepe64_v2.2.exe_20230509124303.png
截图_选择区域_20230509124425.png

Reply View the author
xiaoliu6
deepin
2023-05-09 20:46
#15
阿尼樱奈奈

我怎么没发现还有这个?!

用Wine运行器试了一下,还真可以耶!
截图_wepe64_v2.2.exe_20230509124303.png
截图_选择区域_20230509124425.png

嗯 我刚刚弄好了

Reply View the author
xiaoliu6
deepin
2023-05-09 21:28
#16
xiaoliu6

嗯 我刚刚弄好了

感觉wine运行小型软件还可以,但是运行大型的就要配置运行环境和驱动

Reply View the author
孤岛悬城
deepin
2023-05-10 18:30
#17

修改时间:2023年05月10日11:09:34

测试环境:deepin v20.9

使用声明:本文档为整理内容,不保证完全正确,欢迎指正。

参考链接:

https://blog.csdn.net/carefree2005/article/details/120718994

http://www.360doc.com/content/23/0115/15/30796658_1063775115.shtml

https://www.lmlphp.com/user/59987/article/item/2616507/


SMART检测

安装

  • deepin好像默认已经安装了
sudo apt install smartmontools

简单演示

  • 查看硬盘是否支持SMART
sudo smartctl -i /dev/sda
  • 查看SMART健康状态
sudo smartctl -H /dev/sda
  • 查看SMART所有状态信息
sudo smartctl -a /dev/sda

...

SMART support is: Enabled //表示硬盘支持SMART

SMART overall-health self-assessment test result: PASSED //健康状态达标(注意,达标不代表没有坏道!)

badblocks坏道检测

安装

  • deepin好像默认已经装了
sudo apt install e2fsprogs

简单演示

  • 检测/dev/sda1分区坏道,并输出扫描进度和详细情况到屏幕。
sudo badblocks -sv /dev/sda1
  • 对已挂载的/dev/sda磁盘的1024至65536区块进行写检测,并将坏道记录到名为badblocks.log的文件。
sudo badblocks -svwf /dev/sda 65536 1024 -o badblocks.log

-s //显示进度

-v //显示执行详细情况

-w //以写去检测

-b //指定区块大小,默认4096

-c //每个区块检测次数,默认16次

-f //强制在挂载设备上运行读写或非破坏性的写测试

-o //输出结果到文件

-i //跳过文件里的坏道

[device] //硬盘设备,例如sda、sda1

[last-block] //指定要检测的区块总数(即结束位置)

[start-block] //指定从哪个区块开始检测(即即开始位置)

注意:不能直接以写方式检测已经挂载的硬盘,可以加-f选项。

hdparm硬盘测试

安装

sudo apt install hdparm

简单演示

  • 测试硬盘读取速度
sudo hdparm -Tt /dev/sda
  • 详细内容可参考帮助信息
hdparm -h
Reply View the author
xiaoliu6
deepin
2023-05-10 19:34
#18
孤岛悬城

修改时间:2023年05月10日11:09:34

测试环境:deepin v20.9

使用声明:本文档为整理内容,不保证完全正确,欢迎指正。

参考链接:

https://blog.csdn.net/carefree2005/article/details/120718994

http://www.360doc.com/content/23/0115/15/30796658_1063775115.shtml

https://www.lmlphp.com/user/59987/article/item/2616507/


SMART检测

安装

  • deepin好像默认已经安装了
sudo apt install smartmontools

简单演示

  • 查看硬盘是否支持SMART
sudo smartctl -i /dev/sda
  • 查看SMART健康状态
sudo smartctl -H /dev/sda
  • 查看SMART所有状态信息
sudo smartctl -a /dev/sda

...

SMART support is: Enabled //表示硬盘支持SMART

SMART overall-health self-assessment test result: PASSED //健康状态达标(注意,达标不代表没有坏道!)

badblocks坏道检测

安装

  • deepin好像默认已经装了
sudo apt install e2fsprogs

简单演示

  • 检测/dev/sda1分区坏道,并输出扫描进度和详细情况到屏幕。
sudo badblocks -sv /dev/sda1
  • 对已挂载的/dev/sda磁盘的1024至65536区块进行写检测,并将坏道记录到名为badblocks.log的文件。
sudo badblocks -svwf /dev/sda 65536 1024 -o badblocks.log

-s //显示进度

-v //显示执行详细情况

-w //以写去检测

-b //指定区块大小,默认4096

-c //每个区块检测次数,默认16次

-f //强制在挂载设备上运行读写或非破坏性的写测试

-o //输出结果到文件

-i //跳过文件里的坏道

[device] //硬盘设备,例如sda、sda1

[last-block] //指定要检测的区块总数(即结束位置)

[start-block] //指定从哪个区块开始检测(即即开始位置)

注意:不能直接以写方式检测已经挂载的硬盘,可以加-f选项。

hdparm硬盘测试

安装

sudo apt install hdparm

简单演示

  • 测试硬盘读取速度
sudo hdparm -Tt /dev/sda
  • 详细内容可参考帮助信息
hdparm -h

好的,谢谢!

Reply View the author