LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   undeletion (https://www.linuxquestions.org/questions/linux-kernel-70/undeletion-799745/)

kirthana 04-03-2010 04:35 AM

undeletion
 
how do i undelete files using inodes... i would like to write a program to implement this for my OS project... will it be feasible..

codedr 04-03-2010 05:01 AM

If it's delete from the User Interface, most modern UI's provide this service
by moving the deleted item to 'trash' where the user empties it periodically.

If it's delete from the command line, you can write an 'rm' alias which mv's the file to a trash directory.

Usually though, it's changing your work ethic to not delete files until you are sure you won't need it anymore. A trash can/trash directory is merely a crutch which provides a level of indirection to removing a file.
You have to ask yourself why you are removing a file.
Most items can be recreated, especially if you have a backup policy.

The likelyhood of finding all the blocks of a deleted file in the filesystem
is near zero.


All times are GMT -5. The time now is 05:53 PM.