LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-23-2012, 06:09 AM   #1
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 132

Rep: Reputation: 18
Recover deleted files ext4 home directory


Oh my gosh I'm an idiot. I have recently started using KDevelop as an editor for my websites and tonight I was playing around with using it properly with projects and whatnot. So I go Project > New and I insert the directory my files are currently in, it evens says 'there are files currently in here'. So I click proceed thinking it would automatically add the files to the project and just after I clicked I thought 'I should create a backup before I do this.' Well, too late, I've already clicked and KDevelop just wiped the folder.

Being a geek I calmly went on Google on my other computer and searched for linux undelete tools. I found 'testdisk' which I have tried using via an Ubunutu Live CD I have (12.04) but it sees the deleted directory I want, just no files in it.

Help me please, is there any other way? It's an entire (not small) website I've been developing and was ready to create a backup (I know, I should do it every night but I haven't been).
 
Old 09-23-2012, 06:32 AM   #2
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 359
Blog Entries: 8

Rep: Reputation: 83
extundelete is a utility that can recover deleted files from an ext3 or ext4 partition.

http://extundelete.sourceforge.net/
 
Old 09-23-2012, 07:09 AM   #3
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 132

Original Poster
Rep: Reputation: 18
Well, it doesn't compile on Ubuntu 12.04 but I found ext4magic while trying to solve that. I managed to get half my files back and I don't think I'll be able to recover anymore.

Thanks for the help.
 
Old 09-23-2012, 08:13 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by BeaverusIV View Post
Oh my gosh I'm an idiot. I have recently started using KDevelop as an editor for my websites and tonight I was playing around with using it properly with projects and whatnot. So I go Project > New and I insert the directory my files are currently in, it evens says 'there are files currently in here'. So I click proceed thinking it would automatically add the files to the project and just after I clicked I thought 'I should create a backup before I do this.' Well, too late, I've already clicked and KDevelop just wiped the folder.
You're not an idiot. If it did not explicitely stated that files would be wiped / deleted, I would have done the same. Time to log a 'bug' report stating that there are 'idiots' that don't understand KDevelop's warnings and that they should make them more explicite.

PS If your issue is solved, please mark the thread like that using the thread tools just above the first post.
 
Old 09-23-2012, 04:35 PM   #5
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 132

Original Poster
Rep: Reputation: 18
I'm still an idiot, Wim. I've been using computers enough (and had this happen enough) to back my stuff up frequently. The annoying thing is I was doing this to add all the files to a git repository for backup...

I'll post a bug report as you say, it's a good idea. Forgot about [SOLVED] in all my panic.

https://bugs.kde.org/show_bug.cgi?id=307289

Last edited by BeaverusIV; 09-23-2012 at 04:47 PM.
 
  


Reply


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
Recover deleted username directory leblinux Linux - Newbie 1 10-21-2011 10:30 AM
[SOLVED] How to Recover Deleted (partly overwritten) Files in /home on ext3 fs, ubuntu 6.06 the_new_z Linux - Newbie 3 08-05-2010 02:44 PM
how to recover home data, got deleted with the profile manishgarg21 Linux - Newbie 5 05-28-2008 08:16 AM
Deleted a directory! Can I recover it? 360 Linux - General 2 02-11-2003 12:23 PM
Deleted Directory, how to Recover ?? GT I.N.C Linux - General 5 11-19-2002 09:20 AM


All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration