In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to use the fsck command to repair the linux file system, the content is very detailed, interested friends can refer to, hope to be helpful to you.
A virtual machine of rhel linux6.5 cannot be restarted remotely. Go to the console to view it. The system interface is as follows:
Analysis: you can see the hint that inode partially crashed, resulting in an "orphan file". It is recommended that you use fsck check manually. At this time, the system cannot enter single-user mode and can only use rescue mode.
Mount ISO to enter rescue mode, select 1 to continue
Now mount root to the / mnt/sysimage directory, and then unmount the root directory, because running fsck requires the file system to be unmounted, where the root directory is the lvm volume. Use the command to check the root directory, where-n means only checking and not performing specific operations.
The fsck check results are as follows. Several "orphan files" and different block bitmaps are found.
At this point, you can run fsck to perform the repair,-f means to force a check for files without errors, and-y means to perform the repair automatically.
Sh-4.1#fsck-fy / dev/mapper/rootvg-lvroot
After the completion of the rescue mode and restart, the system can be booted smoothly.
Sh-4.1#exit
Bash-4.1#reboot
Note: because the user installs the software and causes the sysadm user directory owner to change, you also need to enter single-user mode to modify the directory owner. (chown-R sysadm:sysadm / home/sysadm/)
On how to use the fsck command to repair the linux file system is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.