View previous topic :: View next topic |
Author |
Message |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Sep 12, 2006 1:04 pm Post subject: [FICHIER] Peut pas detruire repertoire (resolu) |
|
|
Code: | Tue Sep 12 08:59:22 EDT 2006
/var/tmp/portage
root@Gen2Al: pts/3: 23 files 15Kb -> rm -rf *
rm: cannot remove directory `gcc-4.1.0/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale': Directory not empty
rm: cannot remove directory `gcc-4.1.1/work/gcc-4.1.1/libjava/classpath/resource/gnu/java/locale': Directory not empty
|
Code: | Tue Sep 12 09:01:30 EDT 2006
/var/tmp/portage/gcc-4.1.0/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale
root@Gen2Al: pts/3: 0 files 1.0Kb -> ls -la
total 1
drwx------ 2 root root 3 2006-04-07 17:53 .
drwx------ 3 root root 3 2006-04-07 17:53 ..
|
Tous les sous-repertoires ont les permissions drwx, sauf...
Code: | Tue Sep 12 09:03:23 EDT 2006
/var/tmp/portage/gcc-4.1.0/work
root@Gen2Al: pts/3: 1 files 1.5Kb -> ls -la
total 2
drwx------ 3 portage portage 3 2006-04-07 17:53 .
drwxr-xr-x 3 portage portage 3 2006-04-07 17:53 ..
drwx------ 3 root root 3 2006-04-07 17:53 gcc-4.1.0
Tue Sep 12 09:03:24 EDT 2006
/var/tmp/portage/gcc-4.1.0/work
root@Gen2Al: pts/3: 1 files 1.5Kb -> cd ..
Tue Sep 12 09:03:34 EDT 2006
/var/tmp/portage/gcc-4.1.0
root@Gen2Al: pts/3: 1 files 1.5Kb -> ls -la
total 2
drwxr-xr-x 3 portage portage 3 2006-04-07 17:53 .
drwxrwxr-x 4 portage portage 4 2006-09-12 09:00 ..
drwx------ 3 portage portage 3 2006-04-07 17:53 work
|
Comment je peux detruire ca? _________________ Votre moment detente
What is the nature of conflict?
Last edited by Trevoke on Tue Sep 19, 2006 12:43 pm; edited 1 time in total |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8724 Location: ~Brussels - Belgique
|
Posted: Tue Sep 12, 2006 1:11 pm Post subject: |
|
|
chmod -R 777 ? puis \rm -rf
peut-être y a-t-il aussi un processus qui traîne sur ces répertoire (genre Sandbox) _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Sep 12, 2006 1:13 pm Post subject: |
|
|
Code: | Tue Sep 12 09:13:06 EDT 2006
/var/tmp/portage
root@Gen2Al: pts/3: 2 files 2.5Kb -> rm -rf *
rm: cannot remove directory `gcc-4.1.0/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale': Directory not empty
rm: cannot remove directory `gcc-4.1.1/work/gcc-4.1.1/libjava/classpath/resource/gnu/java/locale': Directory not empty
Tue Sep 12 09:13:08 EDT 2006
/var/tmp/portage
root@Gen2Al: pts/3: 2 files 2.5Kb -> chmod -R 777 gcc-4.1.0
Tue Sep 12 09:13:12 EDT 2006
/var/tmp/portage
root@Gen2Al: pts/3: 2 files 2.5Kb -> rm -rf gcc-4.1.0
rm: cannot remove directory `gcc-4.1.0/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale': Directory not empty
|
J'ai essaye de faire un ps waux | grep sandbox et j'ai rien vu. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
xaviermiller Bodhisattva


Joined: 23 Jul 2004 Posts: 8724 Location: ~Brussels - Belgique
|
Posted: Tue Sep 12, 2006 1:19 pm Post subject: |
|
|
le chemin dépasse peut-être une taille maximale : renomme les premiers répertoires et réessaie  _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
 |
kernelsensei Bodhisattva


Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Sep 12, 2006 1:19 pm Post subject: |
|
|
installe lsof si tu l'as pas et fais Code: | lsof|grep /var/tmp/portage |
Sinon le fs peut etre corrompu aussi... _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Sep 12, 2006 1:40 pm Post subject: |
|
|
k_s, et je cherche quoi dans l'output de ca? _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
kernelsensei Bodhisattva


Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Tue Sep 12, 2006 1:46 pm Post subject: |
|
|
Trevoke wrote: | k_s, et je cherche quoi dans l'output de ca? |
Bah il me semble que ca te donne le PID ou le nom de l'appli qui utilise le repertoire/fichier demandé... Mais bon, normalement tu peux supprimer un fichier même si ce dernier est utilisé, donc ca doit pas etre ca...
T'arrives a faire un mv ? _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Tue Sep 12, 2006 1:50 pm Post subject: |
|
|
Non, je peux pas les deplacer sur un autre mount point donc en effet c'est peut-etre le fs.
zut. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
Leander256 l33t


Joined: 05 Jul 2003 Posts: 910 Location: Singapour
|
Posted: Wed Sep 13, 2006 10:58 am Post subject: |
|
|
Ça me rappelle que j'avais eu un problème de ce genre avec les attributs étendus du système de fichiers. Si tu as de l'ext2 ou ext3 tu peux voir ces droits étendus avec un lsattr (et modifier avec chattr), normalement tu ne devrais avoir aucun droit d'activé. Pour un autre fs il va falloir chercher un peu  |
|
Back to top |
|
 |
Temet Advocate


Joined: 14 Mar 2006 Posts: 2586 Location: 92
|
|
Back to top |
|
 |
mornik Apprentice


Joined: 12 Mar 2005 Posts: 184 Location: Niort
|
Posted: Wed Sep 13, 2006 6:09 pm Post subject: |
|
|
si tu faits un tu obtiens l'inode de ton fichier/répertoire
derrière tu fait un find sur l'inode que tu couple à un exec rm
exemple :
Code: |
$ ls -i *
615383 foo
$ find . -inum 615383 -exec rm {} \;
|
_________________ Pousser pas j'y suis déjà ! |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Sep 13, 2006 6:18 pm Post subject: |
|
|
Plein de super solutions mais je crois que k_s a raison. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
pathfinder l33t

Joined: 19 Jan 2006 Posts: 731 Location: Barcelona, Spain
|
Posted: Wed Sep 13, 2006 6:41 pm Post subject: |
|
|
stop, stop, stop.
tu nas pas l air d avoir execute la commande qu on t a propose:
\rm -rf /toto/* avec un antislash et en super user
moi ca a toujours fonctionne avec \ |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Sep 13, 2006 7:23 pm Post subject: |
|
|
root@Gen2Al: pts/5: 2 files 2.5Kb -> \rm -rf gcc-4.1.1/
rm: cannot remove directory `gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale': Directory not empty
rm: cannot remove directory `gcc-4.1.1//work/gcc-4.1.1/libjava/classpath/resource/gnu/java/locale': Directory not empty _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
ghoti Advocate


Joined: 30 Dec 2002 Posts: 3641 Location: Belgium
|
Posted: Wed Sep 13, 2006 7:53 pm Post subject: |
|
|
Leander256 wrote: | Si tu as de l'ext2 ou ext3 tu peux voir ces droits étendus avec un lsattr (et modifier avec chattr),
Pour un autre fs il va falloir chercher un peu  |
Tout le monde sait bien que notre ami Trevoke ne jure que par reiser4, voyons !
Mais normalement, la commande suivante devrait remonter le fs pour permettre d'utiliser chattrs avec reiser :
Code: | mount -o attrs /point/de/montage |
|
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Sep 13, 2006 8:27 pm Post subject: |
|
|
La prochaine fois que je reboote, j'essaye..
J'ai /var sur le meme mount que / . _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
mornik Apprentice


Joined: 12 Mar 2005 Posts: 184 Location: Niort
|
Posted: Wed Sep 13, 2006 8:45 pm Post subject: |
|
|
Et ma solution n'a pas marchée ? _________________ Pousser pas j'y suis déjà ! |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Thu Sep 14, 2006 5:36 pm Post subject: |
|
|
Non, meme resultat. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
nemo13 Veteran


Joined: 08 Oct 2004 Posts: 1016 Location: France/Istres
|
Posted: Fri Sep 15, 2006 2:37 pm Post subject: |
|
|
Pas taper
et à partir d'un CD LIVE ? |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 15, 2006 3:19 pm Post subject: |
|
|
C'est mon ordi au boulot, j'ai rarement envie de le redemarrer. A partir d'un LiveCD je n'ai pas a monter le FS et je pourrais faire des FSCK et tout. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
ghoti Advocate


Joined: 30 Dec 2002 Posts: 3641 Location: Belgium
|
Posted: Fri Sep 15, 2006 6:51 pm Post subject: |
|
|
ghoti wrote: | Mais normalement, la commande suivante devrait remonter le fs pour permettre d'utiliser chattrs avec reiser :
Code: | mount -o attrs /point/de/montage |
|
Trevoke wrote: | J'ai /var sur le meme mount que / . |
Et ... ?
Rien ne t'empêche de remonter ta partition racine ! |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 15, 2006 7:05 pm Post subject: |
|
|
# mount -o attrs /
mount: /dev/hda7 already mounted or / busy
mount: according to mtab, /dev/hda7 is already mounted on / _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
geekounet Bodhisattva


Joined: 11 Oct 2004 Posts: 3772
|
Posted: Fri Sep 15, 2006 7:12 pm Post subject: |
|
|
Code: | # mount -o remount,attrs / |
 |
|
Back to top |
|
 |
ghoti Advocate


Joined: 30 Dec 2002 Posts: 3641 Location: Belgium
|
Posted: Fri Sep 15, 2006 7:12 pm Post subject: |
|
|
Arf, sorry, c'est vrai qu'il faudrait peut-être ajouter l'option "remount" !
[EDIT] grilled, comme d'hab !  |
|
Back to top |
|
 |
Trevoke Advocate


Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 15, 2006 7:29 pm Post subject: |
|
|
Une fois le remount fait...
# chattr -R =s gcc-4.1.1/
gcc-4.1.1/: Inappropriate ioctl for device
gcc-4.1.1//test: Inappropriate ioctl for device
gcc-4.1.1//test/work: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath/resource: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath/resource/gnu: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath/resource/gnu/java: Inappropriate ioctl for device
gcc-4.1.1//test/work/gcc-4.1.0/libjava/classpath/resource/gnu/java/locale: Inappropriate ioctl for device
gcc-4.1.1//work: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava/classpath: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava/classpath/resource: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava/classpath/resource/gnu: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava/classpath/resource/gnu/java: Inappropriate ioctl for device
gcc-4.1.1//work/gcc-4.1.1/libjava/classpath/resource/gnu/java/locale: Inappropriate ioctl for device _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
 |
|