0

I have the following partitioning:

   |------+-------------+-----------+------+-------+----------------|
   | Name | Mount point | Flag      | Size | FS    | Comment        |
   |------+-------------+-----------+------+-------+----------------|
   | sda1 | /boot/efi   | esp, boot | 300M | FAT32 |                |
   | sda2 | /boot       |           | 2G   | EXT4  |                |
   | sda3 | /           |           |      | LUKS  | Encrypted Arch |
   | sda4 | /           |           |      | EXT4  | Clear Arch     |
   |------+-------------+-----------+------+-------+----------------|

I would like to be able to choose between an encrypted Arch and a clear Arch at boot.

  • Encrypted Arch's /boot is on sda2
  • Clear Arch's /boot is on sda4

It is the first time I try to repair grub. I read that I should use grub-install, but I cannot find tutorials that would apply to my specific partitioning.

3
  • The Arch wiki should contain all you need. wiki.archlinux.org/title/GRUB#Installation
    – PonJar
    Nov 13, 2022 at 12:40
  • As far as I understand it, in this tutorial, /boot and / are part of the same partition.
    – crocefisso
    Nov 13, 2022 at 13:38
  • 1
    There is a very long guide to this kind of thing here. wiki.archlinux.org/title/Dm-crypt/… Unfortunately none of the examples match your objectives but you may find something that helps. I would go through this carefully and if you still cannot configure it as you want ask on the Arch forums. There are some very capable people on there but they do expect you to have done your research first
    – PonJar
    Nov 16, 2022 at 10:45

1 Answer 1

0

Have an encrypted and a clear GNU/Linux available at boot

  1. Prepare a partition for /boot/efi and a partition for /boot in gparted

    Name Mount point Flag Size FS Comment
    sda1 /boot/efi esp, boot 300M FAT32
    sda2 /boot 2G EXT4
    sda3 EXT4 Encrypted
    sda4 EXT4 Clear
  2. Install clear GNU/Linux on sda4 At manual paritioning step

    • Select sda1
      • Format FAT32
      • Flag esp boot
      • Mount /boot/efi
    • Select sda4
      • Format EXT4 /
      • Mount /
  3. Install crypted GNU/Linux on sda3 At manual paritioning step, check encrypt

    • Select sda1
      • Mount /boot/efi
    • Select sda2
      • Format EXT4
      • Mount /boot
    • Select sda3
      • Delete partition
      • Create parition
      • Check crypt and enter passphrase
      • Mount /
  4. Edit grub

    • From crypted GNU/Linux do

      sudo gedit /etc/default/grub 
      
    • Enable os-prober by uncommenting #GRUB_DISABLE_OS_PROBER=false

    • Do

      sudo grub-mkconfig -o /boot/grub/grub.cfg
      reboot
      
  5. Notes To have the passphrase aked after kernel selection,

    • encrypted GNU/Linux kernels have to be stored on a specific /boot/efi partition (sda2)
    • clear GNU/Linux kernels have to be stored in the same partition as clear GNU/Linux (sda4)

Install an encrypted and a clear GNU/Linux Arch available at boot with EOS

First step: Install Clear GNU/Linux

  • Manual partitioning
    1. New Parition table → GUID (GPT)

    2. Paritions:

      Size FS MP Flag
      New 1GO Fat32 /efi "boot
      New 2GO Ext4 /boot
      New 350GO Ext4
      New 100GO Ext4 /

Second step: Install Clear GNU/Linux

  • Manual partitioning
    1. Paritions:

      Size FS MP Flag
      Modify 1GO Fat32 /efi "boot Conserver
      Modify 2GO Ext4 /boot Conserver
      New 350GO Ext4* / Formater
      100GO Ext4

      *tick « encrypted ». If the box doesn't appear, change the format (e.g. luks), confirm and choose ext4 again.

You must log in to answer this question.

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