1

Suppose there is only one hard link to a file. When rm the hard link, the inode and data blocks of the file will be marked as unused.

But are the links from the inode to the data blocks of the file removed or kept untouched until the inode is reused for another file?

If latter, how can I recover the deleted file?

I am using Ubuntu and ext4.

  • Have you tried using debugfs? – fpmurphy Dec 7 '15 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.