Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 23/07/2015, à 22:40

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

vous avez pourtant fais exactement la bonne manip,  il y a cependant une chose qui me semble incohérente:

si pour une raison quelconque,  le déchiffrement ne se faisait pas,  on devrait toutefois retrouver toutes la liste dans Private et ce n'est pas le cas, c'est comme si le point de montage ne se faisait pas au bon endroit, c'est pour cela que j'insiste de vérifier avec la commande mount après la manip....est ce qu'il indiquait bien cette fois ci:

/media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.Private on /home/user/Private type ecryptfs  ??

sinon ce que je ferais en cas de problème de montage (dont j'ignore pour l'instant la raison) je recopierais tout le contenu de .Private (ou même partiellemnet juste pour tester) du disque externe localement  (edit: ne pas mélanger avec l'autre .Private de votre home actuel mais un répertoire dédié) et je refais la manip en adaptant bien sur le point de montage source/destination.  (vous avez le passephrase et les données, alors il n'y a pas de raison de ne pas y parvenir)


total 11152
drwx------  50 user user   16384 juil. 22 18:50 .
drwxrwxr-x   4 user user    4096 avril  2 08:13 ..
-rw-------   1 user user   12288 juil. 22 18:50 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez1IfpEBEzQvUjeWrxCkx0ME--
-rw-------   1 user user   32768 juil. 21 13:25 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez1S1Rm7LLcSdnOUJWgpXHxE--
drwx------   2 user user    4096 juil. 18 20:33 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez2NWmB5KmQQq73ERGy1SqHU--
drwxrwxr-x   3 user user    4096 juil. 11 20:07 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez3sg2O.mgJxVA5z06IQJnkU--
drwx------   2 user user    4096 avril 11 19:27 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez4.BcL5-nOgybrx4n2SFlTU--
-rw-r--r--   1 user user   12288 avril  2 08:13 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez4.XNyX-o3zWXe6ecEZLD2E--
drwxrwxr-x   3 user user    4096 mai    9 16:34 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez83XBiNZvE05V1bVL9K2WJk--
drwxrwxr-x   3 user user   16384 juil. 20 20:15 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez996c8C32Bok1LymrMWqx.k--
drwxr-xr-x  13 user user    4096 juil. 12 22:26 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez9yZonhGY.N1iuNnlVuoZEU--
drwx------   2 user user    4096 juil. 15 21:59 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezC1HZCdHr3Bb-TC3M1ASsQ---
-rw-------   1 user user   57344 juil. 22 18:50 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezcfQ4179FEH4JOe8WxNUY1---
drwx------   4 user user    4096 avril  9 19:56 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezCuBSFIM-7A7bl3BZIwwRqk--
drwxrwxr-x   2 user user    4096 juil.  6 22:01 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezdtFcBE4H.uogBmnGa3znUE--
drwx------   3 user user    4096 avril  2 08:52 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezE3V1EfLJ4XKXsiCQ1ML8jE--
drwxrwxr-x   4 user user    4096 mai   31 16:15 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezej-MGFPQETDnbTdR8rhOo---
drwxrwxr-x   2 user user    4096 juil. 20 21:55 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezF-FhGGXk.lT7pmeuVnnZOE--
drwx------   2 user user    4096 juil. 19 19:19 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezFfOztXvB0gHVAWTADmhQ9k--
drwxr-x---   2 user user    4096 avril  2 08:47 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezGAkvxy3FHRQId1TBnZXZHk--
drwxrwxr-x   3 user user    4096 juil.  6 22:01 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezgCaw1X3gaF6CDYd2x0LotU--
-rw-rw-r--   1 user user   12288 mai   31 16:18 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezGrSMyIGVyhS4MJlXd0PR7U--
drwxrwxr-x   7 user user    4096 juin   6 13:32 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezGZz2XA51svLgcfzBQb7WnE--
drwxrwxr-x   6 user user    4096 juin  26 20:38 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezjCZi7-Y2ic8fOhc9zeujzk--
-rw-r-----   1 user user    8192 juil. 19 20:47 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezJDecv4MPH9DhhymZCGXsZk--
drwx------   4 user user    4096 avril  2 08:25 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezjoytexJNxwnIvH3clDUZF---
drwx------   3 user user    4096 avril 20 13:16 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezJTSevov7xMwy5mJNMgAJ7---
drwxrwxr-x   2 user user    4096 juin   6 13:33 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezKR8y0Nbaow6eWYesG8DiqU--
lrwxrwxrwx   1 user user     124 avril  2 08:13 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezKxxiUfCnQt.CjQ7Cd8OIqk-- -> ECRYPTFS_FNEK_ENCRYPTED.FYYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez610No2ySkVvxmsLyAOCdAsu4TvcHKe5g5wylgapYoSwcUuLut.vISsz34Vl4is0Z
lrwxrwxrwx   1 user user     124 avril  2 08:13 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezLrURH0IkWf5Lh21-YLqVKE-- -> ECRYPTFS_FNEK_ENCRYPTED.FYYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezSTrX72WE628Wz3pz4-Pg7Dxyx4eYED89b6EpwOaNp9PiCUfYCZFtmoLqvHKSKXZl
drwx------  32 user user    4096 juil. 16 18:57 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezmtUpQITCJFWUWN4CXoUby---
drwx------   3 user user    4096 avril  2 08:24 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezoAs9k-9ICYJ12Tu-0JkYPk--
drwxr-xr-x   6 user user    4096 juil. 16 23:02 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezOnTRbkZmY.cJMjtsesKeTk--
drwx------   3 user user    4096 avril  2 08:24 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezpGY5kBV4SqWsQpGANHr9NE--
drwxrwxr-x   2 user user    4096 mai    9 18:48 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezQAoXp398uKbgTc.3fURJ0k--
drwx------   3 user user    4096 avril 28 18:44 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez.QNeRd3NXG9W9LzrSKuySU--
drwx------   3 user user    4096 avril  2 08:46 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezr2B3IKkC.vs7V86y6.qmuU--
drwxr-xr-x   2 root    root       4096 juin  11 20:46 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezrF--pHIlHj4x-JaQQyNaC---
drwx------   2 root    root       4096 avril  9 11:08 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezrQXxxEyOhgQawo5rJqppa---
drwxrwxr-x   3 user user    4096 juil.  6 22:23 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez-s4IvHkCEi6bWhbx9cyYXU--
drwx------   3 user user    4096 mai   20 18:34 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezSilHP9Zk1opXoc3BiWbaMU--
-rw-r--r--   1 user user   12288 avril  2 08:13 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezsT0Hqv-dKn9nnUSTBelXa---
drwx------   2 user user    4096 avril  9 10:53 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezSV.6mv-z.WuEQBH0HUMlQ---
drwx------  36 user user    4096 juil. 18 18:23 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezT51ln-qQ0qmKwXae5oYx5E--
drwx------   3 user user    4096 avril  2 08:46 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLeztBQ0lgIiR2FtoueEKDHLck--
drwx------   4 user user    4096 juil. 22 18:50 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezTuYf5.jWjeI68.-gUKq0kU--
drwx------   2 user user    4096 juil. 12 19:08 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezU4BVuNTbl5ZnWgBQ8LpDfE--
drwxrwxr-x   3 user user    4096 avril  9 14:20 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez.vm90ZYCrhRXjw-K3cV4tk--
drwxrwxr-x   2 user user    4096 avril  7 19:50 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezvPuNXO-8Cj3rQU.CpNc1W---
-rw-------   1 root    root      12288 juil. 12 19:07 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezx5sncvMhiYGnmWQAl.wGwk--
-rw-r--r--   1 user user 3903488 juin  21 17:42 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezxrEtIyY9xt50fAM9JM-DB---
drwx------   4 user user    4096 avril  2 13:06 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezx-YFr6g6QtKYmhhe.TDKOE--
drwxrwxr-x  14 user user    4096 mai   31 16:20 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezYaUmUchRoJI2ArfF.svFeE--
drwxr-xr-x  24 user user    4096 juil. 22 09:00 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezYKTFXMyIHfLB877h3MCMUk--
drwx------   2 user user    4096 mai    4 21:39 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezYodoSzeig2qJ0aH.me6J8k--
drwxrwxr-x   3 user user    4096 avril 14 22:07 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezYsW3SIb6WzVeFFjAK.bsF---
drwx------   2 user user    4096 avril  9 18:54 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezyUcQ.7u7MIUM0VAfHHoUmE--
drwxr-xr-x   4 user user   12288 juil. 22 09:00 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezYvgw.v1Qtn6GpTZSp5-r1k--
-rw-r--r--   1 user user   12288 avril  2 08:13 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezZ55c9bPAHdWEvyzikMmvA---
drwxr-xr-x   2 user user   32768 juil. 20 22:28 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezzSG-se0H-HFbgx-hPRMwck--
drwxr-xr-x 125 user user  135168 juil. 12 19:04 ECRYPTFS_FNEK_ENCRYPTED.FWYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezZW8lEPs67fTFCMsHEL6q9k--
drwxr-xr-x  18 user user   28672 juil. 19 19:17 ECRYPTFS_FNEK_ENCRYPTED.FXYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez0NwUEXdjkGHBAWjOYCHCPoDSdS.QuphC0iRdC.iAHDA-
-rw-rw-r--   1 user user 4157440 juil.  1 20:49 ECRYPTFS_FNEK_ENCRYPTED.FXYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez1Cp1pD-lQed7qHHJJuUrW4cWLcc8k0EYZrMiF3XWuJQ-
-rw-rw-r--   1 user user 2711552 juil.  1 19:33 ECRYPTFS_FNEK_ENCRYPTED.FXYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez610No2ySkVvxmsLyAOCdAklVnQLkfhhVa7xnVrdnIZs-
-rw-------   1 user user   12288 juil. 22 18:50 ECRYPTFS_FNEK_ENCRYPTED.FXYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLez610No2ySkVvxmsLyAOCdAwD-latZuU74f546lyAPDVE-
-rw-------   1 user user   12288 juil. 22 13:48 ECRYPTFS_FNEK_ENCRYPTED.FXYr.wvKiLfF.EQ61NyTdUaGTc5ZVXpzvLezWVIGRenf71Yx0RpnWU9UYSpGR4bFfSWXCWu0x4xqS-w-

