Can't find manjaro in grub

for comparision:

 maxi -gmeksf                                                                                                                                                                                                                                                                                           ✔  26s  
Currently running: 5.18.19-3-MANJARO (linux518)
 linux510 vmlinuz-5.10-x86_64∑ae49~021b initramfs-5.10-x86_64.img=33M fallback=102M∑<sha?>
 linux515 vmlinuz-5.15-x86_64∑dbd2~78e7 initramfs-5.15-x86_64.img=33M fallback=125M∑<sha?>
 linux518 vmlinuz-5.18-x86_64∑6cf0~7207 initramfs-5.18-x86_64.img=34M fallback=141M∑<sha?>
 linux519 vmlinuz-5.19-x86_64∑7a26~0ace initramfs-5.19-x86_64.img=35M fallback=141M∑<sha?>
Modules in: /lib/modules Checksumming all modules may take a while
 modules510 5.10.141-1-MANJARO=90M ∑219a~8920 extramodules-5.10-MANJARO=172K∑b7dc~95e3
 modules515 5.15.65-1-MANJARO =117M∑b6e5~420d extramodules-5.15-MANJARO=256K∑5fad~1a0b
 modules518 5.18.19-3-MANJARO =147M∑84f5~d28a extramodules-5.18-MANJARO=252K∑c627~ac37
 modules519 5.19.7-1-MANJARO  =196M∑19fe~ef9b extramodules-5.19-MANJARO=284K∑e1aa~05bc
Info about: /etc/default/grub
   GRUB_DEFAULT              =saved
   GRUB_TIMEOUT              =3
   GRUB_TIMEOUT_STYLE        =menu
   GRUB_DISTRIBUTOR          ="Manjaro"
   GRUB_CMDLINE_LINUX_DEFAULT="bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash modprobe.blacklist=ccp udev.log_priority=3 audit=0 sysrq_always_enabled=1"
   GRUB_CMDLINE_LINUX        =""
 # GRUB_SAVEDEFAULT          =true
   GRUB_SAVEDEFAULT          =false
   GRUB_PRELOAD_MODULES      ="part_gpt part_msdos"
 # GRUB_DISABLE_OS_PROBER    =false
   GRUB_DISABLE_OS_PROBER    =true
   GRUB_THEME                ="/usr/share/grub/themes/manjaro/theme.txt"
Info about: efi bootloaders
 /boot/grub/x86_64-efi/core.efi           276K ∑be43~0b31
 /boot/grub/x86_64-efi/grub.efi           276K ∑f38f~db26
 /boot/efi_backup/EFI/boot/bootx64.efi    164K ∑047b~be9a
 /boot/efi_backup/EFI/manjaro/grubx64.efi 164K ∑047b~be9a
Info about: efi vars (needs efibootmgr)
 Boot0000* manjaro                  HD(1,GPT,b1d3d562-88ff-4ac2-8326-9c5d82892379,0x800,0x1dc800) \EFI\MANJARO\GRUBX64.EFI  
 Boot0001* rEFInd Boot Manager      HD(1,GPT,b1d3d562-88ff-4ac2-8326-9c5d82892379,0x800,0x1dc800) \EFI\REFIND\REFIND_X64.EFI
 Boot0003* UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)                                          
 Boot0004* UEFI OS                  HD(1,GPT,b1d3d562-88ff-4ac2-8326-9c5d82892379,0x800,0x1dc800) \EFI\BOOT\BOOTX64.EFI     
 Boot001A* UEFI OS                  HD(1,GPT,99e0488b-1204-4acc-83a6-30d2c839b094,0x800,0x100000) \EFI\BOOT\BOOTX64.EFI     
 Boot0020* UEFI OS                  HD(1,GPT,4f943c21-f008-4448-aaf4-ff8be3fd2a28,0x800,0x200000) \EFI\BOOT\BOOTX64.EFI     
 Boot0022* Hard Drive               BBS(HD,,0x0)                                                                            
 Boot0023* CD/DVD Drive             BBS(CDROM,,0x0)                                                                         
 Boot0024* USB                      BBS(USB,,0x0)        

So your 5.10 is not installed fully.
you may not be able to reboot with 5.10

:thinking:

You do use apparmor.

about file *.preset missing
better was create file config

