Skip to content

Manjaro

gmircea edited this page Aug 1, 2024 · 19 revisions

GRUB problems

After install GRUB was not updated with the Manjaro entry. Using the live USB we can detect what's installed and then start Manjaro from sda - Detect EFi loaders

After starting the machine as root we can have a look in /boot/efi

#print info
efibootmgr -v

#delete old entries 
efibootmgr -b 0 -B

#add new entry
efibootmgr -c -L "Manjaro" -l '\EFI\Manjaro\grubx64.efi' -d <DISK>
# Tuxedo Pulse 15 Gen 2:
efibootmgr -c -L "Manjaro" -l '\EFI\Manjaro\grubx64.efi' -d /dev/nvme0n1

DISK defaults to /dev/sda

Now GRUB should use Manjaro as default.

GRUB fix after Windows reinstall

After Windows updated to new version, grub broken cannot boot in linux, windows can boot using F12 - bios menu

Error: unknown filesystem.
grub rescue>

How to repair GRUB

  1. Type the following command and press Enter:
ls
ls (hd0)
ls (hd0,gpt5)
ls (hd0,gpt5)/ 
../ lost+found/ etc/ media/ bin/ .....
set prefix=(hd0,gpt5)/boot/grub
set root=(hd0,gpt5)
ls /
insmod normal
normal

Do this for every partition until you see something, like:

grub rescue> ls (hd0,gpt5)/./ ../ lost+found/ etc/ media/ bin/ boot/ dev/ home/ lib/ mnt/ opt/ proc/ root/ run/ sbin/ selinux/ srv/ sys/ tmp/ usr/ var/ initrd.img initrd.img.old vmlinuz cdrom/ grub rescue>

In my example is (hd0,gpt5) the correct partition and I'll be using this partition as an example in the following steps, so don't forget to replace gpt5 with your correct partition.

  1. Type the following command and press Enter:
set prefix=(hd0,gpt5)/boot/grub

Don't forget to replace gpt5 with your partition.

  1. Type the following command and press Enter:
set root=(hd0,gpt5)

Don't forget to replace gpt5 with your partition.

  1. Type the following command and press Enter:
ls /
  1. Type the following command and press Enter:

insmod normal

  1. Type the following command and press Enter:
normal

The Grub will now open a boot menu and display all installed operating systems.

  1. Boot into Linux Mint or Ubuntu.

  2. Open a Terminal window.

  3. Type the following command and press Enter:

sudo update-grub
  1. Type the following command and press Enter:
sudo grub-install /dev/sda
  1. Close the Terminal.

This solution fixed my problem and hopefully, it will also fix your problem.

Fonts

Celcius was not working so I had to install noto-fonts.

Others are also recommended:

sudo pacman -S noto-fonts noto-fonts-emoji
sudo pacman -S ttf-roboto ttf-dejavu

Balint:

$ equery l media-fonts/*
 * Searching for * in media-fonts ...
[IP-] [  ] media-fonts/droid-113-r5:0
[IP-] [  ] media-fonts/encodings-1.0.4-r3:0
[IP-] [  ] media-fonts/font-util-1.3.1:0
[IP-] [  ] media-fonts/liberation-fonts-2.00.1-r3:0
[IP-] [  ] media-fonts/noto-20181024:0
[IP-] [  ] media-fonts/roboto-2.138:0
[IP-] [  ] media-fonts/terminus-font-4.46:0
[IP-] [  ] media-fonts/urw-fonts-2.4.9:0

Clean Tips

Clear your pacman cache, Remove software you don’t use, Kill the orphans! http://colinrrobinson.com/technology/linux/free-space-rootfs-arch-linux/

For recursively removing orphans and their configuration files:

# pacman -Qtdq | pacman -Rns -

The paccache(8) script, provided within the pacman-contrib package, deletes all cached versions of installed and uninstalled packages, except for the most recent three, by default. To retain only one past version use:

# paccache  -k 1 -r

https://wiki.archlinux.org/index.php/pacman#Cleaning_the_package_cache

Sort packages by size

# 1st step install expac
$ sudo pacman -S expac
# 2nd step run 
$ expac "%n %m" -l'\n' -Q $(pacman -Qq) | sort -rhk 2 | less

Gdu – A Pretty Fast Disk Usage Analyzer for Linux

$ gdu

Flicker at startup - different resolutions during boot

/etc/mkinitcpio.conf
MODULES=(... i915 ...)`

regenerate initram
# mkinitcpio -P

Early KMS start

grub error regarding disk filter writes

error:  Diskfilter writes are not supported

To fix it we need to comment the line GRUB_SAVEDEFAULT=true in the etc/default/grub then regenerate grub config:

grub-mkconfig -o /boot/grub/grub.cfg

Verbose mode at boot

In the etc/default/grub file, remove quiet from GRUB_CMDLINE_LINUX_DEFAULT then:

grub-mkconfig -o /boot/grub/grub.cfg

Discard/TRIM support for solid state drives (SSD)

If using a cryptsetup container you need to do this first: in the /etc/default/grub file, update GRUB_CMDLINE_LINUX adding allow-discards:

GRUB_CMDLINE_LINUX="cryptdevice=UUID=41f68d8b-0d4c-43f2-bc75-ae90035dde71:cryptroot:allow-discards"

Then continue with the following step:

Enable Periodic TRIM: Periodic TRIM

Start now and enable periodic operation:

systemctl start fstrim.service
systemctl enable fstrim.timer

Multiple monitors

While using multiple monitors, if the external one is on the left side (and the right one is set as the main display), the panel and the icons are displayed on the left one.

  • display icons on the main display: Right click on Desktop -> Desktop Settings ... -> Icons Tab -> Show icons on primary display

  • display panel on the main display: Right click on the panel -> Panel -> Panel Preferences... -> Output dropdown -> Primary

Clone this wiki locally