Dernière modification par Compte anonymisé (Le 23/07/2015, à 22:53)

#27 Le 24/07/2015, à 13:58

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

je viens de voir dans la doc qu'il existe une commande de récupération ecryptfs:

testé et fonctionne.

sudo ecryptfs-recover-private

il recherche tous les .Private du disque interne et externe, demande le passephrase et les fichiers sont directement déchiffrés dans /tmp



de plus votre .Private n'est pas  /media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/user/.Private/
mais /media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.Private

le premier était un lien symbolique.

Dernière modification par Compte anonymisé (Le 24/07/2015, à 13:59)

#28 Le 24/07/2015, à 21:37

Jarodd

Re : [Résolu] Récupération ecryptfs sur disque externe

Bien vu !

Alors sur le Private qui est dans mon /home/user, j'ai bien retrouvé... mon /home/user.
Dans celui du disque externe, je retrouve les dossiers/fichiers ECRYPTFS_FNEK_ENCRYPTED sad Tout y est chiffré.


Ubuntu 22.04.3 LTS (64 bits)

Hors ligne

#29 Le 25/07/2015, à 08:26

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

Jarodd a écrit :

Bien vu !

Alors sur le Private qui est dans mon /home/user, j'ai bien retrouvé... mon /home/user.
Dans celui du disque externe, je retrouve les dossiers/fichiers ECRYPTFS_FNEK_ENCRYPTED sad Tout y est chiffré.

