Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-21-2012, 09:23 PM   #1
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 log 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 09:27 PM.
Old 06-21-2012, 11:07 PM   #2
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, 01:50 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
1. stop using that partition
2. try photorec and/or testdisk
Old 06-22-2012, 06:57 AM   #4
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).

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

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
you do need to reboot

and keep a copy of extundelete installed

however it can ONLY be used on an UNMOUNTED partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:40 PM
Accidentally deleted config to restore it? gauravholey Linux - Kernel 4 06-22-2009 08:53 AM
restore deleted rc.conf file fraggelfraggel *BSD 7 10-23-2005 12:53 AM
How to restore a deleted file satimis Linux - Newbie 1 09-12-2003 05:18 AM
restore back deleted file edreddy Linux - General 4 07-19-2002 07:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:09 PM.

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