Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The nas is running on a cut down version of debian. I've ssh onto the box and ran rm -rf of their directory

rm: cannot remove 'lfamb32/backup-11-07-2013 - bits/Local Disk (C)/New Volume (D) - Lamb files/Backup': Directory not empty

There are hundreds of directory on it. What can I do? I'm running the commands as root.

Edit: Showing io errors in dmesg. Guess the hard drive is failing!

share|improve this question
    
Is there any difference if you use rm -r -f or rm -R ? –  Cornelius Jun 17 at 13:42
    
I think there is a hardware fault on the NAS. Showing IO errors on dmesg. No wonder... –  lbanz Jun 17 at 13:55
    
@Ibanz might be a good idea to update your question with that, or if you accept it, answer the question yourself with your finding. –  mtak Jun 17 at 13:58

1 Answer 1

Ran xfs_repair and turns out there is a hardware fault. Dmesg also shows it. Relaced disk and recover from backup now I'm able to delete the files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.