I can’t boot to my 16.04 My drive is encrypted, see details here: http://paste.ubuntu.com/p/MGMMQMzZcH/
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 1000214527 999213058 476.5G 5 Extended
/dev/sda5 1001472 1000214527 999213056 476.5G 83 Linux I have two questions:
I am desperate to fix it, but not sure how exactly to do so?
How to access data on /dev/sda5?
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
To fix your issue and access the data on /dev/sda5, you can follow these steps:
sudo cryptsetup luksDump /dev/sda5sudo cryptsetup luksOpen /dev/sda5 crypt_sda5. You’ll be prompted to enter your passphrase./dev/mapper/crypt_sda5. Mount this using: sudo mount /dev/mapper/crypt_sda5 /mnt/mntFor more detailed instructions, please follow this DigitalOcean tutorial on using dm-crypt to create an encrypted volume in Ubuntu. Reach out if you need further assistance!
Hope that this helps!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
Here’s what you can do to resolve this:
sudo apt-get update && sudo apt-get install cryptsetup lvm2sudo cryptsetup luksOpen /dev/sda5 cryptdisk --key-file <(echo -n "passphrase")sudo vgchange -ayFor more information on encrypted disks in Ubuntu, you can refer to this guide: https://help.ubuntu.com/community/EncryptedFilesystemsViaUbiquity
Please let me know if you need more help!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.