Votre topic m'interresse car j'utilise aussi ecryptfs et cela me permet aussi d'en apprendre plus et y répondre en cas de problème.
  (non pas pour chiffrer localement, je préfère cryptsetup mais pour sécuriser mes clouds qui sont synchronisés)

 
par défaut ecryptfs installe en aes avec key_bytes=16, à priori, c'est votre configuration aussi sinon vous vous souviendrez d'avoir changé ces options.

j'en déduis alors que le passephrase de votre montage actuellement est différent que celui utilisé et qui a servi au chiffrement.

nota: un passephrase différent ne veut pas dire qu'il est erroné  (dés l'instant que les 2 keyrings y correspondent le montage ecryptfs s'effectue alors normalement, les nouveau fichiers déposés seront bien chiffrés et déchiffrés mais les anciens restent en
ECRYPTFS_FNEK_ENCRYPTED  puisque le passephrase a changé.

c'est là que ça coince:
sudo ecryptfs-unwrap-passphrase /media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.ecryptfs/wrapped-passphrase
00bd638481da6419c37d70aa27b362e1    et je ne doute pas que vous l'avez bien utilisé.

l'installateur d'ubuntu avec ecryptfs devrait SIGNALER EN ROUGE qu'il faut toujours noter le passephrase lors de l'installation,  bien plus primordial qu'un mot de passe utilisateur qu'on pourra toujours remédier.

