fsck [-T file system][-acay] Appliance name
-t specifies the file system
-A-scan required devices
-A automatic repair check to problematic sectors
-Y is similar to-a
-C During the inspection process, show the progress
**********************************************************
Ext2/ext3 Additional Options Features:
-F Mandatory Check
-D optimized configuration for directories under the file system
**********************************************************
[Email protected] ~]# fsck-c-f-t ext3/dev/sda1
Fsck 1.39 (29-may-2006)
E2fsck 1.39 (29-may-2006)
/DEV/SDA1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)?
**********************************************************
Badblocks-[SVW] Appliance Name
-S list Progress
-V See progress
-W test using write mode, it is recommended not to use this parameter
[Email protected] ~]# badblocks-sv/dev/sda1
Checking blocks 0 to 104391
Checking for Bad blocks (read-only test): Done
Pass completed, 0 bad blocks found.
This article is from the Linux Operations sharing blog, so be sure to keep this source http://liangey.blog.51cto.com/9097868/1572207
Linux correction system error command fsck and Badblocks