➜  ~ ls -l /usr/lib/libwacom*
lrwxrwxrwx 1 root root    13 Aug  7 05:12 /usr/lib/libwacom.so -> libwacom.so.9
-rw-r--r-- 1 root root 55136 Aug 18 19:18 /usr/lib/libwacom.so.2
-rw-r--r-- 1 root root 55136 Aug 18 19:18 /usr/lib/libwacom.so.2.6.1
lrwxrwxrwx 1 root root    17 Aug  7 05:12 /usr/lib/libwacom.so.9 -> libwacom.so.9.0.0
-rwxr-xr-x 1 root root 55240 Aug  7 05:12 /usr/lib/libwacom.so.9.0.0
➜  ~ pacman -Qo /usr/lib/libwacom*
/usr/lib/libwacom.so is owned by libwacom 2.4.0-1
/usr/lib/libwacom.so.2 is owned by libwacom1 1.12.1-2
/usr/lib/libwacom.so.2.6.1 is owned by libwacom1 1.12.1-2
/usr/lib/libwacom.so.9 is owned by libwacom 2.4.0-1
/usr/lib/libwacom.so.9.0.0 is owned by libwacom 2.4.0-1
➜  ~ sudo pacman -S linux519
warning: linux519-5.19.7-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux519-5.19.7-1

