LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File transfer stopped, now can't open any of the files (https://www.linuxquestions.org/questions/linux-software-2/file-transfer-stopped-now-cant-open-any-of-the-files-4175585149/)

Operator 07-20-2016 02:32 PM

File transfer stopped, now can't open any of the files
 
I was transferring files from my computer (Fedora Linux 22) to my Android phone and the power went out. I can see all the files in the folder on the computer and some on the phone as well, with their names and subdirectories, but I can't open any of them, and I have no idea where to start. It was about 27GiB. I wouldn't think every single one of them would suddenly be corrupted due to the transfer interruption, but that appears to be so. What do?

Operator 07-20-2016 06:05 PM

so... am I screwed?

Keith Hedger 07-20-2016 06:40 PM

it may just be a permission problem, what does the stat command give for the files/folder on the computer?

Operator 07-20-2016 06:51 PM

Code:

  File: ‘/home/username/Documents/Phone transfer’
  Size: 4096              Blocks: 8          IO Block: 4096  directory
Device: fd02h/64770d        Inode: 6029888    Links: 15
Access: (0755/drwxr-xr-x)  Uid: ( 1001/username)  Gid: ( 1001/username)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2016-07-20 13:49:32.282842348 -0400
Modify: 2016-07-18 18:21:02.768617319 -0400
Change: 2016-07-18 18:21:02.768617319 -0400
 Birth: -

That's for the folder they're in, not the folders themselves... here's a subfolder.

Code:

  File: ‘/home/username/Documents/Phone transfer/Music/’
  Size: 12288            Blocks: 24        IO Block: 4096  directory
Device: fd02h/64770d        Inode: 7078190    Links: 58
Access: (0755/drwxr-xr-x)  Uid: ( 1001/username)  Gid: ( 1001/username)
Context: unconfined_u:object_r:user_home_t:s0
Access: 2016-07-20 13:49:35.434665539 -0400
Modify: 2016-07-18 18:04:21.000000000 -0400
Change: 2016-07-18 18:04:21.771726342 -0400
 Birth: -


Operator 07-20-2016 06:54 PM

What's interesting is the files that made it to the phone display with no problem. The files that remained on the computer are all inaccessible, even when I move them to the phone now.

Keith Hedger 07-21-2016 05:28 AM

Have never seen this:
Code:

... Context: unconfined_u:object_r:user_home_t:s0 ...
So could be a problem, can you copy a file out of the damaged folder ( maybe as root ) and open it from a new location?

Emerson 07-21-2016 06:54 AM

Wasn't fsck utility invented to fix problems like this?

Operator 07-21-2016 07:54 AM

Quote:

Originally Posted by Keith Hedger (Post 5579248)
Have never seen this:
Code:

... Context: unconfined_u:object_r:user_home_t:s0 ...
So could be a problem, can you copy a file out of the damaged folder ( maybe as root ) and open it from a new location?

Yes, I can interact with the files just like they aren't damaged. I copied them to the phone anyway (some of them) to see if that would do anything and no go. I'll have to try copying as root when I get home...
Quote:

Originally Posted by Emerson (Post 5579267)
Wasn't fsck utility invented to fix problems like this?

That's what I thought, but fsck didn't seem to do much... maybe I used it incorrectly?

Emerson 07-21-2016 07:55 AM

What output did you get from fsck?

Operator 07-21-2016 07:56 AM

Quote:

Originally Posted by Emerson (Post 5579299)
What output did you get from fsck?

Man, right now I don't even recall... got sick at work yesterday and left early, don't remember much about when I was home. I can run it again tonight and give you output if that'd be okay.

Operator 07-21-2016 08:27 AM

What's also interesting is the output of 'file' on any of the images just lists it as 'data.' As though they're encrypted... but if they were encrypted, how come moving them to the phone worked fine until the outage, but now none of them are good?

Keith Hedger 07-21-2016 09:58 AM

Sounds like they are fubar'ed, if you have backups it might just be easier to restore from them.

Operator 07-21-2016 10:06 AM

I don't. This was supposed to BE the backup. But why would this all just... stop... I would think maybe the file that was in the process of being transferred would be effed, not the ENTIRE FOLDER.

Keith Hedger 07-21-2016 10:35 AM

The power outage has probably corrupted the underlying filesystem.
Have a look here:
https://docs.fedoraproject.org/en-US...ing_Files.html

Looks like this could be your problem, might have helped if you had said you was on SELinux.

Operator 07-21-2016 10:40 AM

Quote:

Originally Posted by Keith Hedger (Post 5579368)
The power outage has probably corrupted the underlying filesystem.
Have a look here:
https://docs.fedoraproject.org/en-US...ing_Files.html

Looks like this could be your problem, might have helped if you had said you was on SELinux.

Baby steps. I'm a Ford truck mechanic, and I "know more than the vast majority" of people with computers, but not all... clearly not what needs to be mentioned apparently.


All times are GMT -5. The time now is 09:44 AM.