Re: [Debian]: kann Dateien in /lost+find nicht loschen
> subject sagt eigentlich alles. Nach einem Systemstillstand wurde
> ein filesystemcheck durchgefuhrt. Dabei entstanden zahlreiche
> files in /lost+found (ach so, ist ein ext2-fs). Ein ls -l in
> /lost+found liefert:
> total 1428282442
> b---r-srw- 1 11365 25710 32, 121 Apr 3 2029 #119969
> br-sr-xr-- 1 24935 11897 97, 101 Apr 2 1987 #119971
> b--Sr-xrwx 1 29285 8292 97, 114 Apr 18 2024 #119972
> b--xrwSr-- 1 25455 25964 101, 116 Mar 17 1995 #119974
> ....
> Wie bekomme ich das Verzeichnis wieder leer?
Habe gerade folgendes in de.comp.os.linux.misc gefunden:
>From : "Theodore Y. Ts'o" <tytso@MIT.EDU> (fsck programmer)
To : Adam Kopacz <Adam.K@idnet.de>
how can i delete this 2 files ??? =>
[/tmp/dreck] > ll
total 1330851285
c--sr-Sr-t 1 20044 12849 111, 104 Mar 20 1997 505
c--s--SrwT 1 16963 27950 62, 101 Aug 28 2027 521
[/tmp/dreck] > rm 505
rm: remove `505', overriding mode 7145? y
rm: 505: Operation not permitted
[/tmp/dreck] > rm 521
rm: 521: Operation not permitted
(as root!)
this is on a Western DIgital Caviar 2.1 GB hdd. the partition has 2
GB..
DMA access via Apollo-VP1 ChipSet. Linux 2.0.33 on a k6-200.
fsck v 1.10 (24-Apr-97)
The 1.12 alpha-test e2fsck will delete these files. Alternatively, you
can use the debugfs program (with the filesystem unmounted!) to delete
the files, using the clri command:
debugfs -w /dev/hdXX
cd /lost+found
clri 505
clri 521
quit
and then immediately running e2fsck on the partition:
e2fsck -f /dev/hdXX
Basically, what happened was some random garbage got written to the
inode table, and the "immutable" bit got set. Unfortuantely, there
isn't a way to clear the immutable bit from devices, so your only way of
clearing those inodes is to use debugfs. The new version of e2fsck will
detect this anomalous case, and offer to delete the errant inode.
- Ted
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <your_email_address>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder: 468
Reply to: