What should I do if there is a mount:Structure needs cleaning error in Linux?

  

When you are working on a Linux system, the mount hard disk appears "mount:Structure needs cleaning" error. When this happens, you can use xfs_repair to fix it. Let's learn together.

This article introduces Linux mount: Structure needs cleaning the wrong solution, a friend in need can refer

Today when the IO conducted tests using the fio, the file system /The home partition encountered a mount: Structure needs cleaning error. General situation:

The /home partition is the xfs file system;

Execute fio for multi-process testing;

After the test is complete, execute du -hs /home/*, part File data prompts "mount: Structure needs cleaning" error;

Solution

can be repaired using xfs_repair, but be aware that the files in the xfs_repair repaired partition will be lost, even du Files that can be displayed normally will also be lost.

Processing steps:

umount /home

xfs_repair /home

mount /home

The above appears under Linux "mount"; mount :Structure needs cleaning”Introduction to the error, if you encounter this problem, you may wish to follow the steps above to fix it, and give it a try.

Copyright © Windows knowledge All Rights Reserved