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

What is the use of the fsck.ext2 command in Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the use of the fsck.ext2 command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish reading it!

The Linux fsck.ext2 command is used to check the file system and try to fix the error.

When an error occurs in the ext2 file system, you can try to fix it with the fsck.ext2 directive.

Syntax fsck.ext2 [- acdfFnprsStvVy] [- b] [- B] [- C] [- I] [- lmax L] [- P] [peripheral code]

Parameters:

-an automatically fixes the file system without asking any questions. -b specifies the starting address of the first sector of the partition, which is Super Block. -B sets the size of each block of the partition. -c checks whether there are corrupted blocks in the specified file system. -C specifies the reverse narrator, and the fsck.ext2 instruction reverses the entire execution to facilitate debugging or monitoring the execution of the program. -d shows the instruction execution process in detail to facilitate debugging or analysis of program execution. -f forces a complete inspection of the file system, even if there is no problem with the file system under the rough inspection. -F before checking the file system, clean up the data in the saved device block. -I sets the number of chunks in the inode buffer of the file system to be checked. -l treat the block listed in the file as a damaged block and mark it to prevent applications from using it. The effect of this parameter is similar to that of specifying the "- l" parameter, but before referring to the damaged block file to mark the damaged block, all those originally marked as damaged blocks will be clearly marked, that is, all will be reset, rather than just adding a new damaged block mark. -n set the file system you want to check to read-only, turn off interactive mode, and reject all questions asked. -p the effect of this parameter is the same as specifying the "- a" parameter. -P sets the size of the inode that the fsck.ext2 instruction can handle. -r this parameter will be ignored and will only be responsible for resolving compatibility issues. -s swaps the contents of each pair of bytes when checking the file system. The effect of this parameter is similar to specifying the "- s" parameter, but swaps the contents of each pair of bytes regardless of whether the file system is in standard bit order or not. -t displays timing information for fsck.ext2 instructions. -v shows the execution of the instruction in detail. -V displays version information. -y turn off the interactive mode and agree to all questions asked. The above is all the content of the article "what is the use of fsck.ext2 commands in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report