Files Marked for Deletion under Linux

Table of Contents

Introduction

Working in the IT industry there has been times when may need to for one reason or another perform a compromise check on a server, some of these times I will notice some of the key files have been deleted. Another scenario which comes up abit is with MySQL files being deleted on accident and needed to retrieve them, below I'll go over one of the way you may be able to recover a file.

The way this particular technique works is do to a process having a lock on the file in question. The tool we will be using to track down these files is called lsof, lets go ahead and get down to it as it will begin to make better sense below.

The Problem

Searching

Recovering

Author: Jeffrey Ness <jness@flip-edesign.com>

Date: 2010-04-02 14:45:44 CDT

HTML generated by org-mode 6.21b in emacs 23