You are not logged in.
I encountered an issue during my attempt to install Arch Linux on my computer, which already has a dual boot setup with Windows 11 and Linux Mint. Despite following the installation process correctly and updating the Grub in Linux Mint to include Arch, I encountered the following error when trying to boot into Arch Linux from the Grub menu:
error: file '/boot/vmlinuz-linux' not found.
Loading initial ramdisk ...
error: you need to load the kernel first.The necessary kernel files, such as vmlinuz-linux, are present in the root partition.
/boot
├── efi/
│ └── EFI/
│ ├── Boot/
│ │ ├── bootx64.efi
│ │ ├── fbx64.efi
│ │ └── mmx64.efi
│ │
│ ├── Microsoft/
│ │ ├── Boot/
│ │ └── Recovery/
│ │
│ └── ubuntu/
│ ├── BOOTX64.CSV
│ ├── grub.cfg
│ ├── grubx64.efi
│ ├── mmx64.efi
│ └── shimx64.efi
│
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── initramfs-linux-lts-fallback.img
├── initramfs-linux-lts.img
├── intel-ucode.img
├── vmlinuz-linux
└── vmlinuz-linux-ltsDisk Partition Table (as seen with lsblk):
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 550M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 150G 0 part
├─nvme0n1p4 259:4 0 16G 0 part [swap]
├─nvme0n1p5 259:5 0 50G 0 part
├─nvme0n1p6 259:6 0 30G 0 part
├─nvme0n1p7 259:7 0 30G 0 part /
└─nvme0n1p8 259:8 0 20G 0 part /home/etc/fstab:
# Static information about the filesystems.
# See fstab(5) for details.
# /dev/nvme0n1p7
UUID=7feabab7-f48f-4bf4-ba4c-a0fabb968d28 / ext4 rw,relatime 0 1
# /dev/nvme0n1p8
UUID=085e626f-93b6-4b42-bcd2-3270d4f92d57 /home ext4 rw,relatime 0 2
# /dev/nvme0n1p1 LABEL=EFI
UUID=7CE6-B97C /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/nvme0n1p4
UUID=cf1ced97-87f4-413f-9768-87ee5fc1312f none swap defaults 0 0I used a USB drive to arch-chroot /mnt and executed the commands pacman -S linux and pacman -S mkinitcpio in an attempt to resolve the issue. However, the problem persisted. Any ideas of what should i do?
Last edited by Nik_Rian (2023-11-02 03:35:04)
Offline
Your bootloader config is wrong. Check it, or just regenerate it if you used grub-mkconfig.
You may need to reinstall it with grub-install as well, if you changed your partition layout after doing that the first time.
Last edited by Scimmia (2023-10-30 22:31:40)
Offline
Your bootloader config is wrong. Check it, or just regenerate it if you used grub-mkconfig.
It is not. I had already updated Linux grub so that it recognized arch, if I hadn't done arch wouldn't have even appeared in the grub menu. However, I took the precaution of updating it with sudo grub-mkconfig -o /boot/grub/grub.cfg again, but unfortunately, it didn't resolve the issue.
sudo grub-mkconfig -o /boot/grub/grub.cfg, output:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-88-generic
Found initrd image: /boot/initrd.img-5.15.0-88-generic
Found linux image: /boot/vmlinuz-5.15.0-87-generic
Found initrd image: /boot/initrd.img-5.15.0-87-generic
Found linux image: /boot/vmlinuz-5.15.0-76-generic
Found initrd image: /boot/initrd.img-5.15.0-76-generic
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
/usr/sbin/grub-probe: error: unknown filesystem.
Found Arch Linux on /dev/nvme0n1p7
/usr/sbin/grub-probe: error: unknown filesystem.
Adding boot menu entry for UEFI Firmware Settings ...
doneDetail that for grub to recognize linux arch when executing the command, the / arch partition must be mounted on the linux mint system.
I can't see how reinstalling GRUB would help either, considering that I'm currently using the GRUB installed by Linux Mint, and I didn't manually install GRUB in Arch. If you still think reinstalling GRUB is the way to go, could you please guide me on the correct steps to take?
Last edited by Nik_Rian (2023-10-31 02:59:03)
Offline
Considering that this error is from the bootloader, it's pretty critical info that you're not using Arch's GRUB. That's not something I can help with
Offline
Could it be that if I install grub through arch it will work? A while ago, when I was learning how to install arch, I dualbooted windows and arch in a virtual machine and installed grub and os-prober, but grub wasn't recognizing windows
Offline
You were probably missing https://archlinux.org/packages/extra/x86_64/fuse3/
Your bootloader config is wrong
It is not.
error: file '/boot/vmlinuz-linux' not found
So currently it's your word against grub's - maybe post the config …
That being said, this is technically a ubuntu issue.
Offline
Yes, it is a Ubuntu / Linux Mint issue. Grub on Arch will recognize Mint but not the other way round.
Offline
So currently it's your word against grub's - maybe post the config …
Sorry if what I wrote suggested that the configuration was correct, I meant to say that I don't know how it could be wrong. Anyway, here is the config
/boot/grub/grub.cfg:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if [ ${grub_platform} != pc ]; then
set linux_gfx_mode=keep
elif hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 21.2 Cinnamon' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
linux /boot/vmlinuz-5.15.0-88-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro quiet splash
initrd /boot/initrd.img-5.15.0-88-generic
}
submenu 'Advanced options for Linux Mint 21.2 Cinnamon' $menuentry_id_option 'gnulinux-advanced-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-88-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-88-generic-advanced-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-88-generic ...'
linux /boot/vmlinuz-5.15.0-88-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-88-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-88-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-88-generic-recovery-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-88-generic ...'
linux /boot/vmlinuz-5.15.0-88-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-88-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-87-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-87-generic-advanced-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-87-generic ...'
linux /boot/vmlinuz-5.15.0-87-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-87-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-87-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-87-generic-recovery-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-87-generic ...'
linux /boot/vmlinuz-5.15.0-87-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-87-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-76-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-76-generic-advanced-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-76-generic ...'
linux /boot/vmlinuz-5.15.0-76-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-76-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-76-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-76-generic-recovery-72f79b01-830a-4bfe-ab5a-4f52ed21ef82' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 72f79b01-830a-4bfe-ab5a-4f52ed21ef82
echo 'Loading Linux 5.15.0-76-generic ...'
linux /boot/vmlinuz-5.15.0-76-generic root=UUID=72f79b01-830a-4bfe-ab5a-4f52ed21ef82 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-76-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-7CE6-B97C' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 7CE6-B97C
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Arch Linux (on /dev/nvme0n1p7)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-/dev/nvme0n1p7' {
insmod part_gpt
linux /boot/vmlinuz-linux root=/dev/nvme0n1p7
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux (on /dev/nvme0n1p7)' $menuentry_id_option 'osprober-gnulinux-advanced-/dev/nvme0n1p7' {
menuentry 'Arch Linux (on /dev/nvme0n1p7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux--/dev/nvme0n1p7' {
insmod part_gpt
linux /boot/vmlinuz-linux root=/dev/nvme0n1p7
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux (on /dev/nvme0n1p7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-linux-lts--/dev/nvme0n1p7' {
insmod part_gpt
linux /boot/vmlinuz-linux-lts root=/dev/nvme0n1p7
initrd /boot/initramfs-linux-lts.img
}
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###I was playing around with the files a bit hoping something would work, and to my surprise something did. When copying the vmlinuz-linux and initramfs-linux.img files from the /boot folder of arch to the /boot folder of mint and running the update in grub, arch started to work but in return mint stopped with the errror:
/sbin/init does not exist
Bailing out, you are on your own. Good luckso I had to mount the mint / folder in arch and remove the files
Offline
Didy ou notice that all of this (I already adjusted the UUID) isn't in the archlinux entries?
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 7feabab7-f48f-4bf4-ba4c-a0fabb968d28Grub on Arch will recognize Mint but not the other way round.
I thought Ubuntu had caught up, but OP is also running a fairly old mint?
Offline
Didy ou notice that all of this (I already adjusted the UUID) isn't in the archlinux entries?
I didn't notice. As I wrote above, I can't say if it's wrong or not. I don't know how to read this file.
Sorry if my writing is confusing, I'm having to pass my questions through a translator.
I thought Ubuntu had caught up, but OP is also running a fairly old mint?
I'm using a newly installed and updated Cinnamon Linux Mint
Offline
It says Linux Mint 21.2 Cinnamon and the implication was to add that stuff to the archlinux entries.
Offline
t says Linux Mint 21.2 Cinnamon and the implication was to add that stuff to the archlinux entries.
I tried pasting this into grub.cfg and when I started booting arch it appeared as if there was no disk with that UUID
After some time thinking about how to solve this I decided to test installing grub on arch and it worked perfectly, I don't know why mint doesn't boot arch but arch boots mint. my plan is to gradually migrate to arch so I don't see a problem using grub from it
Thank you to everyone who commented on the thread to help me
Offline
The Arch kernels dropped a certain compatibility option in the EFI loader ~a year ago, which is implemented in "newer GRUB" and not in "older GRUB" like present in Mint IIRC
Last edited by V1del (2023-11-02 09:00:07)
Offline