pouvez vous aussi vérifier ces 2 keyrings ?:
cat  /media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.ecryptfs/Private.sig

après je vous propose je me communiquer en privé un fichier ECRYPTFS_FNEK_ENCRYPTED pris au hasard dans votre .Private du disque externe  afin que je puisse tenter aussi de le déchiffrer, idem j'aimerais comprendre aussi pourquoi

le passephrase 00bd638481da6419c37d70aa27b362e1 indiqué ne fait pas son job.

Dernière modification par Compte anonymisé (Le 25/07/2015, à 08:37)

#30 Le 25/07/2015, à 18:20

Jarodd

Re : [Résolu] Récupération ecryptfs sur disque externe

Les 2 keyrings retournées par la commande cat :
582895a01b38eea6
e3630bd82f8acccb

Le ecrypt-recover-private me dit ceci :

INFO: Found [/media/sylvain/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/sylvain/.Private].
Try to recover this directory? [Y/n]: y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n]

On est d'acord que ce LOGIN passphrase est bien le mot de passe que j'indiquais pour déchiffrer le disque, au démarrage du pc ? Si oui je suis sûr du mdp que je tape car si j'en met un autre, j'ai bien une erreur et rien n'est accessible dans /tmp :

Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]
Info: Check the system log for more information from libecryptfs

Edit : quand cela fonctionne bien :

INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] y
INFO: Enter your LOGIN passphrase...
Passphrase: 
Inserted auth tok with sig [582895a01b38eea6] into the user session keyring
INFO: Success!  Private data mounted at [/tmp/ecryptfs.OR2hkVwl].

Dernière modification par Jarodd (Le 25/07/2015, à 18:44)


Ubuntu 22.04.3 LTS (64 bits)

Hors ligne

#31 Le 26/07/2015, à 09:53

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

Jarodd a écrit :

Edit : quand cela fonctionne bien :

INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] y
INFO: Enter your LOGIN passphrase...
Passphrase: 
Inserted auth tok with sig [582895a01b38eea6] into the user session keyring
INFO: Success!  Private data mounted at [/tmp/ecryptfs.OR2hkVwl].

je ne vois dans ce cas qu'une seule explication, les fichiers présents dans le .Private qui est monté n'ont pas été chiffrés avec le passephrase  00bd638481da6419c37d70aa27b362e1

j'avais constaté que c'était toujours le .Private de votre home qui était monté et non pas celui de votre disque externe pour une raison inconnue, et J'INSISTE ENCORE UNE FOIS DE PLUS,
FAITES MOUNT pour savoir quel .Private est réellement monté après chaque manip, chose que vous ne faites jamais.

mount -t ecrypts ... montait toujours votre home actuel à la place de /media/sylvain/9964b527-4c7e-49db-ba59-3d4403a55a87

j'aimerais savoir si  ecrypt-recover-private fais la même gourde.

#32 Le 26/07/2015, à 10:43

Jarodd

Re : [Résolu] Récupération ecryptfs sur disque externe

