tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: kdea@alpine-la.com
Subject: cannot remove corrupt file
Date: Wed, 02 Apr 2003 13:50:21 -0800	[thread overview]
Message-ID: <OF05D829E0.2D122827-ON88256CFC.0077AE60-88256CFC.0077F7A9@alpine-la.com> (raw)

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


                 reply	other threads:[~2003-04-02 21:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox