lkml.org 
[lkml]   [1999]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How do I remove the files with the following characteristics? (fwd)
sent again as it looks like you didn't get it.

-d

--

---------- Forwarded message ----------
Date: Sun, 19 Dec 1999 14:33:01 -0800 (PST)
From: David Ford <david+nospam@killerlabs.com>
Reply-To: David Ford <david+validemail@killerlabs.com>
To: Robert Johannes <rjohanne@rjohanne-host.dsl.visi.com>
Cc: linux-admin@vger.rutgers.edu
Subject: Re: How do I remove the files with the following characteristics?

first, get the most recent version of e2fs tools, 1.18 or higher, boot/init
to single user mode with the filesystem mounted read only and all buffers
flushed.

run e2fsck on the partition. this should correct some of these files to
save you some finger work.

next, run debugfs on this partition, you'll need to spend a goodly amount of
time reading the man page so you are familiar with how it operates.

you -must- read the man page to find out what option you need to write to
the drive. i will not tell it.

in debugfs, cd to the mangled directory

(have a list of the directory handy as you are going through it)

follow these next steps in repetitive sequence

1) debugfs: mi <file> (modify inode)
Mode [nnnnnnn] _

2) type in 01000644 where the cursor is positioned, hit enter.

3) continue hitting enter until you reach the debugfs: prompt again

4) return to step #1 until all mangled files have been modified

5) debugfs: write (write the changes to disk)

6) debugfs: quit

now run sync a couple of times, i also recommend ALT-PRSC-S (magic key
sequence in kernel to sync) if you have it compiled in the kernel. if you
don't, wait half a minute, then mount the filesystem readwrite and go into
that directory and do as you wish with the files. probably rm.

after rming the files, unmount the filesystem and run e2fsck on it again
until it comes up clean.

-d



On Sun, 19 Dec 1999, Robert Johannes wrote:
> 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
> ?--x--x--t 1 8273 25441 1651340654 May 4 1975 #131081
> c---r-xr-- 1 11316 8236 50, 32 Feb 8 1987 #131082
> ?---r-S--T 1 8236 11318 840969266 Dec 19 01:54 #131084
> ?r-S--x--x 1 25134 11314 157643897 Dec 19 01:54 #131085
> c---r-xr-- 1 11313 8236 9, 9 Feb 8 1987 #131086
> ?r-xr-x--x 1 2314 26975 1852124681 Dec 19 01:54 #131089
> ?r-S--x--x 1 28525 29556 1767639414 Aug 15 1995 #131093
> ?r-S--x-w- 1 11785 18755 158691685 Dec 19 01:54 #131095
> ?r-xrw---t 1 24948 24399 1646275700 Nov 18 1997 #131096
> ?--x--x--t 1 24401 23561 1263747405 Dec 19 01:54 #131114
> ?--x--Sr-x 1 17736 8256 808464722 Dec 19 01:54 #131115
> ?r-srw--w- 1 24864 16393 1948281964 Dec 19 01:54 #131116
> b--s-wxrwx 1 26473 26975 92, 9 Feb 8 1987 #131117
> ?--s-w---t 1 2313 29984 157642338 Mar 26 2023 #131119
>
>
> -====---====---====---====---====---====---====---====---====---====---====-
> to unsubscribe email "unsubscribe linux-admin" to majordomo@vger.rutgers.edu
> See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/
>

--



-
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/

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