Total Installed Size:  184.02 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                                                                 [#############################################################################] 100%
(1/1) checking package integrity                                                                                               [#############################################################################] 100%
(1/1) loading package files                                                                                                    [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                              [#############################################################################] 100%
(1/1) checking available disk space                                                                                            [#############################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
(2/2) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling linux519                                                                                                    [#############################################################################] 100%
ldconfig: /usr/lib/libwacom.so.2 is not a symbolic link

:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating module dependencies...
(3/7) Install DKMS modules
(4/7) Updating linux initcpios...
call to execv failed (Permission denied)
error: command failed to execute correctly
(5/7) Updating Kernel initcpios for Nvidia-DRM...
(6/7) Refreshing PackageKit...
(7/7) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
➜  ~ sudo pacman -Qk 1> /dev/null
➜  ~

Where does this package come from, AUR? Do you need it? Remove it otherwise. (Or else delete .so.2 and make symbolic link .so.2 → .so.2.6.1)
Perhaps post what other foreign packages you have installed:

pacman -Qm

As for this…

…it looks like some script or something in mkinitcpio.hook is missing +x permission. Did you try reinstalling mkinitcpio?

➜  ~ pacman -Qm
backlight_control 1.3-1
cava 0.8.2-5
chromaprint-fftw 1.5.1-1
clash-for-windows-chinese 0.20.2-1
clash-premium-bin 2022.08.26-1
cli-visualizer 1.8-10
dotnet-runtime-5.0-bin 5.0.17.sdk408-1
eww-git 0.3.0.r13.g25105c7-1
ffcast 1:2.5.0-1
flite1 1.4-3
git-credential-manager-core-bin 2.0.785-1
gnome-colors-common 1-1
google-chrome 105.0.5195.125-1
greetd-tuigreet 0.8.0-0
i3-resurrect 1.4.5-1
i3lock-color 2.13.c.4-1
icalingua++ 2.7.2-1
imgcat 1.2.0-2
indicator-sound-switcher 2.3.9-1
jetbrains-toolbox 1.25.12999-1
libajantv2 1:16.2_bugfix5-1
libcamera-git r3832.777b0e0a-1
libwacom1 1.12.1-2
ltex-ls-bin 15.2.0-1
mailspring 1.10.5-1
minecraft-launcher 1:1.0.1221-1
networkmanager-dmenu-git r161.d1ae627-1
notify-send.sh 1.2-1
nvim-packer-git r545.50aeb90-1
oh-my-zsh-git r6636.97134d1ee-1
openfec 1.4.2-2
picom-jonaburg-git 0.1-5
pmenu 0.3.3-1
polybar-git 3.6.3.r58.gb5764c8a-1
roc-toolkit-git v0.1.5.r42.g863a0227-1
spotify 1:1.1.84.716-2
stylua-bin 0.14.3-1
surf 2.1-6
ttf-ms-fonts 2.0-12
ttf-wps-fonts 1.0-5
typora 1.4.4-1
ulauncher 5.14.7-2
visual-studio-code-bin 1.71.1-1
wemeet-bin 3.10.0.400-1
wps-office 11.1.0.11664-1
xar 1.6.1-5
xbacklight-ctl-git r39.03932a4-1
xidlehook 0.10.0-1
xorgproto-git 2022.1.8.r2721.gad64126-1
xrectsel 0.3.2-1
zscroll-git 2.0.1.r0.g788be96-1

I think I did, but I don’t mind doing this again.

can you report

sudo mhwd -li 
sudo ls /etc/mkinitcpio.d/*.preset
sudo ls /boot/
sudo ls /lib/modules/

cat /etc/mkinitcpio.d/linux515.preset
cat /etc/mkinitcpio.conf
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI


Warning: No installed USB configs!
➜  ~ sudo ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux515.preset
➜  ~ sudo ls /boot/
efi				   initramfs-5.15-x86_64.img  linux515-x86_64.kver  vmlinuz-5.15-x86_64
grub				   initramfs-linux.img        linux519-x86_64.kver
grub.bak			   intel-ucode.img	      memtest86+
initramfs-5.15-x86_64-fallback.img  linux510-x86_64.kver       refind_linux.conf
➜  ~ sudo ls /lib/modules/
5.10.141-1-MANJARO  5.19.7-1-MANJARO	      extramodules-5.15-MANJARO
5.15.65-1-MANJARO   extramodules-5.10-MANJARO  extramodules-5.19-MANJARO
# mkinitcpio preset file for the 'linux515' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.15-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.15-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.15-x86_64-fallback.img"
fallback_options="-S autodetect"
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=()

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

# MODULES_DECOMPRESS
# Decompress kernel modules during initramfs creation.
# Enable to speedup boot process, disable to save RAM
# during early userspace. Switch (yes/no).
#MODULES_DECOMPRESS="yes"

Are you using rEFInd, and having issues with your GRUB?

I’m not using rEFInd.

files
/etc/mkinitcpio.d/linux510.preset and
/etc/mkinitcpio.d/linux519.preset are missing

can you create by copy /etc/mkinitcpio.d/linux510.preset` and modify version inside ?

after you can redo

sudo mkinitcpio -P

linux510.preset

# mkinitcpio preset file for the 'linux510' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.10-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.10-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.10-x86_64-fallback.img"
fallback_options="-S autodetect"
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
  -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
  -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.65-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.65-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful

That what has been discussed at least in the last 50 posts. Installing kernels doesn’t create the preset, doesn’t generate the kernel images. At some point with Brama’s help it miraculously worked in chroot and external tools for 5.15, but it wasn’t possible to do it again for other kernels.

His system seems broken completely, and without knowing what he has done to it (like we discover at post 140+ that he was using rEFInd) it seems a waste of time (but maybe it isn’t).

PS: not to be a :eggplant: but come on, in the last posts there are many things asked (not specifically by you) that have already been answered, it is like you (not specifically you) discover the thread and reply without reading it (I know it is 150 messages now but asking the same thing over and over, what Brama already did when trying to solve it, only adds up to the count, and if everyone does that it is a Groundhog Day rehearsal).

1 Like

Maybe it’s me to blame cuz I created a new topic. He replied to the new topic but the new topic is merged here. Since I can enter the system, is it the best solution to backup important files and reinstall the system? I’ll get lots of time quite soon so I can work on that.

Maybe that’s it then for those replies I was targeting. My bad if so, their bad if not :stuck_out_tongue:

My personal opinion would be of course backup you data now since it seems your system integrity is not so good, just in case.

I myself would do a clean install at this point because lot of things don’t make sense to me and I wouldn’t know what to do now, but I can’t speak for yourself, make your mind, is it worth, is it interesting for you to try to find the issue and repair it, or not? Both answers are valid.

Honestly a reinstall from fresh ISO is quick, what takes time is configuring the desktop environment settings, installing/removing programs, customizing some advanced stuff, and often the longest, is to import the backed up files back into the freshly installed system. Depending on your “usage” of Manjaro it can be quick (like for me installing configuring and customizing KDE would take 30 minutes max for everything including copying latest ISO to use for install) or take a few hours to reinstall and make it proper for your “usage”.

2 Likes

Yeah configuring the new system is very annoying. I’ll get 7 day off so I have some time for that. I use Manjaro for school work some the cofiguation won’t be too complicated. I think I need to backup some dotfiles since I’m using i3.

Thank you guys so much for trying to help me. And thank @brahma for saving me cuz I have some deadline next week and all the stuff are in Manjaro. I’ll reinstall the system. :kissing_heart:

after mail with omano , system linux is broken

No it won’t.

As said, post was merged. And I’m not reading 100 messages of back and forth commands/outputs. :stuck_out_tongue:

@Fr4nk1in please post:

df -h
lsblk

Does same happen if you run

sudo -i
pacman -S linux519
➜  ~ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.7G  1.9M  7.7G   1% /run
/dev/nvme0n1p5  172G   97G   67G  60% /
tmpfs           7.7G   67M  7.6G   1% /dev/shm
tmpfs           7.7G  2.5M  7.7G   1% /tmp
/dev/loop8      347M  347M     0 100% /var/lib/snapd/snap/gnome-3-38-2004/115
/dev/loop7       62M   62M     0 100% /var/lib/snapd/snap/core20/1611
/dev/loop1      165M  165M     0 100% /var/lib/snapd/snap/gnome-3-28-1804/161
/dev/loop3      128K  128K     0 100% /var/lib/snapd/snap/bare/5
/dev/loop5      114M  114M     0 100% /var/lib/snapd/snap/core/13425
/dev/loop2       56M   56M     0 100% /var/lib/snapd/snap/core18/2560
/dev/loop9      115M  115M     0 100% /var/lib/snapd/snap/core/13741
/dev/loop6       64M   64M     0 100% /var/lib/snapd/snap/core20/1623
/dev/loop10     219M  219M     0 100% /var/lib/snapd/snap/gnome-3-34-1804/77
/dev/loop4      401M  401M     0 100% /var/lib/snapd/snap/gnome-3-38-2004/112
/dev/loop11      92M   92M     0 100% /var/lib/snapd/snap/gtk-common-themes/1535
/dev/loop0       56M   56M     0 100% /var/lib/snapd/snap/core18/2566
/dev/loop12      82M   82M     0 100% /var/lib/snapd/snap/gtk-common-themes/1534
/dev/nvme0n1p1  256M   41M  216M  16% /boot/efi
tmpfs           1.6G  112K  1.6G   1% /run/user/1000
➜  ~ lsblk
NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0                         7:0    0  55.6M  1 loop /var/lib/snapd/snap/core18/2566
loop1                         7:1    0 164.8M  1 loop /var/lib/snapd/snap/gnome-3-28-1804/161
loop2                         7:2    0  55.6M  1 loop /var/lib/snapd/snap/core18/2560
loop3                         7:3    0     4K  1 loop /var/lib/snapd/snap/bare/5
loop4                         7:4    0 400.8M  1 loop /var/lib/snapd/snap/gnome-3-38-2004/112
loop5                         7:5    0   114M  1 loop /var/lib/snapd/snap/core/13425
loop6                         7:6    0  63.2M  1 loop /var/lib/snapd/snap/core20/1623
loop7                         7:7    0    62M  1 loop /var/lib/snapd/snap/core20/1611
loop8                         7:8    0 346.3M  1 loop /var/lib/snapd/snap/gnome-3-38-2004/115
loop9                         7:9    0 114.9M  1 loop /var/lib/snapd/snap/core/13741
loop10                        7:10   0   219M  1 loop /var/lib/snapd/snap/gnome-3-34-1804/77
loop11                        7:11   0  91.7M  1 loop /var/lib/snapd/snap/gtk-common-themes/1535
loop12                        7:12   0  81.3M  1 loop /var/lib/snapd/snap/gtk-common-themes/1534
loop13                        7:13   0   100G  0 loop
`-docker-259:5-1048842-pool 254:0    0   100G  0 dm
loop14                        7:14   0     2G  0 loop
`-docker-259:5-1048842-pool 254:0    0   100G  0 dm
nvme0n1                     259:0    0 476.9G  0 disk
|-nvme0n1p1                 259:1    0   260M  0 part /boot/efi
|-nvme0n1p2                 259:2    0    16M  0 part
|-nvme0n1p3                 259:3    0 300.7G  0 part
|-nvme0n1p4                 259:4    0  1000M  0 part
`-nvme0n1p5                 259:5    0   175G  0 part /

The same happens.