Author Topic: [WORKAROUND-FOUND] Peppermint 7 ... full disk encryption  (Read 5591 times)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #15 on: September 09, 2016, 01:41:38 pm »
Well let's try to keep encryption first eh as itMUST be working if you can boot recovery mode ;)

Okay does the system have an active internet connection in recovery mode ?

If so, open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get updatethen
Code: [Select]
sudo apt-get upgradethen
Code: [Select]
sudo apt-get dist-upgradeonce completed, see if the system will reboot normally.

If not, boot into recovery mode again and try installing the 4.7.2 kernel via these instructions...

Open a terminal and run these commands in sequence:
Code: [Select]
mkdir ~/Desktop/kernel-4.7.2then
Code: [Select]
cd ~/Desktop/kernel-4.7.2then
Code: [Select]
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702-generic_4.7.2-040702.201608201334_amd64.debthen
Code: [Select]
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702_4.7.2-040702.201608201334_all.debthen
Code: [Select]
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-image-4.7.2-040702-generic_4.7.2-040702.201608201334_amd64.debthen
Code: [Select]
sudo dpkg -i *.debthen REBOOT normally and see if it'll boot properly

Once rebooted, check which kernel you're using with
Code: [Select]
uname -a
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #16 on: September 10, 2016, 12:03:19 am »
 I appreciate all your help. Yes, agreed, encryption does appear to be working in recovery mode .. it's just not prompting me for the key during normal boot.

OK, first three commands seem to execute successfully.  I reboot and it still hangs at 'Starting Up', so back to recovery mode. Now I notice Update Manager is offering a few updates so I install these too before reboot  .. still hangs.

Commands to install kernel 4.7.2 appear to run successfully, so reboot .. and it still hangs at 'Starting Up'. Back to dear-old recovery mode .. output from 'uname -a' is:

Code: [Select]
Linux greg-Aspire-E5-573 4.7.2-040702-generic #201608201334 SMP Sat Aug 20 17:37:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
« Last Edit: September 10, 2016, 12:39:12 am by AndyInMokum »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Peppermint 7 ... Starting UP
« Reply #17 on: September 10, 2016, 12:41:14 am »
Hi Gre9J, for future reference, could you please remember to encapsulate terminal outputs with the Insert, Code # function.  For extra long outputs, please use the Spoiler, Sp function.  Don't combine the functions.  Only use one or the other  ;).  These preserve the original format of the output.  This makes it easier for future visitors to relate to their own issues.  These functions are found in the forum editor, above the,  :-[ Embarrassed and  the :'( Cry emoticon respectively.  Use the Preview button to see how it'll look in the forum.  This time, I've done it for you - many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #18 on: September 10, 2016, 02:33:09 am »
Can you post the output from
Code: [Select]
inxi -Fwhilst running in recovery mode.

and post the contents of your
Code: [Select]
pluma /etc/fstaband
Code: [Select]
pluma /boot/grub/grub.cfg
Meanwhile I'll try an encrypted install in a VM
« Last Edit: September 10, 2016, 02:34:49 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #19 on: September 10, 2016, 04:08:36 am »
Hello AndyInMokum  :) Please accept my apology for that. Thanks for fixing it on this occasion.

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #20 on: September 10, 2016, 04:18:41 am »
Here's the outputs PCNetSpec:

Spoiler (click here to view / hide)
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #21 on: September 10, 2016, 05:44:18 am »
Okay all "recovery mode" options have the "nomodeset" kernel boot parameter set .. normal boots do not.

Shall we try adding "nomodedset" to the regular kernel boot line ?

Open a terminal and run:
Code: [Select]
sudo pluma /etc/default/grubfind the line that reads
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"and change it to read
Code: [Select]
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"SAVE the file and exit pluma

Back in the terminal run:
Code: [Select]
sudo update-grubWhen that completes, reboot to test.

If that works .. does it leave you with a low screen resolution ?
« Last Edit: September 10, 2016, 05:51:30 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Peppermint 7 ... Starting UP
« Reply #22 on: September 10, 2016, 06:04:21 am »
Hello AndyInMokum  :) Please accept my apology for that. Thanks for fixing it on this occasion.
No problem, you weren't expected to know automatically  ;D.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #23 on: September 10, 2016, 09:28:16 am »
PCNetSpec I regret to report that after editing grub according to your instruction I'm still hanging at 'Starting Up' .. still no prompt for the encryption key.

Here's the content of my current /etc/default/grub:

Spoiler (click here to view / hide)
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #24 on: September 10, 2016, 09:40:44 am »
Can you post the contents of:
Code: [Select]
pluma /boot/grub/grub.cfgagain please.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #25 on: September 10, 2016, 10:53:26 am »
My pleasure  :)

Spoiler (click here to view / hide)
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #26 on: September 10, 2016, 12:07:53 pm »
can you test something for me

boot normally and wait until the PC appears to freeze .. give it a few more seconds, then try typing in your encryption key and then hit enter.

did it boot ?

Here's the reason I ask
https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1370707
it may be the $vt_handoff parameter that's blocking displaying of the key entry dialog .. we can fix this, but it would be nice to know if that's what it is.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #27 on: September 10, 2016, 12:44:58 pm »
Sorry PCNetSpec, no luck with that.

While trying your suggestion I noticed something has changed. It now echoes whatever I type to the screen. For example hitting ESC, then Alt-SysRq R E I S U produces this:



I don't know if that's relevent. Maybe a result of the new kernel?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Peppermint 7 ... Starting UP
« Reply #28 on: September 10, 2016, 01:32:13 pm »
Okay try this

Boot to the GRUB menu .. leave the top option selected and hit the "E" key to edit .. find the line

linux   /vmlinuz-4.7.2-040702-generic root=/dev/mapper/peppermint--vg-root ro  quiet splash nomodeset $vt_handoff

and change it to

linux   /vmlinuz-4.7.2-040702-generic root=/dev/mapper/peppermint--vg-root ro

Now hit Ctrl+X or F10 to continue booting

what happened ? .. did it boot, or maybe give us a clue where it's hanging ?
« Last Edit: September 10, 2016, 01:33:50 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Gre9J

  • Newly Subscribed
  • *
  • Posts: 20
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6
Re: Peppermint 7 ... Starting UP
« Reply #29 on: September 10, 2016, 01:59:40 pm »
Doing that looks similar to recovery mode. Lots of scrolling text until it prompts for the encryption key. I enter it, then, more scrolling text before I arrive at the desktop.

I wish I could buy you a beer, or, two or three or four or five  :D I really appreciate your help, enthusiasm and dedication.

I'm about to go offline for the night. Tomorrow I'm out of town for the best part of the day, so it will probably be 24 hours before I get back to this.