Click to See Complete Forum and Search --> : Wonky file attributes.
techwise
12-03-2009, 02:51 PM
I have a file that I can not manipulate, delete, read, copy...
When I do an ls -l on the file the following is the output:
$ ls -alsh
ls: cannot access 254b896613e1a402af8914edcf369191.png: Input/output error
total 1020K
1016K drwx------ 2 michael michael 1012K 2009-12-03 13:35 .
4.0K drwx------ 5 michael michael 4.0K 2009-07-08 22:01 ..
? -????????? ? ? ? ? ? 254b896613e1a402af8914edcf369191.png
Any ideas?
bs_texas
12-03-2009, 08:24 PM
Can you 'chmod 777' it?
bs_texas
12-03-2009, 09:11 PM
You might try to 'touch' it also.
$touch --help
bs_texas
12-03-2009, 09:13 PM
I don't know much about inodes, but you might research that some as well.
techwise
12-04-2009, 02:11 PM
Thanks BS.
All logical ideas. Ive tried them. No touch, no chmod. I know the inode but any similar action on the inode gives the same result:
# find . -inum 264241 -exec rm -i {} \;
find: `./254b896613e1a402af8914edcf369191.png': Input/output error
Im wondering if this file somehow spans or encroaches on a bad block on the disk but SMART reports no errors.
Mike
P.S. You've slowed down on the folding. Cmon, I need the competition.:)
klackenfus
12-04-2009, 02:18 PM
I had this happen once. I was able to delete the file by booting off of a live CD. I'm not sure why that worked but it did.
bs_texas
12-04-2009, 04:03 PM
Thanks BS.
P.S. You've slowed down on the folding. Cmon, I need the competition.:)
I'm at the mercy of my dial-up connection. The last couple of days have been pretty good. But, if I lose the connection and it re-connects to a different modem in the modem pool, I may have a few days of bad uploads. I hate it when I get the old "Unit X's deadline has passed." I've probably had 10 or more of those since I got back.
techwise
12-07-2009, 06:18 PM
I had this happen once. I was able to delete the file by booting off of a live CD. I'm not sure why that worked but it did.
I thought of this too and its a good idea. So I am know running from Knoppix with my home partition mounted "rw" and the result is unfortunately the same.
Anyone with any other ideas.
EDIT: After rebooting into my OS i noticed the following errors:
/dev/sda3 has been mounted 31 times without being checked, check forced.
/dev/sda3: Inode 264241 is in use, but has dtime set. FIXED.
/dev/sda3: Inode 264241 has imagic flag set.
/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck died with exit status 4
Im gonna research this imagic flag now....
Ok, Im getting the feeling that this is what I get for going against my better judgement and using ext4 on my home partition instead of xfs. In all the years I have used xfs I have never had one fs issue. In contrast to ext and reiser which have given me trouble.
I hope I can make it to April and Ubuntu 10.4 before I have to upgrade my system.