Question:
How to recover shift deleted files in Ubuntu?
2010-11-02 22:32:30 UTC
Hi all, I am working in an institution. There students are using laptop which have Ubuntu 9.4 and Ubuntu 10.0 operating systems. Actually what they are doing is they are listening songs and watching videos when I am tecahing class. When I go there to check simply they are shift deleting the files. Then how can I find them. How can get recover those files to punish them?.
Seven answers:
2010-11-05 13:34:09 UTC
Method 1 to recover deleted files in Ubuntu: Scapel



Scalpel is a fast file carver that reads a database of header and footer definitions and extracts matching files from a set of image files or raw device files. Scalpel is filesystem-independent and will carve files from FATx, NTFS, ext2/3, or raw partitions. It is useful for both digital forensics investigation and file recovery. This short article shows how you can use Scalpel to recover deleted files.



In Ubuntu, Scalpel can be installed as follows:



apt-get install scalpel



Before we can use Scalpel, we must define some file types that Scalpel should search for in /etc/scalpel/scalpel.conf. By default, all file types are commented out. Uncomment the lines you want, for instance if you want to recover PDF files:



Press Alt + F2 and type: gedit /etc/scalpel/scalpel.conf



and uncomment these lines:



pdf y 5000000 %PDF %EOF\x0d REVERSE

pdf y 5000000 %PDF %EOF\x0a REVERSE



Scalpel can be used as follows to try to recover the files:



scalpel /dev/sda1 -o output



-o defines the directory where Scalpel will place the recovered files - in this case the directory is named output and is a subdirectory of the directory where we are running the scalpel command from; the directory must not exist because otherwise scalpel will refuse to start.



After Scalpel has finished, you will find a folder called output in the directory from where you called Scalpel. The audit.txt contains a summary of what Scalpel has done and the pdf-0-0/ subdirectory contains the pdf files that Scalpel has recovered.



Before you run Scalpel the next time from the same directory, you must either delete/rename the current output/ directory (because Scalpel will not start if the output directory is already existing) or use specify another output directory.



Method 2 for recovering deleted files in Ubuntu: Foremost



Foremost is a console program to recover files based on their headers, footers, and internal data structures. This process is commonly referred to as data carving. Foremost can work on image files, such as those generated by dd, Safeback, Encase, etc, or directly on a drive. The headers and footers can be specified by a configuration file or you can use command line switches to specify built-in file types. These built-in types look at the data structures of a given file format allowing for a more reliable and faster recovery.



Install foremost in Ubuntu



sudo aptitude install foremost



This will complete the installation.



Using Foremost



Foremost Syntax



foremost [-h][-V][-d][-vqwQT][-b][-o] [-t][-s][-i]





Foremost examples



Search for jpeg format skipping the first 100 blocks



sudo foremost -s 100 -t jpg -i image.dd



Only generate an audit file, and print to the screen (verbose mode)



sudo foremost -av image.dd



Search all defined types



sudo foremost -t all -i image.dd



Search for gif and pdf



sudo foremost -t gif,pdf -i image.dd



Search for office documents and jpeg files in a Unix file sys-tem in verbose mode.



sudo foremost -v -t ole,jpeg -i image.dd



Run the default case



sudo foremost image.dd



image.dd means you need to enter your hardisk mount point i.e /dev/sda1 or /dev/sda2
kifer
2016-12-08 16:46:17 UTC
Ubuntu Deleted File Recovery
2010-11-04 11:08:16 UTC
There is no way to restore files deletes with the shift key in Ubuntu because the entries in the inode table are erased.

The only thing you can do is change the map key, so the students can do this action again; you can use the command:



xmodmap -e "keycode 22 = BackSpace"



Note the link that other user gave you is only for Windows.
boulware
2016-10-14 07:05:52 UTC
the reason that recuperating deleted archives isn't comparable to different archives restoration initiatives is that it incredibly is extra uncomplicated. while a report is deleted out of your computing gadget, it incredibly is no longer possibly deleted. it incredibly is in simple terms removed from the record of archives in the folder. once you're using living house windows, and deleted the report using living house windows Explorer, the report will many times have been moved to the Recycle Bin. whilst it incredibly is in the Recycle Bin, the report can fairly be restored in its entirety, with out subject in any respect. So the 1st component to do once you like to get better a deleted report is seem in the Recycle Bin. If the report you opt for isn't in the Recycle Bin - in case you emptied the bin, deleted the report using Shift Delete, deleted the report from interior of an application or used another approach that bypassed the Recycle Bin - then do no longer melancholy. it is going to be recoverable. once you empty the Recycle Bin or delete a report using yet another approach, the report continues to be no longer possibly deleted. The report call is removed from the record of archives in the folder or the Recycle Bin, and the area occupied via the report is made obtainable to living house windows for reuse. yet living house windows does not reuse the area rapidly away, so the advice interior the report will stay intact for it sluggish to come back, allowing the possibility of restoration.
2016-07-23 13:07:14 UTC
Card Recovery in 3 Steps!
2014-08-04 19:12:35 UTC
You may try this solution that helped me before

http://www.asoftech.com/articles/shift-delete-recovery.html



hope this helps.
2010-11-03 06:01:56 UTC
Download this program



http://download.cnet.com/Glary-Utilities/3000-2094_4-10508531.html


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...