Re: Unremovable file

2001-12-28 Thread Statux

> c---r- 1 8224 8224 32, 32 Jan 30 1987 CVS

see if a "stat CVS" works, or even just an "ls -li CVS" which will tell 
you what inode it is.

>From this point, knowing the inode, I would fire up debugfs (after reading 
the manual for it first, of course).

# debugfs -w /dev/hda1

or whatever the partition in question is. The -w option tells it to allow 
writing operations on the partition. Typically you'll want to have the 
partition unmounted if possible, but always run an fsck on the partition 
after (this means reboot if necessary). I guess you could just "touch 
/forcefsck" before rebooting if this is the / partition.

Inside debugfs, you'll issue something like the "mi " command where X 
is the inode of the offensive file. Zero the link count and give the dtime a 
non-zero value (something higher than the mtime, atime, and ctime, I'd 
say). Then quit and go about getting the partition rechecked.

I used to use debugfs all the time. I would typically use it to relink 
deleted files to the partition again. Works for most recently deleted 
files up to a certain size :)

> # lsattr
> lsattr: No such device While reading flags on ./CVS

No biggie. I get that too on my /dev/sndstat device which for some reason 
isn't being used anymore (must have been written out of the recent 
kernels).

NOTE: This is how debugfs used to work to the best of my memory. Check the 
manual for changes :)

-Statux




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Unremovable file

2001-12-28 Thread Leonard den Ottolander

 Ok, let's try again (:

Hi,

 After trying to build mozilla-0.9.6 on my RH 7.0 system I am having problems
with filesystem corruption. Not sure if this is due to the updates I did just
before, the building process itself, or the fact that I killed an mc ftp 
connection from ftp.redhat.com.
 Anyway, after a couple of filesystem checks I am now stuck with a file that 
has somehow changed into a device, and is irremovable. The file being
/usr/src/redhat/BUILD/mozilla/security/manager/pki/resources/CVS, but this is
not really relevant. I mounted the filesystem on another system and get the 
following results after cd-ing to the appropriate dir (similar results on the
original system):
# ls -l
c---r- 1 8224 8224 32, 32 Jan 30 1987 CVS
# lsattr
lsattr: No such device While reading flags on ./CVS
# chmod 777 CVS
chmod: CVS: Operation not permitted
# chown root.root CVS
chown: CVS: Operation not permitted
 Before I start screwing around with ext2ed I would appreciate it if somebody
could tell me what I should do, as to not corrupt this filesystem any more. 
Thanx.

Bye,

Leonard.




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list