LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-03-2010, 04:35 AM   #1
kirthana
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
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..
 
Old 04-03-2010, 05:01 AM   #2
codedr
Member
 
Registered: Feb 2007
Location: USA
Distribution: opensuse, slackware
Posts: 35

Rep: Reputation: 19
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration