Librenix
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

Undelete deleted Linux files with lsof

Up
vote
Down

Make sure you recover the deleted file before some process recycles the 'unused' space...
Briefly, a file as it appears somewhere on a Linux filesystem is actually just a link to an inode, which contains all of the file's properties, such as permissions and ownership, as well as the addresses of the data blocks where the file's content is stored on disk. When you rm a file, you're removing the link that points to its inode, but not the inode itself; other processes (such as your audio player) might still have it open. It's only after they're through and all links are removed that an inode and the data blocks it pointed to are made available for writing.
 read more | mail this link | score:7236 | -Ray, November 17, 2006
More Sysadmin articles...

Buy Art Online with a Money-Back Guarantee

Selected articles

How to install Ubuntu Linux on the decTOP SFF computer

Space Tyrant: A threaded game server project in C

Tutorial: Introduction to Linux files

Closed Source Linux Distribution Launched

Shadow.sh: A simple directory shadowing script for Linux

Programming Language Tradeoffs: 3GL vs 4GL

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin