Skip to content

Instantly share code, notes, and snippets.

@retpolanne
Created October 5, 2019 19:44
Show Gist options
  • Save retpolanne/7ad19231c7bf0eaa3d4db527b3b5aa6a to your computer and use it in GitHub Desktop.
Save retpolanne/7ad19231c7bf0eaa3d4db527b3b5aa6a to your computer and use it in GitHub Desktop.

Mounting LUKS root disk on Ubuntu 19.04 (if your current root disk is also encrypted)

I had some trouble mounting a LUKS device recently, so I decided to make this gist.

So, it looks like Ubuntu already does the job of doing luksopen on your device, so you don't have to worry about it.

In order to mount it, I had to:

  1. Find the VG UUID of my drive with vgdisplay
  2. Rename it to something else with vgrename
  3. Mount it from /dev/mapper/...

https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member https://www.svennd.be/mount-unknown-filesystem-type-lvm2_member/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment