File transfer stopped, now can't open any of the files
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Not sure if it could help you now or have prevented the problem in a power failure?
I do have a couple good back up power supplies from thrift stores (similar to) but I use them for my Pi and other projects. Maybe I should put one back together? Good luck!
I'll have to remember that... I just hope, for now, that I can get these files back. I seriously don't see what could've caused this. Maybe corrupted headers or something. The "files" are still there and named properly, right where they were. There HAS to be a way to get them back.
and here's ls -lc | tail inside the Music folder, all unavailable to open
Code:
[matthewreichert@localhost Music]$ ls -lc | tail
-rw-r--r--. 1 matthewreichert matthewreichert 6483968 Jul 18 18:03 Stardust ft Daft Punk - Music Sounds Better With You (GTA 5 Soundtrack).mp3
-rw-r--r--. 1 matthewreichert matthewreichert 4804608 Jul 18 18:03 The Company Band - El Dorado.mp3
...
It appears that you had copied/moved all those files into that "Phone Transfer" tree on Monday evening in preparation for copying them to your phone. Do you know if any of them were good after that (You said, "uhhhh... Monday or Tuesday...")? It's looking like not all of the buffered data got flushed to disk, but, if the transfer and power outage didn't occur until Tuesday, I don't know what would cause the dirty buffers to be held in memory for that long. You can look at the ctimes of the files on your Android phone to see just when you actually did the transfer and when it aborted due to the power failure ("ls -lctr | tail").
Your best bet at this point would be to shut that system down, copy an image of the entire partition or LVM volume to another disk (which you undoubtedly do not have right now), and then run photorec on that image to see what files can be recovered, perhaps from where they had been prior to moving them to this location. Anything you do with that system prior to making the image decreases the chances for a successful recovery, so shut it down now.
I just tried to open one of the images and immediately checked /var/log/messages. Here's what appeared:
Those messages all appear to be from a system startup and are unrelated to anything you were doing with those files. Since you are not getting any "I/O Error" messages from processes trying to read the files, I wouldn't expect anything to be logged.
It appears that you had copied/moved all those files into that "Phone Transfer" tree on Monday evening in preparation for copying them to your phone. Do you know if any of them were good after that (You said, "uhhhh... Monday or Tuesday...")? It's looking like not all of the buffered data got flushed to disk, but, if the transfer and power outage didn't occur until Tuesday, I don't know what would cause the dirty buffers to be held in memory for that long. You can look at the ctimes of the files on your Android phone to see just when you actually did the transfer and when it aborted due to the power failure ("ls -lctr | tail").
Your best bet at this point would be to shut that system down, copy an image of the entire partition or LVM volume to another disk (which you undoubtedly do not have right now), and then run photorec on that image to see what files can be recovered, perhaps from where they had been prior to moving them to this location. Anything you do with that system prior to making the image decreases the chances for a successful recovery, so shut it down now.
I actually do have that. I have that Passport HDD I mentioned before. I just have to learn how to do what you just said...
Quote:
Originally Posted by rknichols
Those messages all appear to be from a system startup and are unrelated to anything you were doing with those files. Since you are not getting any "I/O Error" messages from processes trying to read the files, I wouldn't expect anything to be logged.
Well I had opened /var/log/messages before I tried to open that picture and those entries were not there. I tried to open it and immediately opened messages again and those new entries had just been added.
Oh, so essentially you're suggesting putting the files back on the SD card from which they came? That is impossible - that card is bricked. After I was done removing the files and putting them on this computer, I formatted the disk, or attempted to, so my roommate could use it for her phone. The format failed and the card is toast. Just keeps getting better and better.
I actually do have that. I have that Passport HDD I mentioned before. I just have to learn how to do what you just said...
It appears that the filesystem is in an LVM volume, /dev/mapper/{...something...}. You can use the df command to see what that "...something..." is. Then, the filesystem type on that Passport HDD is important. If it's some variety of FAT, the maximum file size is 4GB, so you can't store a full filesystem image as a file there. Got to take this one step at a time, as there are too many alternatives.
Quote:
Well I had opened /var/log/messages before I tried to open that picture and those entries were not there. I tried to open it and immediately opened messages again and those new entries had just been added.
Those messages are all from routine actions of systemd running in the background. They are mot related to anything you were doing at the time.
Not even the top two? Where it says Brightness and vignette_sharpness? Those are image properties
Sorry, didn't notice those in the clutter. Still, all that might indicate is that the image file is corrupted. You already knew that from the "file" command reporting the file type as, "data". So, it's perhaps relevant, but still not meaningful.
Oh, so essentially you're suggesting putting the files back on the SD card from which they came? That is impossible - that card is bricked. After I was done removing the files and putting them on this computer,...
Just saw that. So that's what you did on Monday evening. Do you know that the files were all good after transferring them to this computer? Somehow I doubt that you verified 27GB of files between Monday and Tuesday. It's looking like the files either weren't read properly from that bad SD card or the data blocks for some reason never got flushed out to disk on your computer. Neither of those scenarios gives any chance for recovery now. In my previous post I was hoping the files had been moved from some other directory on this computer and that there might be some hope of finding the old data blocks. Now I see that's not the case. I don't see much point in attempting forensic analysis of what's on your disk now. What you see now is what you've got.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.