LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-20-2016, 02:32 PM   #1
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Rep: Reputation: Disabled
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?
 
Old 07-20-2016, 06:05 PM   #2
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
so... am I screwed?
 
Old 07-20-2016, 06:40 PM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,004

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
it may just be a permission problem, what does the stat command give for the files/folder on the computer?
 
Old 07-20-2016, 06:51 PM   #4
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
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: -
 
Old 07-20-2016, 06:54 PM   #5
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-21-2016, 05:28 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,004

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
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?
 
Old 07-21-2016, 06:54 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Wasn't fsck utility invented to fix problems like this?
 
Old 07-21-2016, 07:54 AM   #8
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
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 View Post
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?
 
Old 07-21-2016, 07:55 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
What output did you get from fsck?
 
Old 07-21-2016, 07:56 AM   #10
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
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.
 
Old 07-21-2016, 08:27 AM   #11
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
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?

Last edited by Operator; 07-21-2016 at 08:32 AM.
 
Old 07-21-2016, 09:58 AM   #12
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,004

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
Sounds like they are fubar'ed, if you have backups it might just be easier to restore from them.
 
Old 07-21-2016, 10:06 AM   #13
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-21-2016, 10:35 AM   #14
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,004

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
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.
 
Old 07-21-2016, 10:40 AM   #15
Operator
Member
 
Registered: Aug 2015
Location: Virginia
Distribution: RHEL 5, Fedora 22
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
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.
 
  


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
XFCE open directory as root, drag and drop file transfer alternate to SFTP greenace92 Debian 3 03-31-2016 03:13 AM
[SOLVED] ssh/sftp/scp file transfer of huge files ilesterg Linux - Software 11 11-08-2015 11:15 PM
[most secure, open source, client/server file transfer program] Synesthesia Linux - Software 5 11-28-2005 08:20 PM
Can't resume file transfer on files larger than 1 gig dalesan Linux - Newbie 2 10-11-2005 11:50 AM
need a perlscript to read from a text file and transfer files via ftp cccc Linux - Networking 2 02-21-2004 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration