Skip to content

howto un-unlink (undelete) an open file

by andy on October 8th, 2005

So you’ve unlinked a file but a process is still processing it? As linux keeps seperate namespaces you can still regain the lost file:

  1. goto /proc/$PID_OF_PROCESS_WHICH_HOLDS_THE_FILE_OPEN/fd/
  2. ls -la, identify the open file
  3. cp $FILEDESCRIPTOR /home/backup

No related posts.

From → Admin-stuff, Linux

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

Login with Facebook: