lkml.org 
[lkml]   [1997]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Unerasable file
From
Date
Andi Gutmans <andi@vipe.technion.ac.il> writes:

|> I have an unerasable file. fsck doesn't help,a nd I even tried to make a
|> little cproggy that will call unlink() (who knows what checks rm does
|> before). I still can't erase it.
|> Here's some info:
|> 22:11 vipe /bin.old# ls -ldg .
|> 1 drwxr-xr-x 2 bin bin 1024 Nov 1 19:28 ./
|> 22:11 vipe /bin.old# ls -lg csh
|> 2048 cr-x-wSr-x 1 24 20480 0, 1 Jan 1 1970 csh

This file was probably the result of a crash. Since chattr only works on
plain files (IMHO this should be fixed some day) you won't be able to
remove the immutable flag from this inode. You'll have to use debugfs(8)
to manually clear out the inode, then fsck can fix the rest.

--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.049 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site