I have my external drives setup with LUKS + password. I would like to increase the security to password + keyfile. For internal storage this seems to be trivial but I'm not sure how to approach this for an external drive.
/dev/sdX seems like a poor choice for external drives and I can't find the UUID for the USB-drive.
blkid- this gives the UUID for the local LUKS drives e.g. `/dev/sdc1' but not for any of the external drives with LUKS
sudo dmsetup deps -o devnamereturns the drives e.g.
(sdc1)but no UUID.
cat /proc/mountsgives me where the LUKS mappers are mounted but not anything more detailed.
- I've tried unmounting a drive but that didn't do that much good and the drive seems to still be mapped in
Using lsblk as suggested by AlexP
lsbslk output does give the UUID but it isn't trivial to interpret:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT NAME MOUNTPOINT UUID sda 8:0 0 477G 0 disk sda ├─sda1 8:1 0 512M 0 part /boot/efi ├─sda1 /boot/efi F2BB-F970 ├─sda2 8:2 0 412,5G 0 part / ├─sda2 / 4d1c2b61-d9eb-4a3f-b4cf-fae15479670c └─sda3 8:3 0 63,9G 0 part └─sda3 31b267cb-c89f-4662-a68b-74667fb26b48 └─cryptswap1 252:0 0 63,9G 0 crypt [SWAP] └─cryptswap1 [SWAP] b854bc4f-e822-4917-9373-18eba9b2eb35 ... sde 1a3d7d94-373e-4087-aadd-0b3ce09078b5 └─luks-1a3d7d94-373e-4087-aadd-0b3ce09078b5 252:4 0 16,4T 0 crypt /media/musr/Ext_icy └─luks-1a3d7d94-373e-4087-aadd-0b3ce09078b5 /media/musr/Ext_icy 42d1104f-3a51-4950-ac70-f3ea1148760c
It looks like there are two UUID's reported for
sde - one for the drive and one for the mounted LUKS