Error when getting information for a file input/output error.
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Error when getting information for a file input/output error.
Hi.
I was moving a mp4 file from partition1 to the partition2, I leave the machine and when I returned the computer was turn-off. I don't know why.
I start again the PC and when I try to open partition2 the windows folder is empty with a message told me:
Error when getting information for a file "/media/partition2/namefile.mp4" input/output error.
I try to delete that "namefile.mp4" but was impossible, from a terminal command line not worked also from Midnight Commander not worked, even attempted from a LiveCD but with the same result. I have a lot of data in that partition. Is will be possible recover the partition or delete that particular file without lose all content of partition?
I discover it this:
When I open the partition2 whit File Manager (Thunar) in the Dir-bar I type a direction of a SubFolder (example: /media/partition2/VideoMusic) and I can read and play the files in that folder, only "/media/partition2" in not readable.
Well, apparently the problem is the file namefile.mp4 in the main directory of the partition2.
I have had similar problems when power is lost while writing a large file. Some data is written wrong and may wipe out everything, or it may be confined to the single file.
I would, BEFORE writing anything else to that drive, do a backup of everything that can still be accessed. Once that is done, reformat the filesystem then restore what was removed.
<b>computersavvy:</b>
Apparently the problem is only in the file because from a terminal or using the prog. Midnight-Commander I can access the other .mp4 files in the main directory (partition2). No proble to play the files with VLC.
When I try to rename, delete or move that file I get the same error message. Thank you for your reply.
<b>ondoho:</b>
I already tried to delete it or move it as root but I did not try to run fsck, I will try and then tell you if it worked. Thank you for your answer.
I did not try to run fsck, I will try and then tell you if it worked.
IIRC fsck does not repair by default.
Read its man page.
If you repair, make a backup of the raw partition data first.
Save all output to show it to us.
IIRC fsck does not repair by default.
Read its man page.
If you repair, make a backup of the raw partition data first.
Save all output to show it to us.
A backup is complicated due to the number of long files.
I will continue testing with fsck, so far I have not been successful.
Nothing happened with fsck.
Now I am thinking, partition 2 is storage only.
I know it still has an NTFS file system but it is not the partition the operating system is on.
fsck is useful in this case?
Actually it depends. In this case fsck uses ntfsfix which can only repair minor problems. Since the partition is mountable and you only have trouble with a single file probably not but I've never encountered this problem. The only way the it might be fixed is if you can run chkdsk from a Windows system.
Nothing happened with fsck.
Now I am thinking, partition 2 is storage only.
I know it still has an NTFS file system but it is not the partition the operating system is on.
fsck is useful in this case?
I would not use fsck on an ntfs partition. If the windows system can access that partition I would recommend the native chkdisk instead.
AFAIK Linux access to ntfs filesystems is still 100% reverse engineered and may not be 100% the same as the native tools.
No way Jose.
I tried everything I know and I always get the same error. The "problem file" has a number in parentheses in his name and
when I try to delete, rename or move it shows me this error: Bash: Syntax error near unexpected token `(`
To make a chkdisk I have to move the HD to a computer with VirtualMachine and install some Windows.
Thanks to all for a help.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800
Rep:
Quote:
Originally Posted by bla5
No way Jose.
I tried everything I know and I always get the same error. The "problem file" has a number in parentheses in his name and
when I try to delete, rename or move it shows me this error: Bash: Syntax error near unexpected token `(`
You haven't specified the name of the file you're trying to move/delete but the parentheses are confusing bash as it attempts to parse your command line.
Try enclosing the troublesome file name inside single quotes to keep bash from interpreting whatever that character is, say:
Code:
$ mv '/mnt/disk1/(strange)-file-name' /mnt/disk2
You could also try escaping that open parenthesis character -- using: \( -- but that may not be the only character that bash will wind up (mis)interpreting as having a special significance. You might need to escape additional characters. I find that enclosing the mess in single quotes works the vast majority of the time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.