LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2017, 10:12 AM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933

Quote:
Originally Posted by AwesomeMachine View Post
In Linux "undelete" doesn't work the same way it does in Windows. Linux file systems are designed with inodes which point to a file. But sometimes the file is so small it will fit in the inode itself. In Linux, delete with the "rm" command clears the inode, so the only way to undelete the file is to search the entire drive for it.

In Windows, NTFS, fat32, etc. use file streams. The MFT (master file table) entry (OR FAT ENTRY) remains intact, and still points to the stream containing the file. Undeleting it simply entails unmarking it as deleted.
You must not only unmark the directory entry (if it still exists), but also correctly identify the set of disk-blocks that comprise the file. Any of those blocks could by now have been re-used, and the disk-allocation structures that were once reserved for the file may not exist either.

And even Windows does not work that way anymore. The old "FAT" file-systems offered maybe a ghost-of-a-chance, if there was no other simultaneous disk activity going on, but NTFS uses a much more modern architecture that is designed to be self-maintaining.

Long story short: if you need to "undelete" a file, hope you have a very-current backup!
 
Old 11-30-2017, 12:01 PM   #17
SimonDevine
Member
 
Registered: Oct 2016
Location: Surrey, UK
Distribution: Slack 15.0 64 using Plasma 5.15 on Dell Inspiron 3847 8GB RAM with Dell 24inch monitor 1920x1080
Posts: 116

Rep: Reputation: 108Reputation: 108
After my Dopey Deletion Antics, I have been looking at Online Backup options. Disks and Data Repositories are massive now so we do need these types of things.

A Google search listed quite a few, and, IMO, I thought IDrive was rather good. They are Linux aware and provide a pile of Perl Scripts for maintenance and the like.

The IDrive pricing for 2TB is ~$100 for a 2 year plan, with upfront payment providing the discount from $140.

They're here ... https://www.idrive.com/

A Google search of Online Backup will reveal a list URL to follow.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac File Undelete Software, Undelete Mac files liesnsys Linux - Hardware 3 07-23-2009 09:50 PM
mc undelete unixpirate Linux - General 4 12-18-2002 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 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