You are not logged in.

#1 2012-08-16 21:01:35

chmurli
Member
Registered: 2008-12-23
Posts: 50

[solved] how to fix broken files on sd card? [Input/output error]

Hi, I use raspbarry pi (witch arch arm linux) and got problem with sd card.

$ ls -l /opt/webmin/
ls: cannot access /opt/webmin/help.cgi: Input/output error
ls: cannot access /opt/webmin/cluster-webmin: Input/output error
ls: cannot access /opt/webmin/perlpath.pl: Input/output error
total 4.0K
d????????? ? ?    ?       ?            ? cluster-webmin
drwxr-xr-x 3 root root 4.0K Jul 11 13:23 firewall
-????????? ? ?    ?       ?            ? help.cgi
-????????? ? ?    ?       ?            ? perlpath.pl

As you can see my sd card has probably hardware issue (whitch is weird because this card is almost brand new). I cannot delete these files or do anything.
Anyway is there any way to fix it? Or map this part of sd card as unusable (something like badsectors on harddrive)?

Last edited by chmurli (2012-08-19 08:04:06)

Offline

#2 2012-08-17 11:23:01

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 430

Re: [solved] how to fix broken files on sd card? [Input/output error]

First of all, take a look here.
http://elinux.org/RPi_VerifiedPeripherals#SD_cards

Even so, this could really be a hardware issue. On the card and on the mainboard too. Try to test it with another card too.


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#3 2012-08-17 12:52:25

chmurli
Member
Registered: 2008-12-23
Posts: 50

Re: [solved] how to fix broken files on sd card? [Input/output error]

My sd card was working perfectly for about 3 weeks before this error happened. This issue happens only on this 1 directory. Rest of file system is ok, raspi works as usually.
Is there any way to delete these files and mark this "region of sd card space" as unusable (on regular harddrive you can do this with badsectors).

Offline

#4 2012-08-19 08:07:24

chmurli
Member
Registered: 2008-12-23
Posts: 50

Re: [solved] how to fix broken files on sd card? [Input/output error]

ok, it was not hardware error but in filesystem. I ran fsck on unmouted filesystem and all error had been fixed.

Offline

Board footer

Powered by FluxBB