Re: How do I remove the files with the following characteristics? (fwd)

Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Sun, 19 Dec 1999 23:43:39 -0300


Robert Johannes <rjohanne@rjohanne-host.dsl.visi.com> said:
> I sent the following message to linux-admin, but nobody seems to know the
> solution to it. So please, if any one here can help, I would be very
> appreciative. I've even tried using lsattr and chattr as suggested by
> someone on that list, to no avail. When I do a file on these files, file
> reports that they are setuid and setgid sticky block, character or socket
> special devices. Is there any way to remove them?

You might try first try e2fsrogs-1.18's fsck(8), it chatches (and
deletes/cleans flags) on severely broken filesystems better than before.

Use debugfs(8) or some such. First unmount the partition (or remount
(mount(8)) read-only, at least), run debugfs on it and rm the files. Then
run fsck(8) with -f on it for good luck. Be _extremely_ careful.

[...]

> Here is an 'ls -l' of the /lost+found dir:
>
> total 69392975904
> ?r-S--x-w- 1 11785 12337 1702132066 Dec 19 01:54 #131074
> ?r----x--x 1 11315 12588 824980273 Feb 22 1996 #131078

[etc]

This looks like rather massive screwup of the filesystem. What kernel are
you running, on what CPU? Compiled 2.3.x on i686 with egcs-1.1.2 or
gcc-2.95.2, by any chance?

I'd consider reinstalling (or at least "refreshing") your installation.

My condolences.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/