LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-22-2009, 09:18 AM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Big Newbie Mistake...Deleted account, need files back


Well, I did it. I deleted a user account, and their home directory...And I need those files back.

How do I do this? I don't care about the account, I just need the /home/<username> dir back
 
Old 10-22-2009, 09:25 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,110

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
if it's an ext3 filesystem you can try this.
 
Old 10-22-2009, 09:27 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

'PhotoRec, Digital Picture & File Recovery' or 'TestDisk' may aid you if you haven't written to the space. You might get some back even if the disk space had been written too.

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 10-22-2009, 09:34 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,110

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
just built them with sbopkg (for slack64) http://omploader.org/vMmxoZA/testdis..._64-1ponce.txz
 
Old 10-22-2009, 09:35 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, don't do anything that would write to the disk. Ideally, mount it in another machine read-only. (Or at least so the OS is not running from it)

if the data is really valuable, consider cloning it first.
 
Old 10-22-2009, 09:54 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
I have 1 hdd. That's it.

It is not a missing/deleted partition. It's a deleted dir.../home/<username>

Neither of those tools will help. The first is WAY over my head. The second is only for partition recovery. And no major adds to the hdd since I removed the user. (The subdir I need is HUGE, probably be fine for awhile.)
I have NOT rebooted, as soon as I saw those files go , I stayed as root (where I am now...I NEVER go on the net as root), and posted/searched.

Cannot clone.

HELP!
 
Old 10-22-2009, 09:58 AM   #7
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Do you need those files of /home/<useraccount> directory?
 
Old 10-22-2009, 09:58 AM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Photorec working..Didn't know both were in same package. YEAH! It's recovering a TON of stuff.
 
Old 10-22-2009, 10:12 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by cwwilson721 View Post
Photorec working..Didn't know both were in same package. YEAH! It's recovering a TON of stuff.
I thought you wanted file recovery, so PhotoRec will work. Your original post didn't say whether 'home' was on a another partition or not. Glad to hear your getting things back.

BTW, Backup!

 
Old 10-22-2009, 11:48 AM   #10
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Just so people are clear where to get the latest SlackBuild for photrec/testdisk

Good stuff!
 
Old 10-22-2009, 12:01 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
http://www.newegg.com/Store/SubCateg...al-Hard-Drives

For backup
 
  


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 files from a Deleted User account cekflores Linux - Newbie 4 03-06-2008 12:15 AM
how to get back deleted files akhil.mud Linux - General 8 12-16-2007 11:50 AM
I deleted some files and and want them back carlsonultimate Linux - Newbie 4 09-28-2007 06:28 PM
Re: Getting back deleted files in ext3fs talpa_sai Linux - Software 1 04-04-2006 03:10 PM
accidentally deleted some files and I don't know what I need to do to get them back Michele Linux - Newbie 2 06-26-2004 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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