LinuxQuestions.org
Register a domain and help support LQ
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 01-30-2010, 10:42 PM   #1
squirtmph
Member
 
Registered: Oct 2009
Location: PDX, OR
Distribution: Ubuntu 8.04 LTS
Posts: 30

Rep: Reputation: 15
Question Delete file, And i can't get it back


Hi people i have huge question, after so many times deleting staff for mistake.
I am unable to get it back from my external hard drive.
can any body please help me.
I use Ubuntu 8.04 LTS
and I have all my staff on external hardrive.
Quote:
Z:----> Media -----> FreeAgent Drive
After delete I knew was her
Quote:
/acousticmetal[1]/
, I did all the search I can possible think of.
and i dint have any good look
can any one please help me out on this issue?.


thank you!

Last edited by squirtmph; 01-30-2010 at 10:44 PM.
 
Old 01-31-2010, 01:37 AM   #2
GoinEasy9
Member
 
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: siduction, Fedora 19, openSUSE Tumbleweed
Posts: 379
Blog Entries: 1

Rep: Reputation: 46
This link will give you some info, they discuss using Foremost and PhotoRec to undelete files.
Do you have a trash file? Could you have sent the files there? Might be worth checking.
 
0 members found this post helpful.
Old 01-31-2010, 01:52 AM   #3
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Quote:
Originally Posted by GoinEasy9 View Post
Do you have a trash file?
Yes, Ubuntu has a Trash Bin, and all deleted files are sent there. One must manually select "Empty Trash" to permanently remove them from the HDD.

It's in the right corner of the bottom panel, btw- open it and restore your files to their original location.
 
0 members found this post helpful.
Old 02-03-2010, 11:15 PM   #4
squirtmph
Member
 
Registered: Oct 2009
Location: PDX, OR
Distribution: Ubuntu 8.04 LTS
Posts: 30

Original Poster
Rep: Reputation: 15
External hard drive

My delete file was on external hard drive not local.
and yes i did check recycle bin, but this folder it's empty too, so where everything go? on external hardware delete files!
 
Old 02-13-2010, 06:40 PM   #5
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
Wink How about the .1000

Quote:
Originally Posted by squirtmph View Post
My delete file was on external hard drive not local.
and yes i did check recycle bin, but this folder it's empty too, so where everything go? on external hardware delete files!
I have found my deleted files on the .1000 folder hidden in the root folder of the USB drive.
a sub-folder to this is "files" ...
if you are using the nautilus then is a matter of going into your USB root folder and using the key conbination CTRL-> H. Or selecting view from the top menu and putting a checkmark on "Show hidden files".
 
Old 02-17-2010, 08:57 PM   #6
squirtmph
Member
 
Registered: Oct 2009
Location: PDX, OR
Distribution: Ubuntu 8.04 LTS
Posts: 30

Original Poster
Rep: Reputation: 15
I am using Gnome and I have try....... browsing hiding files too, and not luck

But thank you for reading my post.
 
Old 02-18-2010, 06:32 AM   #7
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
It really depends on how did you deleted your files.

I think in nautilus the delete actually moves the files to recycle bin. They should be in hidden folder on that drive.

But if you used command line to do so (ie. bash script, mc, del, ...) then the files are gone. Sometimes they can be recovered. If the given part of drive have not yet been overwritten then use some recovery tool. Which one depend on which filesystem was on that external drive.
 
Old 02-18-2010, 05:20 PM   #8
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
Red face my friend ...

