In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux fsck command to check and repair the Linux file system, I believe that most people do not know much, so share this article for you to learn, I hope you will learn a lot after reading this article, let's go to learn the method!
The English full name of the fsck command is "filesystem check", which means to check the file system. It is often used to check and repair some error messages of the Linux file system. To operate the file system, you need to back up important data in case of loss.
The Linux fsck command is used to check and repair the Linux file system, and one or more Linux file systems can be checked at the same time; if the system is powered off or there is a disk problem, you can use the fsck command to check the file system.
Syntax format: fsck [parameters] [file system]
Common parameters:
-an automatically fixes the file system without asking any questions-A checks all file systems listed in the file according to the contents of the / etc/fstab configuration file-N does not execute instructions, but lists only the actions that will be actually executed-P when used with the "- A" parameter, all file systems are checked at the same time-r is in interactive mode and questions are asked when performing the repair Allows the user to confirm and decide how to handle it-R when used with the "- A" parameter, the file system of the / directory is skipped and not checked-t specifies the type of file system to check-T does not display the title information-V shows the instruction execution process when the fsck instruction is executed
Reference example
Fix bad partitioned file systems:
[root@linuxcool] # fsck-t ext3-r / usr/local
Fsck from util-linux 2.23.2
E2fsck 1.42.9 (28-Dec-2013)
Fsck.ext3: Is a directory while trying to open / usr/local
The superblock could not be read or does not describe a correct ext2
Filesystem. If the device is valid and it really contains an ext2
Filesystem (and not swap or ufs or something else), then the superblock
Is corrupt, and you might try running e2fsck with an alternate superblock:
E2fsck-b 8193
/ usr/local: status 8, rss 1232, real 0.020288, user 0.002022, sys 0.005354
Displays the version number of the fsck system installation:
[root@linuxcool] # fsck-- version
Fsck from util-linux 2.23.2 above is to use linux's fsck command to check and repair all the contents of the Linux file system, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.