今天在ubuntu 下
sudo rm -rf FILENAME
會出現下面類似的錯誤訊息
ls: cannot access '/sharedfiles/media/Movies/Hindi/Others/Aashiqui 2.avi': Structure needs cleaning
ls: cannot access '/sharedfiles/media/Movies/Hindi/Others/Aitraaz.mkv': Structure needs cleaning
ls: cannot access '/sharedfiles/media/Movies/Hindi/Others/Safar.mpg': Structure needs cleaning
解法:
由於我的環境是在主要的fileSystem下(/dev/sda2)
因此必須要umount /dev/sda2
sudo umount /dev/sda
---
Device is busy <--- 因為filessystem 正在使用
所以我們必須要從USB Live 來開啟ubuntu下指令
至於怎麼製作Ubuntu Desktop USB Live 我這邊不贅述
進去Ubuntu Live後 打開terminal , 檢查/dev/sda2 是否有問題
若有問題會自動修復
sudo e2fsck -a /dev/sda2
這邊我會遇到 UNEXPECTED INCONSISTENCY的問題 , 利用fsck 修復
fsck -a -y /dev/sda2
最後Reboot 後 就可以將剛剛無法刪除的資料刪除