Just this week I was working on a hard drive that a friend of mine messed up by mistake using his Windoze 7 (ntfs).
He could not see the drive on that operating system, but he has seen some miracles that I have been able to pull off in Linux for other people.
His major concern were his Wife's pictures. He told me that the dog's house had a leaky roof and he wanted to get back into the main house.
After lecturing him about the importance of "backing up" I took the drive home.
I made an image of the drive with "dd" and used foremost to recover his pictures from the image.
Good thing I did the image, since, upon his adamant argument that he has found a Windoze program that would do the job, he ended up wiping the data from the original drive.
Anyway, the point is that foremost will recover several types of files from most file systems, even those files that you think are gone; as my friend soon found out "the hard way"....
He made the mistake of giving the 33,500 images that I recovered to his wife to pick the ones that she wanted to print.
Imagine his surprise when he found himself back in the dog house after his wife saw "artful" pictures of female bodies.
What can I say, foremost is that good, and Linux rocks....

BTW
I made an image called samsung.iso with dd on a 1 Tb Hard drive mounted as /mnt/sde1.
Then I created the foremost folder on the same drive (The drive belongs to my friend)

then
foremost -v -o /mnt/sde1/foremost -i /mnt/sde1/samsung.iso

Several subfolders will be created on the output folder, such as jpg, bmp, exe, zip, rar ect....

The files will be numbered since foremost does not know the original file name....

-o = output file
-i = input file
-v = verbose
 
Old 02-25-2010, 11:59 PM   #9
squirtmph
Member
 
Registered: Oct 2009
Location: PDX, OR
Distribution: Ubuntu 8.04 LTS
Posts: 30

Original Poster
Rep: Reputation: 15
I just did DELETE
AND I AM USING Z: LOCATION
How can I find this file ----> They should be in hidden folder on that drive.
and Thank you Linux01

for your post, clever post
 
Old 02-26-2010, 12:26 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
linux01: You mean that foremost doesn't distinquish between accidentally deleted files and intentionally deleted ones?
 
Old 02-26-2010, 01:31 AM   #11
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 797

Rep: Reputation: 43
This may help.

Were you logged in as root or another user when you deleted the files? If so try looking in that user's home directory for a .Trash folder. Also try /home.Trash-0.
 
Old 03-01-2010, 05:06 PM   #12
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
It's a Linux blasphemy but .....

I use a dual boot computer at home and/or M$ at work. Since the partition on my USB disk is FAT when you view the drive in Windows you get to see the .1000 folder.
On Linux look for the folder .Trash hidden in your home folder.
In Ubuntu I login as Linux01, so the path to my trash folder is /home/Linux01/.Trash.
As stated before using Nautilus, navigate to your home --> Linux01.
Do the Ctrl-->h or select the "show hidden files" menu selection from the view menu.
When you try to undelete, you MUST have the drive mounted in the location that it was when the file was deleted.
To get there from the command line do the cd /home/Linux01.
then ls -al.
you should be able to view the .Trash folder

Last edited by linux01; 03-01-2010 at 05:17 PM.
 
Old 03-01-2010, 05:14 PM   #13
linux01
LQ Newbie
 
Registered: Aug 2005
Posts: 20

Rep: Reputation: 1
It does not care ....

Quote:
Originally Posted by jschiwal View Post
linux01: You mean that foremost doesn't distinquish between accidentally deleted files and intentionally deleted ones?
foremost recovers everything it can (based on the foremost.conf contents).
 
Old 03-02-2010, 12:19 PM   #14
squirtmph
Member
 
Registered: Oct 2009
Location: PDX, OR
Distribution: Ubuntu 8.04 LTS
Posts: 30

Original Poster
Rep: Reputation: 15
Thank you very much everyone for helping me out.
I really appreciate all the help from everyone
 
  


Reply

Tags
drive, external, hard, hardware, ubuntu804


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
file from install ffmpeg conflicts w/file from package fmpeg-libs: which to delete? ybalazs Linux - Software 0 10-27-2009 02:21 AM
Upload file to ftp server -vsftp- but can not delete or change the file once uploaded murattas6 Linux - Server 2 06-26-2009 07:00 AM
how to delete last number/word of a file and incude file count at the end of the chennaiguy Linux - Newbie 2 02-18-2008 10:08 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 03:46 AM


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