Mounting and Unmounting a LUKS Encrypted USB Volume
| Use the following commands to view the disks/USB devices: |
- blkid
- duf
- lsblk
- lsblk -a
- lsblk -o +UUID,PARTUUID
- lsblk -o +UUID,FSTYPE,PARTUUID
- ls -lF /dev/disk/by-id
- sudo lshw -short -C disk
- sudo udisksctl info -b /dev/??
|
| 01. USB drive has not been inserted (plugged in) yet. |

|
| 02. GUI password prompt when drive is plugged in (I clicked cancel to demonstrate mounting from commandline). |

|
| 03. USB drive inserted (plugged in) and showing as /dev/sdm1. |

|
| 04. udiskctl showing /dev/sdm1 as "crypto_LUKS". |

|
| 05. Trying to mount the locked LUKS encrypted volume (Failed because volume is locked. Run cryptsetup first to unlock.). |

|
| 06. Running cryptsetup to unlock the encrypted volume (Assigning alias of "2T_SSD" to reference the unlocked volume. The alias can be whatever you want.). |

|
| 07. Decrypted volume showing the 2T_SSD alias, but not yet mounted. |

|
| 08. Decrypted volume alias "2T_SSD" showing under /dev/mapper. |

|
| 09. Password prompt when using sudo to mount decrypted 2T_SSD volume to /dev/m. |

|
| 10. Decrypted volume showing unlocked and mounted at /mnt/m. |

|
| 11. Unmounting /mnt/m. |

|
| 12. Closing cryptsetup session (Locking it). |

|
| 13. USB drive unmounted and unplugged from system. |

|