Choose style:

Author Topic: Updating grub when one drive is encrypted and the other isn't  (Read 310 times)

0 Members and 1 Guest are viewing this topic.

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3611
  • Karma: 284
  • Soy un huevo que adora Peppermint.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin (64-bit)
Updating grub when one drive is encrypted and the other isn't
« on: December 26, 2018, 10:29:59 pm »
Hello Peppermint,

Long story made short:  My internal drive has an encrypted Linux Mint installation while my external drive has an unencrypted installation of Peppermint 9..  I've updated GRUB from both Peppermint and Mint, but now when I reboot, I end up back in whatever distribution I'm rebooting in,  I would like to see both options when I reboot, but boot into Peppermint by default first.

My system configuration is set to boot from a USB drive before an internal drive, and I always could see two distributions, or OSes, in the GRUB menu before tonight.  After installing an encrypted version of Mint, I cannot boot into Peppermint from Mint, and I can't boot into Mint from Peppermint either.

I've got hit the sack, but any thoughts on this matter would be appreciated.  Is there an other command I should use other then sudo update-grub? :-\

Thank you,

perknh 
We're all Peppermint users and that's what matters  ;). -- AndyInMokum

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 23524
  • Karma: 2615
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #1 on: December 27, 2018, 07:59:55 am »
Do you "see" both OS options from both OS's ?

Is this a legacy BIOS or UEFI system ?

is the ONLY problem that you'd like Peppermint to be the first boot option in Mint ?

You do know you can tell GRUB to 'remember' the last booted OS and make that the one it boots into next right ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3611
  • Karma: 284
  • Soy un huevo que adora Peppermint.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin (64-bit)
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #2 on: December 27, 2018, 08:21:12 am »
Hello PCNetSpec,

Quote
Do you "see" both OS options from both OS's ?

I see that Mint recognizes Peppermint.  I don't see that Peppermint recognizes Mint, but neither one gives me the a list of boot options when I reboot my computer.

Quote
Is this a legacy BIOS or UEFI system ?

Legacy.

Quote
is the ONLY problem that you'd like Peppermint to be the first boot option in Mint ?

Ideally, I'd like both distros to recognize each other, but, yes, I want to have my external drive boot first, and that is where Peppermint is installed.

Quote
You do know you can tell GRUB to 'remember' the last booted OS and make that the one it boots into next right ?

No, I didn't know about that, and that is interesting, but I'm using Mint for Skype. I had Windows 10 for Skype before, but I got too fed up with it.  Also, I don't like the global permissions Skype requires of its Linux users. I want Skype in one universe and the rest of my online life (using Peppermint) in another.


« Last Edit: December 27, 2018, 08:46:20 am by perknh »
We're all Peppermint users and that's what matters  ;). -- AndyInMokum

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3611
  • Karma: 284
  • Soy un huevo que adora Peppermint.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin (64-bit)
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #3 on: December 27, 2018, 03:58:32 pm »
Progress!

I removed and then again attached Peppermint -- which is housed externally to my computer -- when I was in Mint.  This caused Mint to recognize my external hard drive again, and I can now boot from Mint to Peppermint! :)

However, when I'm in Peppermint and run sudo update-grub, I get this instead of an acknowledgement of Mint. :-\

Code: [Select]
perknh@peppermint ~ $ sudo update-grub
[sudo] password for perknh:
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.15.0-43-generic
Found initrd image: /boot/initrd.img-4.15.0-43-generic
Found linux image: /boot/vmlinuz-4.15.0-42-generic
Found initrd image: /boot/initrd.img-4.15.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
perknh@peppermint ~ $

I'm almost wondering if Peppermint thinks it's looking at itself.  Both drives are PNY SSDs, and both are running derivatives of Ubuntu 18.04.1.  Might this be thowing off my system?  Anyway, I can now get into Mint if I reboot and then tap my F12 key.  That allows me to scroll down to my internal drive to get into Mint.  I consider this progress, and, since I don't use Skype much, this really is not a Big Woo. ;)
« Last Edit: December 27, 2018, 04:14:44 pm by perknh »
We're all Peppermint users and that's what matters  ;). -- AndyInMokum

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 23524
  • Karma: 2615
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #4 on: December 27, 2018, 08:43:41 pm »
What do you get if you run
Code: [Select]
sudo update-grub
in Mint ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3611
  • Karma: 284
  • Soy un huevo que adora Peppermint.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin (64-bit)
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #5 on: December 27, 2018, 09:37:51 pm »
What do you get if you run
Code: [Select]
sudo update-grub
in Mint ?


I get this:

Code: [Select]
perknh@mintessa:~$ sudo update-grub
[sudo] password for perknh:           
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-43-generic
Found initrd image: /boot/initrd.img-4.15.0-43-generic
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Peppermint 9 Nine (9) on /dev/sdb1
done
perknh@mintessa:~$
We're all Peppermint users and that's what matters  ;). -- AndyInMokum

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 23524
  • Karma: 2615
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #6 on: December 28, 2018, 09:57:24 am »
Okay now you just wanna set the drive Mint is on as the primary boot device.
(it should be anyway if it's the internal drive)

Then you can (if you wish) tell Mints GRUB to either

a) load Peppermint first
or
b) boot the last booted OS first.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3611
  • Karma: 284
  • Soy un huevo que adora Peppermint.
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin (64-bit)
Re: Updating grub when one drive is encrypted and the other isn't
« Reply #7 on: December 30, 2018, 08:37:35 am »
a) load Peppermint first
or
b) boot the last booted OS first.

Mint has been booting Peppermint first.  It's Peppermint that hasn't been showing the boot menu for Mint.  I believe the reason for this is because Mint's disk was fully encrypted.  What this tells me is that this encryption feature is so powerful in Linux that it can not only encrypt a disk, but it nearly cloaks it too. That's quite impressive.  Again, I've got to give kudos to GNU Linux OS.

What I'm going to do here is reinstall Mint unencrypted.  I'm just trying to isolate Skype from Peppermint because I keep reading that Skype has global permissions in Linux. On the other hand, maybe what I'm doing is unnecessary now that we've got FlatPaks -- I don't know. :-\

Thanks, PCNetSpec, for bearing with me through this.  It looks to me that adding encryption to a drive throws a curve ball into the mix.  There may be unexpected consequences for doing so.
We're all Peppermint users and that's what matters  ;). -- AndyInMokum