Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use e2fsck, a disk detection tool under linux system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to use disk Detection Tools e2fsck under linux system," the explanation content in this article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "how to use disk Detection Tools e2fsck under linux system" bar!

Command: e2fsck

Access: Super User

Usage: e2fsck [-pacnydfvFV] [-b superblock] [-B blocksize] [-l|-L bad_blocks_file] [-C fd] device

Instructions: Check if partition works correctly using the Linux ext2 file system

Parameters:

device: hard disk partition to be checked, e.g./dev/sda1

-a : Check partition, if there is a problem, it will be automatically repaired, equivalent to-p function

-b : Set the location of the superblock

-B : Set the size of the unit block

-c : Check if the partition has bad track

-C file : Save the results of the check to file for viewing

-d : print debug results for e2fsck

-f : mandatory inspection

-F : Clear the buffer cache of the device before starting the check to avoid errors

-l bad_blocks_file : Add bad block data to bad_blocks_file

-L bad_blocks_file : Set the block data of bad track to bad_blocks_file, if there is no such file, it will be generated automatically

-n : Open the file system in read-only mode

-p : Check partition and fix it automatically if there is a problem

-v : Detailed display mode

-V : Shows the current version of e2fsck

-y : Preset all exam questions answered [yes]

Examples:

Check whether/dev/hda5 is normal, if there is an exception, it will automatically fix it, and set the answer to [Yes] if there is a question:

e2fsck -a -y /dev/hda5

Note:

Most of the time when using e2fsck to check hard disk partition, it is usually a special situation, so it is best to first check the partition amount, and then run e2fsck to do the check, if you must check/, then enter single user mode and then run.

Thank you for reading, the above is "how to use linux system disk Detection Tools e2fsck" content, after the study of this article, I believe we have a deeper understanding of how to use linux system disk Detection Tools e2fsck this issue, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report