Pages : 1
#1 Le 03/04/2019, à 20:42
- pierre1415
Problème clé usb
Bonjour, je suis nouveau sur le forum mais j'utilise ubuntu depuis un bon moment déjà et je ne peut plus m'en passer car on peut tout faire ou presque, il suffit de s'y connaître un peu. Alors voilà, j'ai lu de nombreux sujet sur ce probleme mais je n'arrive pas a effectuer la même chose. Je vous expose mon probleme. Lundi, mon professeur avais besoin de ma clé usb pour transporter la licence d'un logiciel. Alors je lui ai prétée et je suis partie sur ma machine (un projet de bts) mais voilà, j'ai récupéré une clé appelé "licence key" et tous mes fichiers on disparu. Je l'ai quand même signalé a mon prof qui m'a dit qu'il savait même pas que sa allez formater la clé de copier une licence logiciel dessus, donc aucun fichier de copier auparavant et je me retrouve avec toute la première partie du projet partie en fumée parce qu'il ne l'a pas copier avant de travailler sur ma clé. Pour la revue final j'ai vraiment besoin de ces fichiers, mais voilà, impossible des les retrouver. J'ai essayer avec foremost, rien du tout, et testdisk, je n'arrive pas a le faire fonctionner sur la clé, j'ai pourtant lu des sujets dessus mais je n'y arrive toujours pas. est-ce que quelqu'un pourrait m'aider car là je suis désespéré. Merci a vous bonne soirée
Hors ligne
#2 Le 03/04/2019, à 21:14
- Nuliel
Re : Problème clé usb
Bonjour,
Tu peux donner avec la clé débranchée
ls -l /dev/disk/by-id/
brancher la clé et donner
ls -l /dev/disk/by-id/
Il serait bien que la clé ne soit pas montée automatiquement ( c'est dans les paramètres)
Hors ligne
#3 Le 04/04/2019, à 06:12
- pierre1415
Re : Problème clé usb
bonjour, merci pour la réponse, voici le résultat des deux commande :
pierre@pierre-HP-Notebook:~$ ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-hp_DVDRW_GUD1N_KVOG8NM4141 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part7 -> ../../sda7
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x50014ee0aeea0962 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part7 -> ../../sda7
et
total 0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-hp_DVDRW_GUD1N_KVOG8NM4141 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part7 -> ../../sda7
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x50014ee0aeea0962 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part7 -> ../../sda7
pierre@pierre-HP-Notebook:~$ ^C
pierre@pierre-HP-Notebook:~$ ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-hp_DVDRW_GUD1N_KVOG8NM4141 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part7 -> ../../sda7
lrwxrwxrwx 1 root root 9 avril 4 07:10 usb-IS817_innostor-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 avril 4 07:10 usb-IS817_innostor-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x50014ee0aeea0962 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part7 -> ../../sda7
je ne pense pas que le problème vient du fait que la clé ne soit pas monté, car elle apparait bien comme montée mais il n'y a rien dedans. En tout cas merci pour ton aide, en attende de nouvelle idées
Hors ligne
#4 Le 04/04/2019, à 06:16
- pierre1415
Re : Problème clé usb
oups, je me suis trompé pour la deuxièeme :
total 0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-hp_DVDRW_GUD1N_KVOG8NM4141 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 ata-WDC_WD10JPVX-60JC3T0_WD-WX31E369M7E7-part7 -> ../../sda7
lrwxrwxrwx 1 root root 9 avril 4 07:10 usb-IS817_innostor-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 avril 4 07:10 usb-IS817_innostor-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 avril 4 2019 wwn-0x50014ee0aeea0962 -> ../../sda
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 avril 4 2019 wwn-0x50014ee0aeea0962-part7 -> ../../sda7
je n'ai pas remarqué de changement mais bon autant mettre les bon trucs
Hors ligne
#5 Le 04/04/2019, à 16:02
- Nuliel
Re : Problème clé usb
1) il est important de garder la partition démontée afin de maximiser les chances de récupérer les données
2) je t'ai demandé un retour de commande qui me permet d'adapter la suite, donc pas de changement c'est normal
3) stp mets les retours complets des commandes, là il manque le début (la commande exécutée)
4) truc important: on copie dans un terminal avec ctrl+shift+c et on colle dans un terminal avec ctrl+shift+v
5) Tu peux faire (à copier coller pour éviter les erreurs)
sudo dd if=/dev/disk/by-id/usb-IS817_innostor-0:0 of=~/image.iso
chown $USER:$USER ~/image.iso
cp image.iso image.iso.bak
sudo apt install testdisk
Dernière modification par Nuliel (Le 04/04/2019, à 16:02)
Hors ligne
#6 Le 04/04/2019, à 19:01
- pierre1415
Re : Problème clé usb
Bonsoir, daccord, désolé.
Voici le résultat de la commande que tu à indiqué, par contre, je ne sais pas trop ce que cela signifie si tu peut m'éclairer, en tout cas merci.
pierre@pierre-HP-Notebook:~$ sudo dd if=/dev/disk/by-id/usb-IS817_innostor-0:0 of=~/image.iso
[sudo] Mot de passe de pierre :
Désolé, essayez de nouveau.
[sudo] Mot de passe de pierre :
15663104+0 enregistrements lus
15663104+0 enregistrements écrits
8019509248 bytes (8,0 GB, 7,5 GiB) copied, 373,459 s, 21,5 MB/s
pierre@pierre-HP-Notebook:~$ chown $USER:$USER ~/image.iso
chown: modification du propriétaire de '/home/pierre/image.iso': Opération non permise
pierre@pierre-HP-Notebook:~$ cp image.iso image.iso.bak
pierre@pierre-HP-Notebook:~$ sudo apt install testdisk
[sudo] Mot de passe de pierre :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
testdisk est déjà la version la plus récente (7.0-1).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
libllvm4.0 libllvm4.0:i386 libllvm5.0 libllvm5.0:i386 linux-headers-4.15.0-42 linux-headers-4.15.0-42-generic linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic linux-headers-4.15.0-45
linux-headers-4.15.0-45-generic linux-image-4.15.0-42-generic linux-image-4.15.0-43-generic linux-image-4.15.0-45-generic linux-modules-4.15.0-42-generic linux-modules-4.15.0-43-generic
linux-modules-4.15.0-45-generic linux-modules-extra-4.15.0-42-generic linux-modules-extra-4.15.0-43-generic linux-modules-extra-4.15.0-45-generic
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 44 non mis à jour.
Dernière modification par pierre1415 (Le 04/04/2019, à 19:11)
Hors ligne
#7 Le 04/04/2019, à 19:32
- Nuliel
Re : Problème clé usb
Pas de problème.
ls -l /dev/disk/by-id/ a pour but de connaître le nom de la clé usb, et surtout un nom qui change pas (parce que /dev/sdb peut changer en autre chose)
sudo dd if=/dev/disk/by-id/usb-IS817_innostor-0:0 of=~/image.iso a permis de faire une copie exacte de la clé dans un fichier iso appelé image se trouvant dans ton dossier personnel. D'ailleurs tu peux la débrancher, elle servira plus vu qu'on a une copie
Tu peux passer
sudo chown $USER:$USER ~/image.iso
cp ~/image.iso ~/image.iso.bak
pour que le fichier t'appartienne
Dernière modification par Nuliel (Le 04/04/2019, à 19:33)
Hors ligne
#8 Le 05/04/2019, à 19:25
- pierre1415
Re : Problème clé usb
Bonsoir,
Merci, et une fois que le dossier m'appartient, je le trouve u pour l'ouvrir?
Hors ligne
#9 Le 05/04/2019, à 19:29
- Nuliel
Re : Problème clé usb
Attends, là on a juste fait une copie exacte de la clé usb
Je vais manger, on va faire pas à pas une tentative de récupération de l'ancienne partition après
Hors ligne
#10 Le 06/04/2019, à 08:29
- Nuliel
Re : Problème clé usb
J'ai fini de manger (j'avoue j'ai oublié)
Bon, on va passer à testdisk:
testdisk image.iso
ensuite tu fais "create" pour les logs s'il demande, ensuite il devrait proposer que le fichier image.iso, tu le prends donc, ensuite tu prends intel/pc partition, ensuite tu fais analyse, puis tu fais deeper search, et tu fais un copier coller (ctrl+shift+c pour copier le texte) de ce que tu as à l'écran, et tu le postes là.
Si tu as la moindre différence par rapport à ce que je propose, fais une copie texte de ce que tu vois, je t'indiquerai ce qu'il faut passer
Dernière modification par Nuliel (Le 06/04/2019, à 08:37)
Hors ligne
#11 Le 08/04/2019, à 19:36
- pierre1415
Re : Problème clé usb
Bonsoir, je suis désolé de mon absence, je n'arrivait plus a me connecter. Donc oui, j'ai réussi a récupérer mes fichiers, j'ai utilisé photorec, le module de testdisck, il a tout récupéré et mis dans un fichier, j'ai plus qu'a faire le tri, car il renomme tous les fichiers par une lettre et une série de chiffre, mais au moins, j'ai les fichiers de mon projet de bts dont j'ai fait plusieurs copie maintenant. Un grand merci pour ton aide.
Hors ligne
#12 Le 08/04/2019, à 19:41
- Nuliel
Re : Problème clé usb
La solution que j'allais proposer allait potentiellement récupérer les noms et l'arborescence
En tout cas tu as récupéré le plus important, c'est cool!
Dernière modification par Nuliel (Le 08/04/2019, à 19:42)
Hors ligne
Pages : 1