Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 13:42
I think there is a hardware fault on the NAS. Showing IO errors on dmesg. No wonder... – lbanz Jun 17 '14 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 '14 at 13:58
up vote 0 down vote accepted

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


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.