cannot remove corrupt file

From: kdea@alpine-la.com
Date: Wed Apr 02 2003 - 16:50:21 EST


Hello Managers,

We had a crash recently while a user was editing a file, resulting in a
corrupt file that cannot be viewed, "ls -la", or delete. I've already
unmounted it and ran fsck on it, and it shows some unreadable blocks:

CANNOT READ: BLK 65923744
CONTINUE? [yn] y

THE FOLLOWING DISK SECTORS COULD NOT BE READ: 65923746, 65923749,

When I ran:

# icheck -b 65923746 /dev/rrz5c
/dev/rrz5c:
65923746 arg; frag 1 of 8, inode=7776704, class=inodes 7776704-7776768
files 303551 (r=302724,d=719,b=0,c=0,sl=108,sock=0,fifo=0)
used 22918478 (i=7362,ii=969,b=2795861,f=484942)
free 11855350 (b=1480423,f=11966)
missing 37

I tried to remove the offending inode using clri, but I get an i/o error.

# clri /dev/rrz5c 7776704
clearing 7776704
clri: /dev/rrz5c: I/O error

Is there anything I can do next to delete the file, and mark the bad
sector?
The machine is an DS20 running 4.0f pk 7. The filesystem is ufs.

Thanks,

Kevin

--
Kevin Dea
UNIX System Administrator
Alpine Electronics Research of America


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:14 EDT