LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-23-2012, 05:09 AM   #1
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

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, 05:32 AM   #2
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 388
Blog Entries: 9

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

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

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, 07:13 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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, 03:35 PM   #5
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

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 03:47 PM.
 
  


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
Recover deleted username directory leblinux Linux - Newbie 1 10-21-2011 09: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 01:44 PM
how to recover home data, got deleted with the profile manishgarg21 Linux - Newbie 5 05-28-2008 07:16 AM
Deleted a directory! Can I recover it? 360 Linux - General 2 02-11-2003 11:23 AM
Deleted Directory, how to Recover ?? GT I.N.C Linux - General 5 11-19-2002 08:20 AM

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

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