Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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):
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.
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.
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
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).
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.