Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed Debian on an Encrypted Hard Drive with a USB flash drive boot key
So /boot is on USB drive the rest is on the encrypted hard drive.
First setup i made the harddisk with a passphrase and then i made a random data 4 kilobyte key file to unlock my harddrive.
This file is /boot/keyfile.gpg
It worked fine, i just insert my usb flash drive and it will start my Debian OS and decrypts the hard drive for me.
Then the problem started. The USB flash drive stopped working, if i start it it says there is no operating system. So i can't start from the USB drive.
Luckely i also have another hard disk in my system with Mint installed. So if i boot into Mint and look at the mounted drives i can see the encrypted drive. I still have (the non booting usb drive) with the keyfile.gpg on it, but i have no idea how i can use that keyfile to decrypt my hard drive. If i click the harddrive it wants a passphrase and there is no option to load a keyfile.
So in my opinion i have 2 option:
1. Make the USB drive bootable again, without destroying the /root and keyfile
2. Decrypt the hard drive with some tool using the keyfile.
What is the best (and working) method to decrypt my drive and get the data off and then reinstall the OS again?
You didn't mention your USB drive backup. If you didn't back up, that's a newbie error.
What goes wrong when you try to boot from the USB drive?
Yes you are correct, i didn't back up my USB drive...
If i boot from my USB drive it says no operating system, it looks like the USB is not bootable anymore. I can still open it (in mint) and see the files on it. but no more booting...
Yes you are correct, i didn't back up my USB drive...
If i boot from my USB drive it says no operating system, it looks like the USB is not bootable anymore. I can still open it (in mint) and see the files on it. but no more booting...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.