LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-21-2012, 08:23 PM   #1
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 511
Blog Entries: 12

Rep: Reputation: Disabled
how to restore a file deleted just 5 min ago...


i was tweaking with a mkv file for 2 hours and accidentally deleted it 5 min ago...nothing has been changed...no log out...no update...nothing so far.

is there any way i can get that file?
please help me asap..

Last edited by dEnDrOn; 06-21-2012 at 08:27 PM.
 
Old 06-21-2012, 10:07 PM   #2
abi0909
Member
 
Registered: Jul 2009
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55

Rep: Reputation: 18
Unfortunately file once deleted is deleted. No way you can recover them using Unix. Maybe some third party tools .. But am not aware of any...
 
Old 06-22-2012, 12:50 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1. stop using that partition
2. try photorec and/or testdisk
 
Old 06-22-2012, 05:57 AM   #4
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1, Centos 7
Posts: 278

Rep: Reputation: 32
What file system are you using? Use the command 'mount' to find out. I use reiser fs and when I had this problem I used 'reiserfsck --rebuild-tree' Read the man pages but be careful, it has an element of danger (apparently).

BashTin.
 
Old 06-22-2012, 06:03 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well this time you might be out of luck .
As chrism01 pointed out
you you STOP right then and there and DO NOT use that partition or download anything -- you STOP

if / or /home
do not even log out or turn off the machine

then use photorec

now for "system rescue cd " burn a copy and for next time
http://www.sysresccd.org/SystemRescueCd_Homepage
you do need to reboot

and keep a copy of extundelete installed
http://extundelete.sourceforge.net/

however it can ONLY be used on an UNMOUNTED partition
 
  


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
[SOLVED] From 2 days ago, it takes 10 min.s to boot my HP dv9700 laptop. Prior two yr.s, 2 min PTrenholme Linux - Hardware 6 12-28-2010 11:40 AM
Accidentally deleted config file....how to restore it? gauravholey Linux - Kernel 4 06-22-2009 07:53 AM
restore deleted rc.conf file fraggelfraggel *BSD 7 10-22-2005 11:53 PM
How to restore a deleted file satimis Linux - Newbie 1 09-12-2003 04:18 AM
restore back deleted file edreddy Linux - General 4 07-19-2002 06:43 AM

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

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