You are not logged in.
Pages: 1
Hello there, this is my first post on Arch forums!
I installed the default linux kernel when I first installed Arch and now i've been trying to get both the LTS and the regular kernel to show up in Grub but I just cant get the LTS to show up.
I browsed the first few pages of google results but with no success.
I've got the linux-lts and linux-lts-headers packages installed.
The kernel is listed in /boot as follows
[irets@archlinux ~]$ ls /boot/
bin mnt
boot opt
dev proc
etc root
grub run
home sbin
initramfs-linux-fallback.img srv
initramfs-linux-lts-fallback.img sys
initramfs-linux-lts.img tmp
initramfs-linux.img usr
lib var
lib64 vmlinuz-linux
lost+found vmlinuz-linux-lts
Also grub-mkconfig also finds it as follows:
[irets@archlinux ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for irets:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found linux image: /vmlinuz-linux-lts
Found initrd image: //initramfs-linux-lts.img
Found fallback initrd image(s) in /: initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found linux image: /vmlinuz-linux
Found initrd image: //initramfs-linux.img
Found fallback initrd image(s) in /: initramfs-linux-fallback.img
done
My Grub config :
#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
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 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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### 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 ###
Did I miss something?
Last edited by Irets (2019-02-01 14:55:45)
Offline
Looks like it's in the grub.cfg, both as the main entry and in the Advanced options. What do expect to see?
Offline
Hi 2ManyDogs,
I'm expecting to see the LTS kernel under Advanced Options in Grub and the default Kernel as the first boot entry.
Currently Grub only lists the linux kernel.
Offline
Look again -- in the grub.cfg you posted, the main entry loads the lts kernel. It doesn't list it by name, but that's what it loads.
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
The first entry in the Advanced options is also the lts kernel.
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
What happens if you load the default entry? What kernel is running?
(edit to add) -- is there more than one Linux install on this machine?
Last edited by 2ManyDogs (2019-02-01 15:05:25)
Offline
I'm currently using the default entry and it boots the linux kernel.
Under Advanced options in Grub it only lists the default kernel also.
The output of uname -a:
Linux archlinux 4.20.6-arch1-1-ARCH #1 SMP PREEMPT Thu Jan 31 08:22:01 UTC 2019 x86_64 GNU/Linux
This is starting to seem a bit odd...
EDIT:
There's only one but I might have 2x the system files because I messed up something the first time.
The other folders in /boot are folders that dont do anything because my "/" is mounted elsewhere.
Probably the only important things under /boot are the kernels and Grub.
Last edited by Irets (2019-02-01 15:08:03)
Offline
I'm currently using the default entry and it boots the linux kernel.
Under Advanced options in Grub it only lists the default kernel also.
Then the grub.cfg you posted is not the grub.cfg that is being used by grub. Do you have another /boot directory somewhere? Do you have a separate /boot partition, and if so, was it mounted when you ran grub-mkconfig?
Offline
I'm pretty sure it was mounted but don't take my word for it.
I installed Arch on this computer months ago so It's kinda hard to recall.
This is the output of lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 22.4G 0 disk
sdb 8:16 0 931.5G 0 disk
|-sdb1 8:17 0 37.3G 0 part /boot
|-sdb2 8:18 0 888.3G 0 part /home
`-sdb3 8:19 0 6G 0 part [SWAP]
I'm going to use the "/boot" partition also as a data storage so that's why it's so large in size.
I just noticed that there is a folder named "boot" also under "/" and it has grub.cfg also.
This is it's contents:
#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
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 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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### 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 ###
Last edited by Irets (2019-02-01 15:31:55)
Offline
That grub.cfg is the same as your first post. You also don't have a partition mounted at /. What guide did you use when you installed Arch?
Please post the output of these commands:
cat /etc/fstab
ls /
ls /boot
Using /boot as a place for data storage is not a great idea.
Offline
Oh my bad, I'm sipping on some liqour while typing and seems like my thinking is a bit impaired at the moment so I'll be extra careful from now on and triple check my text before posting... sorry.
My system files are located under the "/home" partition and by "/" partition I meant "/home".
Contents of fstab:
[irets@archlinux /]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdb1
UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 / ext4 rw,relatime 0 1
# /dev/sdb1
UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 /boot ext4 rw,relatime 0 2
# /dev/sdb2
UUID=6f145c23-60e6-4559-867a-45bb5b6d77c4 /home ext4 rw,relatime 0 2
# /dev/sdb3
UUID=e4dd1e58-2f17-4bf5-9ed7-5ed83d58db2c none swap defaults,pri=-2 0 0
Contents of /:
[irets@archlinux /]$ ls -a /
. lost+found
.. mnt
bin opt
boot proc
dev root
etc run
grub sbin
home srv
initramfs-linux-fallback.img sys
initramfs-linux-lts-fallback.img tmp
initramfs-linux-lts.img usr
initramfs-linux.img var
lib vmlinuz-linux
lib64 vmlinuz-linux-lts
Contents of /boot
[irets@archlinux /]$ ls -a /boot
. lost+found
.. mnt
bin opt
boot proc
dev root
etc run
grub sbin
home srv
initramfs-linux-fallback.img sys
initramfs-linux-lts-fallback.img tmp
initramfs-linux-lts.img usr
initramfs-linux.img var
lib vmlinuz-linux
lib64 vmlinuz-linux-lts
I used several guides because If something wasn't explained clearly enough on one guide I checked the step from another Finnish guide.
But the main guide that I used was from Arch Wiki.
This is all because of my a bit sluggish English and the understanding of it.
Seems like the kernels are listed under / and also under the /boot partition.
Last edited by Irets (2019-02-01 15:48:58)
Offline
# /dev/sdb1
UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 / ext4 rw,relatime 0 1
# /dev/sdb1
UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 /boot ext4 rw,relatime 0 2
Read this very closely.
Offline
They both have the same UUID apparently but different mount points.
Now this is getting interesting.
What should I do about this?
Please, spoonfeed me if possible.
Last edited by Irets (2019-02-01 16:09:01)
Offline
umount /boot, remove that nonsense entry from your fstab, re-run mkinitcpio & grub-mkconfig, tidy up / (grub, vmlinuz*, initramfs*)
Offline
I will keep updating this post as I progress.
Updating in progress : Yes
Alright, I've done the following:
I added # in front of the nonsense fstab entry and now my lsblk looks like this:
[irets@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 22.4G 0 disk
sdb 8:16 0 931.5G 0 disk
|-sdb1 8:17 0 37.3G 0 part /
|-sdb2 8:18 0 888.3G 0 part /home
`-sdb3 8:19 0 6G 0 part [SWAP]
Pacman mkinitcpio'd the packages for me
[irets@archlinux ~]$ sudo pacman -Syu linux-lts linux-lts-headers
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: linux-lts-4.19.19-1 is up to date -- reinstalling
warning: linux-lts-headers-4.19.19-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (2) linux-lts-4.19.19-1 linux-lts-headers-4.19.19-1
Total Installed Size: 188.40 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring [#########] 100%
(2/2) checking package integrity [#########] 100%
(2/2) loading package files [#########] 100%
(2/2) checking for file conflicts [#########] 100%
(2/2) checking available disk space [#########] 100%
warning: could not get file information for boot/vmlinuz-linux-lts
:: Processing package changes...
(1/2) reinstalling linux-lts [#########] 100%
(2/2) reinstalling linux-lts-headers [#########] 100%
:: Running post-transaction hooks...
(1/3) Updating linux-lts module dependencies...
(2/3) Updating linux-lts initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 4.19.19-1-lts
-> 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-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 4.19.19-1-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
(3/3) Arming ConditionNeedsUpdate...
Last edited by Irets (2019-02-01 16:28:06)
Offline
Offline
Or stop using grub-mkconfig and write grub.cfg manually.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1