Pages : 1
Discussion fermée
#1 Le 13/03/2020, à 19:36
- milan88888888
Changer mot de passe -- disque dur chiffré
Bonjour, je suis sur unbuntu derniere version et jaimerais changer le mot de passe de mon disque chiffré
─[XXXXX@Unbuntu]─[~]
└──╼ $sudo fdisk -l
[sudo] Mot de passe de XXXXX :
Disk /dev/nvme0n1: 113 GiB, 121332826112 bytes, 29622272 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 254 29622015 29621762 113G 5 Extended
/dev/nvme0n1p5 256 29622015 29621760 113G 83 Linux
Disk /dev/nvme0n2: 8 KiB, 8192 bytes, 2 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sda: 14,47 GiB, 15527313408 bytes, 30326784 sectors
Disk model: USB DISK 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 3905535 3903488 1,9G ef EFI (FAT-12/16/32)
/dev/sda2 3905536 30324735 26419200 12,6G 83 Linux
Disk /dev/mapper/nvme0n1p5_crypt: 112,101 GiB, 121313951744 bytes, 29617664 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/debian--vg-root: 98,8 GiB, 105310584832 bytes, 25710592 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/debian--vg-swap: 14,92 GiB, 16001269760 bytes, 3906560 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/loop0: 24,73 MiB, 25915392 bytes, 50616 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 445,15 MiB, 466771968 bytes, 911664 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 54,66 MiB, 57294848 bytes, 111904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop3: 44,9 MiB, 47063040 bytes, 91920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
┌─[XXXXX@Unbuntu]─[~]
└──╼ $
Ici mon disque chiffré est : /dev/mapper/nvme0n1p5_crypt
dois-je utiliser cette commande pour changer mon mot de passe ?
--> sudo cryptsetup luksAddKey /dev/mapper/nvme0n1p5_crypt
(ajouter une clé)
--> sudo cryptsetup luksRemoveKey Disk /dev/mapper/nvme0n1p5_crypt
(enlever la clé en question)
ou bien faire --> "sudo cryptsetup luksChangeKey" mais askip c'est pas tres fiable (ca beug beaucoup)
Merci davance de votre aide
merci davance à tous
.
DOUBLON. On ferme. La suite là-bas. Et pour les questions concernant Debian, s'adresser à un forum Debain.
Dernière modification par cqfd93 (Le 13/03/2020, à 19:41)
Hors ligne
Pages : 1
Discussion fermée