You are not logged in.
Pages: 1
I installed linux-lts in other computer x86_64 and now I have two issues:
- The default linux is linux-lts and I tried to save
GRUB_DEFAULT=gnulinux-linux-advanced-3c16551e-47d8-4720-8515-e6470c688977 in /etc/default/grub
and sudo grub-mkconfig -o /boot/grub/grub.cfg but does not work.
Also I tried to save GRUB_SAVEDEFAULT="true" and GRUB_DEFAULT=saved in /etc/default/grub and after grub-mkconfig but doesn't work neither.
- I get this error in both versions: "[FAILED] Failed to start Load Kernel Modules."
I want to have two versions in grub menu and the default the last linux kernel.
This is the boot process with linux-lts:
starting version 237
/dev/mapper/VolGroup00-lv_root: clean, 1109130/55056384 files, 103454387/2430074
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started LVM2 metadata daemon.
Starting Apply Kernel Variables...
Mounting Kernel Configuration File System...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Started udev Kernel Device Manager.
Starting Network Service...
[ OK ] Created slice system-lvm2\x2dpvscan.slice.
Starting LVM2 PV scan on device 8:18...
Starting LVM2 PV scan on device 8:2...
Starting Load Kernel Modules...
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Found device WDC_WD10EZEX-00BN5A0 1.
[ 14.470130] kfd kfd: kgd2kfd_probe failed
[ OK ] Found device /dev/mapper/VolGroup00-lv_swap.
Activating swap /dev/mapper/VolGroup00-lv_swap...
[ OK ] Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
[ OK ] Reached target Local File Systems (Pre).
Starting File System Check on /dev/sda1...
[ OK ] Activated swap /dev/mapper/VolGroup00-lv_swap.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started LVM2 PV scan on device 8:18.
[ OK ] Started File System Check on /dev/sda1.
Mounting /boot...
[ OK ] Mounted /boot.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Service.
[ OK ] Started LVM2 PV scan on device 8:2.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Listening on sshd.socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started CUPS Scheduler.
[ OK ] Reached target Paths.
[ OK ] Listening on CUPS Scheduler.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Save/Restore Sound Card State...
[ OK ] Started D-Bus System Message Bus.
Starting update-wake-on-lan.service...
Starting Virtual console mouse server...
Starting Login Service...
Starting Network Manager...
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Daily man-db cache update.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily verification of password and group files.
...This is the command systemctl:
$ sudo systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2018-04-28 13:09:29 CEST; 1min 24s ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 352 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 352 (code=exited, status=1/FAILURE)
abr 28 13:09:29 minitorre systemd[1]: Starting Load Kernel Modules...
abr 28 13:09:29 minitorre systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
abr 28 13:09:29 minitorre systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
abr 28 13:09:29 minitorre systemd[1]: Failed to start Load Kernel Modules.The system works fine and GNOME works too in both versions. This is the output from lsmod:
$ uname -r
4.14.36-1-lts
$ lsmod
Module Size Used by
fuse 118784 2
amdkfd 147456 1
mousedev 24576 0
amd_iommu_v2 20480 1 amdkfd
radeon 1650688 4
gpio_ich 16384 0
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
i2c_algo_bit 16384 1 radeon
ttm 114688 1 radeon
ppdev 20480 0
snd_hda_codec_analog 20480 1
evdev 24576 7
pcspkr 16384 0
snd_hda_codec_generic 86016 1 snd_hda_codec_analog
drm_kms_helper 192512 1 radeon
input_leds 16384 0
drm 438272 7 radeon,ttm,drm_kms_helper
led_class 16384 1 input_leds
mac_hid 16384 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
snd_hda_intel 45056 3
i2c_i801 28672 0
snd_hda_codec 151552 3 snd_hda_intel,snd_hda_codec_analog,snd_hda_codec_generic
lpc_ich 28672 0
r8169 94208 0
snd_hda_core 90112 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_analog,snd_hda_codec_generic
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 118784 3 snd_hda_intel,snd_hda_codec,snd_hda_core
mii 16384 1 r8169
snd_timer 36864 1 snd_pcm
snd 90112 13 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_hda_codec_analog,snd_timer,snd_hda_codec_generic,snd_pcm
soundcore 16384 1 snd
parport_pc 32768 0
intel_agp 24576 0
asus_atk0110 24576 0
intel_gtt 24576 1 intel_agp
parport 57344 2 parport_pc,ppdev
agpgart 49152 4 intel_agp,intel_gtt,ttm,drm
button 16384 0
shpchp 40960 0
acpi_cpufreq 24576 0
sch_fq_codel 20480 2
sg 40960 0
crypto_user 16384 0
ip_tables 28672 0
x_tables 45056 1 ip_tables
crc32c_generic 16384 2
ext4 716800 2
crc16 16384 1 ext4
mbcache 16384 1 ext4
jbd2 118784 1 ext4
fscrypto 32768 1 ext4
dm_mod 143360 12
sr_mod 28672 0
cdrom 69632 1 sr_mod
sd_mod 61440 5
hid_generic 16384 0
usbhid 57344 0
hid 131072 2 hid_generic,usbhid
ata_generic 16384 0
pata_acpi 16384 0
serio_raw 16384 0
atkbd 32768 0
libps2 16384 1 atkbd
uhci_hcd 49152 0
ahci 40960 0
libahci 40960 1 ahci
pata_jmicron 16384 0
ata_piix 36864 3
libata 274432 6 ahci,ata_piix,libahci,pata_jmicron,ata_generic,pata_acpi
ehci_pci 16384 0
ehci_hcd 94208 1 ehci_pci
scsi_mod 204800 4 sd_mod,libata,sr_mod,sg
usbcore 286720 4 usbhid,ehci_hcd,uhci_hcd,ehci_pci
usb_common 16384 1 usbcore
i8042 32768 0
serio 28672 4 serio_raw,atkbd,i8042Last edited by archlinuxforever (2018-04-28 11:58:26)
Offline
I solved the issue about the error: "[FAILED] Failed to start Load Kernel Modules." upgrading the system with the command:
$ sudo pacman -SyuAnd install headers for linux-lts:
$ sudo pacman -S linux-lts-headersThe other issue was solved after upgrading the system. The problem was that after install with pacman -S linux-lts I installed pacman -S linux thinking that it will install by default. Because I didn't install linux-headers of that new version the boot process returned that error.
Removing the changes in /etc/default/grub and executing again the command
$ sudo grub-mkconfig -o /boot/grub/grub.cfgcauses the issue come back.
I tried also with GRUB_DEFAULT=3 (that is the position of menuentry 'Arch Linux, con Linux linux') but don't solve the issue.
Can someone help me to solve this issue, please?
Last edited by archlinuxforever (2018-04-28 14:51:15)
Offline
Don't hijack unrelated threads with your own issues https://wiki.archlinux.org/index.php/Co … _hijacking
Post your entire current GRUB config, FWIW both the one you edit and the generated end result
Split off of: https://bbs.archlinux.org/viewtopic.php?id=230714
Offline
Sorry. I was following the mention of install linux-lts.
This is /etc/default/grub
GRUB_DEFAULT=3
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=false
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#
#GRUB_SAVEDEFAULT="true"This is /boot/grub/grub.cfg generated with the comand
$ sudo grub-mkconfig -o /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 ###
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="3"
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 lvm
insmod ext2
set root='lvmid/moMLDA-NChV-ZcUj-9QLO-afJ5-QEe3-HBnq6R/hs4bYz-m7wv-R3bj-Ezmm-1sJD-e3wo-DUvCgw'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/moMLDA-NChV-ZcUj-9QLO-afJ5-QEe3-HBnq6R/hs4bYz-m7wv-R3bj-Ezmm-1sJD-e3wo-DUvCgw' 3c16551e-47d8-4720-8515-e6470c688977
else
search --no-floppy --fs-uuid --set=root 3c16551e-47d8-4720-8515-e6470c688977
fi
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=es_ES
insmod gettext
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-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux-lts...'
linux /vmlinuz-linux-lts root=/dev/mapper/VolGroup00-lv_root rw resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet
echo 'Cargando imagen de memoria inicial...'
initrd /initramfs-linux-lts.img
}
submenu 'Opciones avanzadas para Arch Linux' $menuentry_id_option 'gnulinux-advanced-3c16551e-47d8-4720-8515-e6470c688977' {
menuentry 'Arch Linux, con Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux-lts...'
linux /vmlinuz-linux-lts root=/dev/mapper/VolGroup00-lv_root rw resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet
echo 'Cargando imagen de memoria inicial...'
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-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux-lts...'
linux /vmlinuz-linux-lts root=/dev/mapper/VolGroup00-lv_root rw resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet
echo 'Cargando imagen de memoria inicial...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, con Linux linux-lts (modo de recuperación)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-recovery-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux-lts...'
linux /vmlinuz-linux-lts root=/dev/mapper/VolGroup00-lv_root rw single
echo 'Cargando imagen de memoria inicial...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, con Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux...'
linux /vmlinuz-linux root=/dev/mapper/VolGroup00-lv_root rw resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet
echo 'Cargando imagen de memoria inicial...'
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-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux...'
linux /vmlinuz-linux root=/dev/mapper/VolGroup00-lv_root rw resume=/dev/mapper/VolGroup00-lv_swap pci=nocrs fbcon=scrollback:1024k quiet
echo 'Cargando imagen de memoria inicial...'
initrd /initramfs-linux-fallback.img
}
menuentry 'Arch Linux, con Linux linux (modo de recuperación)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-recovery-3c16551e-47d8-4720-8515-e6470c688977' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
else
search --no-floppy --fs-uuid --set=root 9c895cf1-87c6-4138-96eb-ed09db135a44
fi
echo 'Cargando Linux linux...'
linux /vmlinuz-linux root=/dev/mapper/VolGroup00-lv_root rw single
echo 'Cargando imagen de memoria inicial...'
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 ###
### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
search --fs-uuid --no-floppy --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 9c895cf1-87c6-4138-96eb-ed09db135a44
linux16 /memtest86+/memtest.bin
}
fi
### END /etc/grub.d/60_memtest86+ ###Offline
Pages: 1