$ sudo ecryptfs-recover-private
[sudo] password for user: 
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/home/.ecryptfs/user/.Private].
Try to recover this directory? [Y/n]: n
INFO: Found [/media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.Private].
Try to recover this directory? [Y/n]: Y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] Y
INFO: Enter your LOGIN passphrase...
Passphrase: 
Inserted auth tok with sig [582895a01b38eea6] into the user session keyring
INFO: Success!  Private data mounted at [/tmp/ecryptfs.clhPeUzP].
user@ubuntu:~$ 
user@ubuntu:~$ mount
/dev/mapper/ubuntu--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda2 on /boot type ext2 (rw)
/dev/sda1 on /boot/efi type vfat (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
/home/user/.Private on /home/user type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=6a71e9711339a519,ecryptfs_fnek_sig=3707ced6b97ad105)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=user)
/dev/mmcblk0p1 on /media/user/APN_32GO type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/dev/sdb1 on /media/user/SONYSYS type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/dev/sdb8 on /media/user/9964b527-4c7e-49db-ba59-3d4403a55a87 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
/media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.Private on /tmp/ecryptfs.clhPeUzP type ecryptfs (ro,ecryptfs_sig=582895a01b38eea6,ecryptfs_fnek_sig=e3630bd82f8acccb,ecryptfs_cipher=aes,ecryptfs_key_bytes=16)

Ubuntu 22.04.3 LTS (64 bits)

Hors ligne

#33 Le 26/07/2015, à 12:03

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

Jarrod a écrit :

/media/user/9964b527-4c7e-49db-ba59-3d4403a55a87/home/.ecryptfs/user/.Private on /tmp/ecryptfs.clhPeUzP type ecryptfs (ro,ecryptfs_sig=582895a01b38eea6,ecryptfs_fnek_sig=e3630bd82f8acccb,ecryptfs_cipher=aes,ecryptfs_key_bytes=16)

d'accord c'est bien ok, alors j'ignore ce qu'il s'est passé avec les fichiers ECRYPTFS_FNEK_ENCRYPTED....

#34 Le 26/07/2015, à 12:29

Jarodd

Re : [Résolu] Récupération ecryptfs sur disque externe

J'ai pu récupérer tous mes fichiers du disque externe, ouf enfin smile Maintenant je pense que je vais supprimer cette partition chiffrée.
Merci beaucoup localhost big_smile Je n'aurai jamais réussi tout seul. Heureusement que tu as trouvé cette commande du recover-private !


Ubuntu 22.04.3 LTS (64 bits)

Hors ligne

#35 Le 26/07/2015, à 13:07

Jarodd

Re : [Résolu] Récupération ecryptfs sur disque externe

J'étais sur le point de formater la partition dans Gparted, mais j'ai eu un doute : à quel niveau se fait le chiffrage ? Je pourrai accéder à la partition neuve juste en formatant l'ancienne ? Il me semble que le mot de passe est demandé juste après le BIOS, donc avant que le système démarre, donc je ne sais pas si c'est ce qu'il faut faire...


Ubuntu 22.04.3 LTS (64 bits)

Hors ligne

#36 Le 26/07/2015, à 19:23

Compte anonymisé

Re : [Résolu] Récupération ecryptfs sur disque externe

La partition n'a jamais été chiffrée, ecryptfs chiffre les dossiers&fichiers avec le biais d'un point de montage, c'est pour cela que je l'utilise pour le cloud, ce qui veut dire que vous pouvez écrire sur votre disque externe sans ecryptfs et sans rien supprimer, vous pouvez aussi continuer à utiliser votre montage ecryptfs, c'est vous le pilote..

ps: il serait plus juste de rectifier le titre  [Résolu] Accès à une partition chiffrée (disque externe) avec ecryptfs

---> [Résolu] récupération ecryptfs sur disque externe.

#37 Le 29/09/2017, à 19:03

attentis

Re : [Résolu] Récupération ecryptfs sur disque externe

SOS Jarrod et/ou le compte anonymisé svp ici

Je vous renvoie à un problème similaire mais avec 3 années d'eccart.

https://forum.ubuntu-fr.org/viewtopic.p … #p21803028

merci


Si je viens ici, c'est pour avoir des avis des conseils de gens avisés. Ce que vous êtes. Les autres devraient aller sur CCM pour se vanter. Pour ma part, je ne suis qu'un novice depuis 10 ans et je continuerai à l'être.

En ville, soyez sympas n'utilisez pas les places pour handicapés.... elles sont pour.... les handicapés. Merci pour eux

Hors ligne

#38 Le 29/09/2017, à 19:09

cqfd93

Re : [Résolu] Récupération ecryptfs sur disque externe

Compte anonymisé ne risque pas de te répondre : c'est un ancien membre qui a demandé à supprimer son compte et à anonymiser ses messages. Toute trace de ce membre a disparu du forum.


cqfd93

Hors ligne