[RESPONDED] Mint on Framework 16?

  1. read LinuxMintInstallation guide

    at Install Linux Mint — Linux Mint Installation Guide documentation
  2. Installation

    1. Wrote linuxmint-21.2-cinnamon-64bit.iso to Live-USBstick with
      remsu /usr/bin/sparky-live-usb-creator
    2. Booted the Framework 16 from this Live-USBstick
      1. Chose to deny installation of Multimedia drivers, because the installer demanded SecureBoot,
        read later that Ubuntu und LinuxMint at the moment (see below) do not recommend SecureBoot, because the UEFI boot shim were deprecated.
      2. Partitioning step failed with
        ubi-partman failed with exit code 10
      3. https://forums.linuxmint.com/viewtopic.php?t=68510 recommends adding nodmraid in the GRUB boot menu to the end of the Linux boot line, after
        ... quiet splash --
      4. USB-Stick now boots and starts install Ok
    3. At first chosen Standard Partitioning to look what partitions will appear, and completed the installation. Partitions on my 500 GB drive were:
      1. 500 MB EFI
      2. 500 GB Linux
  3. Booted from Live-USBstick to modify partitions to my taste:

    1. Boot from Live-USBstick fails in BIOS stage:
      usb stick verification failed 0x1a security violation
      Gelöst - Linux Mint: Installation: Verification failed (0X1A) Security Violation | Linux Club - Support Forum für GNU/Linux (german)
      die eigentliche Problemursache ist ein veralteter Bootloader (shim). Das Abschalten von secureboot ist lediglich eine Umgehungslösung.
      (the real cause of the problem is a deprecated boot loader (shim). The deactivation of secureboot is only a stop gap)
    2. For the next Boot pressed F2 to enter BIOS setup and deactivated
      Enforce Secure Boot
    3. The next Boot from Live-USBstick worked Ok
    4. Changed Partitions to my preference
      (Install made a GPT partition table, therefore all partitions are “primary”):
      1. EFI 500 MB (unchanged)
      2. Linux 500 GB → 100 GB (resized)
      3. Home 78698 MB (new)
      4. Data 300 GB (new)
      5. Swap 16400 MB (new), mainly for Hibernate
  4. Migrate the encrypted /home/{username} directory from the Linux partition to the new Home partition

     1. `sudo bash` to do this with root permissions
     2. Mount the Home partition somewhere, like f.e. `/mnt`
     3. I started `mc` with `sudo`
     4. With `mc` i copied `/home/*` to `/mnt/`, including
        * `/home/.ecryptfs`
        * `/home/$USER`
         (https://askubuntu.com/questions/17332/how-can-i-move-an-encrypted-home-directory-to-another-partition recommends using rsync:
         `sudo rsync -aVP /home/ /media/home/`)
    
    1. Add the intended mountpoints for the new partitions
      1. Get the partition UUIDs with
        sudo blkid
      2. In /etc/fstab add lines similar to the one of the Linux partition for the new partitions, only changing the UUID values and desired Mountpoints:
        • Home mount on /home
        • Data mount on /mnt/data
          For swap, replace the swapfile reference with the relevant UUID={value}.
  5. Enable Hibernation (LinuxMint 21.4 and the matching Ubuntu apparently disabled this)

    1. Prepare the Swap partition for Hibernate resume
      1. Power management/Suspend and hibernate - ArchWiki says that the value in /sys/power/image_size is good estimate for the needed swap space size to hibernate. My freshly installed Linux Mint said:
        6307745792
        or about 6 GB.
      2. Get the UUID of the Swap Partition:
        sudo blkid
      3. In /etc/default/grubmodify:
        GRUB_CMDLINE_LINUX="nodmraid"
        to
        GRUB_CMDLINE_LINUX="nodmraid resume=uuid=..."
        using the found blkid value after uuid=
    2. Activate hibernate like in https://forums.linuxmint.com/viewtopic.php?f=42&t=273202 “3. Enable hibernation in the shutdown menu”:
      1. You’ll need to install polkitd-pkla and it’s dependencies first:
        sudo apt install polkitd-pkla
      2. Open terminal and run the following commands to create and edit the configuration file:
         sudo touch /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
         xed admin:///etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
        
      3. When the file opens, copy and paste the following content into the file and save it:
        [Re-enable hibernate by default in upower] 
        Identity=unix-user:* 
        Action=org.freedesktop.upower.hibernate 
        ResultActive=yes
        
        [Re-enable hibernate by default in logind]
        Identity=unix-user:* 
        Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
        ResultActive=yes
        
      4. For KDE and the default GNOME Desktop, there’s a few steps more to do.
        Look in the web URL above after “For KDE user, try this one …”.
  6. Enable the GRUB menu at boot with a timeout of more than 0 seconds (see grub2 - How to get to the GRUB menu at boot-time? - Ask Ubuntu)

    1. change in /etc/default/grub the lines
      GRUB_TIMEOUT_STYLE=hidden
      GRUB_TIMEOUT=0
      to
      GRUB_TIMEOUT_STYLE=menu
      GRUB_TIMEOUT=5
    2. sudo update-grub
    3. sudo reboot
  7. Status right now:

    • (non-Secure)Boot works,
    • the encrypted home directory still works after copy,
    • the Grub menu appears instead of silently starting the default entry
    • Kernel 5.15… that came with the ISO runs Ok
    • Kernel 6.1.0-21 installs and runs Ok
    • now i could start adding Applications.
5 Likes