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-19-2010, 08:06 AM   #1
heberg21
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Rep: Reputation: 0
Unhappy Help! Accidental Deletion need to recover from loss :(


Hello,

I accidentally deleted all the files from file system in my hard drive (thankfully not my /home since it resided on a separate hdd). I did this from another system while I had connected that hdd to look at some files since my system was not booting correctly. The problem is that I deleted everything (manually while I was in nautilus) including the .Trash file. I have not formatted this drive so the partition table remains the same, nor have I written anything to it since the deletion, and, this drive is using ext4. What is the best way to restore this drive to how it was (say yesterday at 4:30PM)? (I have a lot of programs installed and I have been upgrading Ubuntu there since 9.04 to now 10.04). If I am not mistaken when data is deleted in ext4 it is simply flagged as usable space, and if that is so, is it possible to just simply unflag this data to get every file back the way it was yesterday at 4:30PM?

Also, I have looked the partition (sdd1) for this drive on Gparted and shows all the used space (which 91.92GB).


Please help. Thanks.

Last edited by heberg21; 06-19-2010 at 08:09 AM.
 
Old 06-19-2010, 08:16 AM   #2
Mohtek
Member
 
Registered: Dec 2004
Location: Colorado
Distribution: Kubuntu/Debian/Centos
Posts: 126

Rep: Reputation: 15
Is it possible to get reinstall?

It might be easier to just reinstall, since your /home files are safe, its not quite as painful. It may save you a lot of time and effort over manually recovering the data.
 
Old 06-19-2010, 08:19 AM   #3
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
The time and effort it will take to try to recover your partition, it would be simpler to just install 10.04. There's no telling if the recovered partition won't be corrupt in some way. The important data is on your /home drive so it's only programs that need reinstalling. If you decide to reinstall, once you have all your programs added, use Synaptic Package manager to produce a script of installed programs. If you ever need to reinstall again you can use the script to install all the programs you use without having to go through the package list marking them individually.
 
Old 06-19-2010, 08:23 AM   #4
heberg21
LQ Newbie
 
Registered: Jan 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
The time and effort it will take to try to recover your partition, it would be simpler to just install 10.04. There's no telling if the recovered partition won't be corrupt in some way. The important data is on your /home drive so it's only programs that need reinstalling. If you decide to reinstall, once you have all your programs added, use Synaptic Package manager to produce a script of installed programs. If you ever need to reinstall again you can use the script to install all the programs you use without having to go through the package list marking them individually.
Would it be too hard to at least recover a file that would have a list of all programs I had installed?
 
Old 06-19-2010, 08:28 AM   #5
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by heberg21 View Post
Would it be too hard to at least recover a file that would have a list of all programs I had installed?
There may be a database of all installed packages produced and used by the system (sorry I don't know what it would be called) that you might be able to recover. The one I referred to is user generated and would be saved to your /home/username folder.
 
  


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
Accidental RM - can I recover?? anotheruser Debian 5 09-21-2007 07:24 PM
partition deletion lead to space loss.help please manas_shukla Linux - Hardware 4 01-24-2005 08:46 AM
accidental deletion of /etc/profile on MDK9.2 lolmc Mandriva 2 05-06-2004 12:49 PM
Accidental Deletion of some /usr/lib files Huddlebum Linux - General 17 03-08-2004 02:05 PM
accidental deletion of /bin/ steve1394 Linux - Newbie 3 11-03-2003 02:06 PM

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

All times are GMT -5. The time now is 12:43 PM.

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