Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FICHIER] Peut pas detruire repertoire (resolu)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Sep 12, 2006 1:04 pm    Post subject: [FICHIER] Peut pas detruire repertoire (resolu) Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8724
Location: ~Brussels - Belgique

PostPosted: Tue Sep 12, 2006 1:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Sep 12, 2006 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8724
Location: ~Brussels - Belgique

PostPosted: Tue Sep 12, 2006 1:19 pm    Post subject: Reply with quote

le chemin dépasse peut-être une taille maximale : renomme les premiers répertoires et réessaie ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Tue Sep 12, 2006 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Sep 12, 2006 1:40 pm    Post subject: Reply with quote

k_s, et je cherche quoi dans l'output de ca?
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Tue Sep 12, 2006 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Sep 12, 2006 1:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Leander256
l33t
l33t


Joined: 05 Jul 2003
Posts: 910
Location: Singapour

PostPosted: Wed Sep 13, 2006 10:58 am    Post subject: Reply with quote

Ç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
View user's profile Send private message
Temet
Advocate
Advocate


Joined: 14 Mar 2006
Posts: 2586
Location: 92

PostPosted: Wed Sep 13, 2006 11:19 am    Post subject: Reply with quote

J'ai vu ça hier : https://forums.gentoo.org/viewtopic-t-496926.html
Back to top
View user's profile Send private message
mornik
Apprentice
Apprentice


Joined: 12 Mar 2005
Posts: 184
Location: Niort

PostPosted: Wed Sep 13, 2006 6:09 pm    Post subject: Reply with quote

si tu faits un
Code:
ls -i
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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Sep 13, 2006 6:18 pm    Post subject: Reply with quote

Plein de super solutions mais je crois que k_s a raison.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
pathfinder
l33t
l33t


Joined: 19 Jan 2006
Posts: 731
Location: Barcelona, Spain

PostPosted: Wed Sep 13, 2006 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Sep 13, 2006 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3641
Location: Belgium

PostPosted: Wed Sep 13, 2006 7:53 pm    Post subject: Reply with quote

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 ! :lol:
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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Sep 13, 2006 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
mornik
Apprentice
Apprentice


Joined: 12 Mar 2005
Posts: 184
Location: Niort

PostPosted: Wed Sep 13, 2006 8:45 pm    Post subject: Reply with quote

Et ma solution n'a pas marchée ?
_________________
Pousser pas j'y suis déjà !
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Sep 14, 2006 5:36 pm    Post subject: Reply with quote

Non, meme resultat.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
nemo13
Veteran
Veteran


Joined: 08 Oct 2004
Posts: 1016
Location: France/Istres

PostPosted: Fri Sep 15, 2006 2:37 pm    Post subject: Reply with quote

Pas taper
et à partir d'un CD LIVE ?
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Sep 15, 2006 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3641
Location: Belgium

PostPosted: Fri Sep 15, 2006 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Sep 15, 2006 7:05 pm    Post subject: Reply with quote

# 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
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772

PostPosted: Fri Sep 15, 2006 7:12 pm    Post subject: Reply with quote

Code:
# mount -o remount,attrs /

;)
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3641
Location: Belgium

PostPosted: Fri Sep 15, 2006 7:12 pm    Post subject: Reply with quote

Arf, sorry, c'est vrai qu'il faudrait peut-être ajouter l'option "remount" ! :oops:

[EDIT] grilled, comme d'hab ! ;)
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Fri Sep 15, 2006 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum