linux磁盘检测和修复
来源:互联网 发布:知乎 扒皮 编辑:程序博客网 时间:2024/06/14 11:31
显示磁盘和闪存的信息,以及分区信息
[root@bogon shell]# fdisk -lDisk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x00043062 Device Boot Start End Blocks Id System/dev/sda1 * 2048 616447 307200 83 Linux/dev/sda2 616448 4810751 2097152 82 Linux swap / Solaris/dev/sda3 4810752 41943039 18566144 83 Linux#坏道/坏块检查[root@bogon shell]# badblocks /dev/sda1[root@bogon shell]# badblocks -v /dev/sda1 #-v显示检查过程Checking blocks 0 to 307199Checking for bad blocks (read-only test): done Pass completed, 0 bad blocks found. (0/0/0 errors)[root@bogon shell]# #使用smartmontools工具扫描坏道yum install smartmontools -y #安装工具[root@bogon shell]# smartctl -H /dev/sda1 #检查/dev/sda1健康状况smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-514.el7.x86_64] (local build)Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF READ SMART DATA SECTION ===SMART Health Status: OK[root@bogon shell]# e2fsck用于检查和修复ext3和ext2文件系统的硬盘分区,不过这个命令还有专有形式:fsck.ext3, fsck.ext2分别用于检测ext3和ext2。
阅读全文
0 0
- linux磁盘检测和修复
- Linux 磁盘坏道检测和修复
- Linux磁盘坏道的检测及修复
- linux 修复磁盘
- Linux磁盘修复
- 磁盘坏道的检测及修复
- Linux磁盘修复e2fsck命令
- Linux启动检测磁盘失败
- 使用CHKDSK命令检测修复磁盘的方法
- 磁盘检测命令:chkdsk 修复U盘、SFC命令
- Linux磁盘修复e2fsck,fsck命令
- 磁盘修复
- victoria修复和检查磁盘错误
- Linux检测硬盘坏道 与 修复
- 【Linux】死锁的预防、检测与修复
- Linux磁盘配额的设置与检测
- Linux启动时,检测磁盘失败问题解决
- Linux 磁盘I/O读写速度检测
- 计算几何练习2
- LeetCode--46. Permutations
- 关于indexOf的巧妙使用
- 使用命令行编译QT helloworld 项目
- 整洁即是正义
- linux磁盘检测和修复
- 软raid5+lvm步骤
- 编辑器 兼容微信
- 辣鸡数据结构作业:简易银行管理系统
- lintcode/leetcode由易至难第15题:Merge Two Binary Trees
- 55. Jump Game
- Ubuntu卸载VTK,及安装python可用的VTK
- 安卓开发——让系统可以调用自己写的视频播放器
- 12.函数