-
read LinuxMintInstallation guide
at Install Linux Mint — Linux Mint Installation Guide documentation -
Installation
- Wrote linuxmint-21.2-cinnamon-64bit.iso to Live-USBstick with
remsu /usr/bin/sparky-live-usb-creator - Booted the Framework 16 from this Live-USBstick
- 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. - Partitioning step failed with
ubi-partman failed with exit code 10 - https://forums.linuxmint.com/viewtopic.php?t=68510 recommends adding
nodmraidin the GRUB boot menu to the end of the Linux boot line, after
... quiet splash -- - USB-Stick now boots and starts install Ok
- Chose to deny installation of Multimedia drivers, because the installer demanded SecureBoot,
- At first chosen Standard Partitioning to look what partitions will appear, and completed the installation. Partitions on my 500 GB drive were:
- 500 MB EFI
- 500 GB Linux
- Wrote linuxmint-21.2-cinnamon-64bit.iso to Live-USBstick with
-
Booted from Live-USBstick to modify partitions to my taste:
- 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) - For the next Boot pressed F2 to enter BIOS setup and deactivated
Enforce Secure Boot - The next Boot from Live-USBstick worked Ok
- Changed Partitions to my preference
(Install made a GPT partition table, therefore all partitions are “primary”):- EFI 500 MB (unchanged)
- Linux 500 GB → 100 GB (resized)
- Home 78698 MB (new)
- Data 300 GB (new)
- Swap 16400 MB (new), mainly for Hibernate
- Boot from Live-USBstick fails in BIOS stage:
-
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/`)- Add the intended mountpoints for the new partitions
- Get the partition UUIDs with
sudo blkid - In
/etc/fstabadd 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 relevantUUID={value}.
- Get the partition UUIDs with
- Add the intended mountpoints for the new partitions
-
Enable Hibernation (LinuxMint 21.4 and the matching Ubuntu apparently disabled this)
- Prepare the Swap partition for Hibernate resume
- Power management/Suspend and hibernate - ArchWiki says that the value in
/sys/power/image_sizeis good estimate for the needed swap space size to hibernate. My freshly installed Linux Mint said:
6307745792
or about 6 GB. - Get the UUID of the Swap Partition:
sudo blkid - In
/etc/default/grubmodify:
GRUB_CMDLINE_LINUX="nodmraid"
to
GRUB_CMDLINE_LINUX="nodmraid resume=uuid=..."
using the found blkid value afteruuid=
- Power management/Suspend and hibernate - ArchWiki says that the value in
- Activate hibernate like in https://forums.linuxmint.com/viewtopic.php?f=42&t=273202 “3. Enable hibernation in the shutdown menu”:
- You’ll need to install polkitd-pkla and it’s dependencies first:
sudo apt install polkitd-pkla - 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 - 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 - 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 …”.
- You’ll need to install polkitd-pkla and it’s dependencies first:
- Prepare the Swap partition for Hibernate resume
-
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)
- change in
/etc/default/grubthe lines
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
to
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5 sudo update-grubsudo reboot
- change in
-
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