On Thu, Apr 18, 2002 at 04:00:50PM, Fabian Vilers wrote: > le lost+found est crée lors du formatage, mais l'est-il a chaque 'mount'? > suffit de tester. non, il est recrée à chaque fsck > en fait cette question amène une autre question: > > j'ai un partition que je veux 'vider' -> rm -rf /mnt/mapartition > > comment puis-je transformer cette commande pour qu'il efface tout (rep et > fichier) _sauf_ lost+found ? for i in $(ls /mnt/mapartition | grep -v "lost+found"); do rm -rf $i done ou mieux (plus beau) find /mnt/mapartition -type f -or -type d -not -name lost* -maxdepth 1 -exec rm {} \; > ---end quoted text--- binny -- ... et si nous sommes tous embarqués sur la même planète, nous ne sommes décidement pas du même monde. -- Bertrand Cantat °v° Benjamin Michotte <binny@baby-linux.net> _o_ web : http://www.baby-linux.net
Attachment:
pgp01078.pgp
Description: PGP signature