LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-07-2007, 07:17 PM   #1
vansch76
Member
 
Registered: Aug 2007
Location: Asheville, NC, USA
Distribution: Mint 17 Rebecca
Posts: 145

Rep: Reputation: 18
is it possible to recover deleted files under Ubuntu


Hi

I was wondering if it was possible to recover deleted files like you
can in windows? this means after I click the empty trash button.

If so what programs do I need to install?

What can I do to prevent a file from being recovered?

Is there a shredding program that will overwrite a file many times?

Thanks

Vanessa
 
Old 12-07-2007, 07:24 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,262

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
Quote:
Originally Posted by vansch76 View Post
Hi

Is there a shredding program that will overwrite a file many times?
Yes, shred will do that. See:

man shred

------------------------
Steve Stites
 
Old 12-07-2007, 07:58 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
My understanding is that shred doesn't work on journaling filesystems like ext3. http://linux.die.net/man/1/shred

I do however shred all my drives from a live CD before getting rid of a computer. It works fine on whole disks, just not on individual files.

http://en.wikipedia.org/wiki/Shredding

Last edited by pljvaldez; 12-07-2007 at 08:02 PM.
 
Old 12-07-2007, 09:04 PM   #4
vansch76
Member
 
Registered: Aug 2007
Location: Asheville, NC, USA
Distribution: Mint 17 Rebecca
Posts: 145

Original Poster
Rep: Reputation: 18
Thanks for the info, that is part of what Im looking for!!

so If I have already deleted a file, is it posible to recover it and then shred it?
I want to get rid of my banking info, from my joint account with my ex husband. I
have a new bank and a seporate account now.

The shred command is just what I need, but I want to get rid of the original file.
From what I read on the links you two guys listed the files are actually still there,
just the space is marked as available. Is this correct?

Thanks again
Vanessa
 
Old 12-07-2007, 11:23 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,944

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
No, you can't recover the file to then shred it. The data is (probably) still there, but getting to it would be extremely difficult. Even for an experienced user.
You need to shred instead of deleting - not after.

Some more fuel for your paranoia - there are actually two (deleted) copies of the data if you deleted it from the trashcan. Never did like that concept.
And of course, as file(s) are updated (in normal use), data blocks get re-written - somewhere else. So some of the data could be almost anywhere.
Or it could all have been over-written and be perfectly safe.

Don't worry about it unless your ex works for one of the "spooks".
 
Old 12-08-2007, 03:05 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,262

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
Quote:
Originally Posted by vansch76 View Post
Thanks for the info, that is part of what Im looking for!!

so If I have already deleted a file, is it posible to recover it and then shred it?
I want to get rid of my banking info, from my joint account with my ex husband. I
have a new bank and a seporate account now.

The shred command is just what I need, but I want to get rid of the original file.
From what I read on the links you two guys listed the files are actually still there,
just the space is marked as available. Is this correct?

Thanks again
Vanessa
If you want to get rid of everything; data, journals, filenames, old partial blocks, even the partition table and MBR then I recommend dban:

http://dban.sourceforge.net/

dban is what I reach for whenever I hear the cops pounding up the steps.

--------------------------
Steve Stites
 
Old 12-08-2007, 08:02 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,944

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Quote:
Originally Posted by jailbait View Post
dban is what I reach for whenever I hear the cops pounding up the steps.
Don't you get sick of doing that every couple of weeks .... ??? ....
 
Old 12-10-2007, 11:31 AM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by vansch76 View Post
Thanks for the info, that is part of what Im looking for!!

so If I have already deleted a file, is it posible to recover it and then shred it?
I want to get rid of my banking info, from my joint account with my ex husband. I
have a new bank and a seporate account now.

The shred command is just what I need, but I want to get rid of the original file.
From what I read on the links you two guys listed the files are actually still there,
just the space is marked as available. Is this correct?

Thanks again
Vanessa
I'm afraid the only way to get rid of the data is to shred (or use DBAN) the entire drive. That means you would have to reinstall your operating system and all of your programs (make a backup of important data because it will all be gone). That's the only way it will all be gone.

Unless you have some reason to be paranoid about getting rid of it right now, I would just wait until you want to reformat the drive someday, then shred it then.
 
Old 12-11-2007, 06:51 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by jailbait View Post
dban is what I reach for whenever I hear the cops pounding up the steps.
Then you either have a very small HD or a mightly long flight of stairs or law enforcement over there is obese beyond hope ;-p I use DBAN a couple of times a week and even if writing one pass zeroes it isn't *that* quick.
 
  


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
How to recover deleted Files sundar_reddy Linux - Software 2 10-25-2007 06:00 PM
How to recover deleted files? SentralOrigin Linux - General 11 01-25-2007 06:31 PM
Recover Deleted Files thammerlund Linux - Newbie 4 07-13-2006 10:40 PM
How do I recover deleted files? Hector404 Linux - General 5 12-27-2005 01:35 AM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 08:47 AM

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

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