4

I've just installed Ubuntu 20.04 on my machine, choosing the option to Erase disk and install ubuntu with the advanced option Use LVM with the new Ubuntu installation with encryption. Installation went fine but now when I boot I'm greeted by the GRUB console.

Only way to login is to enter the exit command in the GRUB console.
I'm then prompted with the message : Please unlock disk sda6_crypt, upon entering the password the login screen opens up and all is fine.

My question is : is there no way to bypass this step and go straight for the login screen without entering the GRUB console and having to insert the disk cryptography secret everytime?

8
  • 1
    If you installed with encryption, the encryption would be pointless if you can get to the login screen without decryption. To get your system booted to the point where login is operating, a lot of your file-system would need to be visible (meaning unencrypted). An encrypted $HOME directory allows for you to get to the login screen (and only user files are encrypted, not system files allowing the code before login to be run), but it reads like you opted for full disk encryption which requires key to unlock before you can boot.
    – guiverc
    Oct 9, 2020 at 8:44
  • FYI: My current desktop has encrypted $HOME (an older Ubuntu install), so anyone can turn it on and get to the login/greeter screen (they just can't read my files within my $USER directory). However for any laptop or device that isn't bound to a desk, I use full-disk encryption.
    – guiverc
    Oct 9, 2020 at 8:47
  • @guiverc Ah well damn so it is actually the feature, neat bit more security. Thanks a lot, thinking about it makes perfect sense. Might be overkill for my personal setup tho. Would you like to post the comments as an answer so I can close the thread?Thanks again
    – MFranc
    Oct 9, 2020 at 8:56
  • 1
    @guiverc I believe MFranc is actually bringing up a real problem when GRUB is not working quite right. You shouldn't have to type exit to get past this screen. If the only OS is Ubuntu, GRUB shouldn't be shown at all. But yes, for full disk encryption, the decryption password must be entered on the prompt: Please unlock disk sdx#_crypt
    – Nmath
    Oct 22, 2020 at 5:26
  • 1
    @guiverc - that's not how full disk encryption is supposed to work... GRUB is broken here. GRUB should pass off immediately to the decryption prompt and shouldn't even show up unless a dual boot config. In that case you would get choice of boot. Any time you have a command prompt @ GRUB, that's a problem MFranc: go over the link I posted in my comment. You probably need to repair GRUB. Maybe that's all you need to do. Maybe your EFI partition was already "messy" before you installed Ubuntu. Did you format the disk ahead of time? (You should)
    – Nmath
    Oct 22, 2020 at 16:08

1 Answer 1

2

If you installed with encryption, that encryption would be pointless if you can get to the login screen without decryption.

To get your system booted to the point where login is operating, a lot of your file-system would need to be visible (meaning unencrypted).

An encrypted $HOME directory allows for you to get to the login screen (where only user files are encrypted, not system files allowing the code before login to be run), but it reads like you opted for full disk encryption which requires the key to unlock before you can boot.

My current desktop has encrypted $HOME, so anyone can turn it on and get to the login/greeter screen (they just can't read my files within my $USER directory until logging in). However for any laptop or device that isn't bound to a desk, I use full-disk encryption.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .