Prblème disque externe sous linux suse

Résolu
h_php Messages postés 21 Statut Membre -  
h_php Messages postés 21 Statut Membre -
Bonjour,
j ai un serveur SuSE Linux 9 sur lequel un disque externe usb est connecter
via Webmin j arrive à voir le disque et son contenu

> cd /media/usb-1EA5342F2505:0:0:0p1/
> ls -l
total 64
...
-rw-r--r-- 1 root root 2 Jan 10 14:09 testaa
drwxrwxr-x 2 root root 4096 Dec 17 10:47 testhassan

mon problème avec la commande find: quand je tappe la commande suivante
find . /media/usb-1EA5342F2505:0:0:0p1 \( -type d -a -iname "testhassan" \) -print | less
voici le résultat
find: . changed during execution of find

par-contre avec la commande suivante j ai ce que je cherche
find . /media/usb-1EA5342F2505:0:0:0p1/testhassan \( -type d -a -iname "*test*" \) -print | less
voici le resultat :

/media/usb-1EA5342F2505:0:0:0p1/testhassan
/media/usb-1EA5342F2505:0:0:0p1/testhassan/testhassan2

merci

2 réponses

  1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
     
    Salut,

    Enlèves le "." (point) :

    find /media/usb-1EA5342F2505:0:0:0p1 \( -type d -a -iname "testhassan" \) -print
    0
  2. h_php Messages postés 21 Statut Membre
     
    merci pour ta réponse
    > find /media/usb-1EA5342F2505:0:0:0p1 \( -type d -a -iname "testhassan" \) -print
    voici le résultat
    find: . changed during execution of find

    ce que j'ai remarqué quand je chercher a partir du disk j ai l erreur par-contre si je chercher a partir d un répertoire qui se trouve sur le disk j ai un résultat
    comme cet exemple :
    find . /media/usb-1EA5342F2505:0:0:0p1/testhassan \( -type d -a -iname "*test*" \) -print | less
    voici le resultat :

    /media/usb-1EA5342F2505:0:0:0p1/testhassan
    /media/usb-1EA5342F2505:0:0:0p1/testhassan/testhassan2

    merci
    0
    1. zipe31 Messages postés 34620 Date d'inscription   Statut Contributeur Dernière intervention   6 501
       
      Re-

      Une piste :

      http://linux.derkeiler.com/Mailing-Lists/SuSE/2005-02/0300.html
      http://linux.derkeiler.com/Mailing-Lists/SuSE/2005-02/0311.html

      Le coupable apparemment "automount" et le répertoire /media ;-((
      0
    2. h_php Messages postés 21 Statut Membre
       
      oui le coupable est mount
      j ai fait un mount de mon disk :
      mount /dev/sdb1 /mnt/backup/disk/
      et je suis arrivé à accéder à tous
      0