Re: undeletable files in /lost+found

Pierfrancesco Caci (ik5pvx@penny.ik5pvx.ampr.org)
20 Jun 1998 18:25:20 +0200


Joseph Skinner <joe@snail.earthlight.co.nz> writes:

>
> Thank for all the suggestions.
>
> The rm command from debugfs seems to have done the job [fingers
> crossed].
>
> For those interested in the gory details I used the -f switch with all
> the commands stored in a file to save time ie.
>
> debugfs -w -f commandfile /dev/hda2
>
> Where commandfile contained
>
> cd /lost+found
> rm filename
> ...
> close
> quit
>
>

Ok, does someone know how to get rid of these:

root@penny:/home/lost+found # ls -lasR
total 75
10 drwxrwxr-x 3 jnos staff 10240 Dec 24 19:48 #101601
2 drwxrwxr-x 3 ik5pvx staff 2048 Dec 24 19:48 #34548
62 drwxrwxr-x 4 root root 62464 Jun 7 18:33 .
1 drwxrwxr-x 8 root root 1024 Dec 13 1997 ..

#101601:
total 82
10 drwxrwxr-x 3 jnos staff 10240 Dec 24 19:48 .
10 drwxrwxr-x 3 jnos staff 10240 Dec 24 19:48 .
62 drwxrwxr-x 4 root root 62464 Jun 7 18:33 ..

#34548:
total 126
2 drwxrwxr-x 3 ik5pvx staff 2048 Dec 24 19:48 .
62 drwxrwxr-x 4 root root 62464 Jun 7 18:33 ..
62 drwxrwxr-x 4 root root 62464 Jun 7 18:33 ..
root@penny:/home/lost+found #

the double "." and ".." entries prevent the directory to be deleted.

Pf

-- 

------------------------------------------------------------------------------- Pierfrancesco Caci | mailto:ik5pvx@infogroup.it - http://gusp.infogroup.it ik5pvx | http://www.geocities.com/SoHo/Lofts/8999 Firenze - Italia | Office for the Complication of Otherwise Simple Affairs Linux penny 2.1.106 #8 Fri Jun 19 19:53:23 CEST 1998 i586 unknown

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu