LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-04-2007, 03:35 PM   #1
TuxLives
Member
 
Registered: Sep 2003
Location: Tacoma, WA
Distribution: Mandriva all the way
Posts: 145

Rep: Reputation: 15
Log of deleted/moved files


I am running a dual boot system with a shared file area. I am not sure what happened, but I cannot find some photos that I copied (I think I copied anyway) onto my machine.

Is there a log of these kinds of things that I might be able to look at to see if and where these files where created/deleted/etc?
 
Old 09-04-2007, 03:37 PM   #2
TuxLives
Member
 
Registered: Sep 2003
Location: Tacoma, WA
Distribution: Mandriva all the way
Posts: 145

Original Poster
Rep: Reputation: 15
I look at the meta data in the thumbnail, but the directory it references is not there????
 
Old 09-04-2007, 07:30 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you're not sure whether you actually copied the files (and it was reasonably recently), have you tried grep'ing your command history? Substitute a real filename in the following and you should be able to see if you copied the files (depending on your history size and the number of commands used since then):
Code:
history | grep 'filename'
 
Old 09-04-2007, 08:12 PM   #4
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 515

Rep: Reputation: 66
Try coping the files again, but this time when it is done, unmount the drive. Sometimes, Linux likes to cache files and you have to unmount the drive in order for them to be transferred properly.
 
Old 09-05-2007, 10:18 AM   #5
TuxLives
Member
 
Registered: Sep 2003
Location: Tacoma, WA
Distribution: Mandriva all the way
Posts: 145

Original Poster
Rep: Reputation: 15
I'll try both of those and see what I get. I may have yanked the SD card out (not normal for me, but then again I don't normally lose things either).

What I was able to do was take the source (SD card) from which the files had been moved (IE: Copied and deleted from) and recover them using a piece of windows freeware (I'd love a linux gui app to do this).

I still want to learn how to do this in linux though.

Last edited by TuxLives; 09-05-2007 at 10:23 AM.
 
Old 09-05-2007, 10:36 AM   #6
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by angryfirelord View Post
Try coping the files again, but this time when it is done, unmount the drive. Sometimes, Linux likes to cache files and you have to unmount the drive in order for them to be transferred properly.
As an easier way of doing this, rather than unmounting and then remounting, try running sync from a command line - it flushes all the disk caches and forces the data to be written. It should have the same effect as unmount/mounting, but be quicker

edit:
Quote:
Originally Posted by TuxLives View Post
What I was able to do was take the source (SD card) from which the files had been moved (IE: Copied and deleted from) and recover them using a piece of windows freeware (I'd love a linux gui app to do this).
You may want to look into photorec (http://www.cgsecurity.org/wiki/PhotoRec) for recovering images. foremost is also useful for file recovery.

Last edited by pwc101; 09-05-2007 at 10:40 AM.
 
Old 09-05-2007, 12:13 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
try running sync from a command line - it flushes all the disk caches and forces the data to be written.
Off topic, but....
You need to be careful with this, I have known sync foul things up:
Try downloading a big file with your browser. Issue sync in a terminal window. The download is written to disk, and stops before it has finished. Not good.
 
Old 09-06-2007, 11:30 AM   #8
TuxLives
Member
 
Registered: Sep 2003
Location: Tacoma, WA
Distribution: Mandriva all the way
Posts: 145

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pwc101 View Post
As an easier way of doing this, rather than unmounting and then remounting, try running sync from a command line - it flushes all the disk caches and forces the data to be written. It should have the same effect as unmount/mounting, but be quicker

edit:You may want to look into photorec (http://www.cgsecurity.org/wiki/PhotoRec) for recovering images. foremost is also useful for file recovery.
Cool beans. I'll take a look at this app.

Thanks
 
  


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
/var/log files deleted causing no GUI display for administration teacmalaysia Linux - Software 6 06-05-2006 10:33 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
recent attack via phpBB, log files deleted? accessed file system outside /home/ enzo250gto Linux - Security 8 12-17-2004 01:51 PM
Log Files Have Been Deleted Crashed_Again Linux - Security 4 02-02-2003 12:37 PM
Moved log files magyartoth Linux - General 1 06-04-2002 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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