xfs error : “mount: Structure needs cleaning”

當我在掛載 xfs partition 時出現了”Structure needs cleaning”錯誤

# mount /dev/sdb1 /disk2
mount: Structure needs cleaning

我用了下列的指令解決了. 雖然我不太清楚什麼東西導致它有問題 :
# xfs_repair -n /dev/sdb1

上面指令還不能完全解決

# xfs_check /dev/sdb1
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_check. If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption — please attempt a mount
of the filesystem before doing this.

用 xfs_check 指令. 它建議我用 “xfs_repair -L ”
# xfs_repair -L /dev/sdb1

這樣弄玩之後. 在用 xfs_check 檢查一次
# xfs_check /dev/sdb1

就可以掛載了
# mount /dev/sdb1 /disk2

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.