how do I undelete trash?

Asked by JJ

I hastily deleted my trash bin but did not option to delete permanently. Is there a means to recover it? I downloaded Scalpel 1.6 and foremost but honestly I'm still new to linux
 systems and lost.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcus aurelius (adbiz) said :
#1

once you empty the trash, it's gone forever. but you might be able to retrieve it with a program called foremost.

if you just deleted material but haven't emptied the trash, you can retrieve it by clicking on places, then file, then trash, then recover.

Revision history for this message
JJ (dachamps) said :
#2

I apologize for reiterating the question but I downloaded foremost but do
not know how to use it. Are there guides for new linux users to use this
application?

JJ

Revision history for this message
marcus aurelius (adbiz) said :
#3

did you try googling it?

i typed "how to use foremost" in google and links popped up.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#4

JJ,

Do you mean just the bin? Remove from panel or do you mean the contents in the bin?

If you delete the Bin on the bottom right mouse button add to panel, In search box type trash click on trash and it's back.

Regards,
Leo Jackson

Revision history for this message
JJ (dachamps) said :
#5

Hey thanks for the reply. No I hastily deleted all the contents from the
bin. However I did not permanently delete the files when I emptied my trash
bin, which means they should be hiding somewhere on the drive. I downloaded
foremost application however I am not well versed in linux.

Cheers.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#6

Quick question text files or images..??

Regards,
Leo Jackson

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#7

JJ,

If foremost is what you want to try.

edit the /etc/foremost.conf uncomment the file types.

sudo gedit /etc/foremost
for the file types remove the # where the file is like:

# GIF and JPG files (very common)
# (NOTE THESE FORMATS HAVE BUILTIN EXTRACTION FUNCTION)
# gif y 155000000 \x47\x49\x46\x38\x37\x61 \x00\x3b
# gif y 155000000 \x47\x49\x46\x38\x39\x61 \x00\x00\x3b
# jpg y 20000000 \xff\xd8\xff\xe0\x00\x10 \xff\xd9
# jpg y 20000000 \xff\xd8\xff\xe1 \xff\xd9
# jpg y 20000000 \xff\xd8 \xff\xd9

would look like:
# GIF and JPG files (very common)
# (NOTE THESE FORMATS HAVE BUILTIN EXTRACTION FUNCTION)
 gif y 155000000 \x47\x49\x46\x38\x37\x61 \x00\x3b
   gif y 155000000 \x47\x49\x46\x38\x39\x61 \x00\x00\x3b
   jpg y 20000000 \xff\xd8\xff\xe0\x00\x10 \xff\xd9
   jpg y 20000000 \xff\xd8\xff\xe1 \xff\xd9
   jpg y 20000000 \xff\xd8 \xff\xd9

uncomment all of the ones you need.
create a directory
mkdir special
 in you home directory (/home/username/special)
then type in a terminal
foremost -t all -o /home/yourname/speical

what did I type??
Foremost the command, -t = type -o = output area.

Revision history for this message
Joker Wild (lajjr-deactivatedaccount) said :
#8

JJ,

If you see nothing in the directory try.

foremost -t all -i /dev/sda1 /home/yourname/special

What did I type??

foremost command, t = type, -i input, -o output (with this command you don't need to first make a directory sorry about that)

Regards,
Leo Jackson

Can you help with this problem?

Provide an answer of your own, or ask JJ for more information if necessary.

To post a message you must log in.