0

I, like an idiot, killed my rm -rf command in the middle of it, and now there's one file remaining, but it keeps saying access is denied. I assumed it was because a process was accessing it, but when I run lsof on the file, it says No such file or directory.

My new hypothesis is that the directory file has the file listed, but the data of the file has been removed. I'm much more of a Windows guy, but my laptop is running OS X, which is where I did this.

Can someone tell me how to either delete this file record forcibly or further debug the situation?

Thanks!

2
  • 4
    Try a fsck on that filesystem. You may have to boot into recovery mode to do that (i.e. if it's in the rootfs and therefore not unmountable).
    – sawdust
    Commented Jun 6, 2015 at 22:02
  • If you run the commands you mentioned and ls -la and post the results in your question (edit your question), that might help us (or maybe even you) to debug the situation further. Commented Jun 7, 2015 at 0:44

0

You must log in to answer this question.

Browse other questions tagged .