You are not logged in.

#1 2018-07-16 05:47:45

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Installing LTS kernel, is not seen in grub [solved]

Hello everyone. First I apologize for my English, I use translator. I installed the LTS kernel, I read that it was advisable and well, I wanted to have an ace up my sleeve, you never know. The case is that it is installed and I have generated a new grub.cfg to include it in the grub but it is not included. The console locates the entries for the default kernel and also for Windows 10, but does not add those for the new kernel. I have seen and followed many tutos and apparently everything is correct but it does not add the options to the grub. Any suggestions? Thanks greetings.

Last edited by J.el_Metal (2018-07-16 13:16:26)

Offline

#2 2018-07-16 05:50:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Installing LTS kernel, is not seen in grub [solved]

You can write an entry manually.



Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-16 06:12:33

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Re: Installing LTS kernel, is not seen in grub [solved]

Excuse the question but, what is supposed to include that entry? I'm new to Arch, thank you very much.

Offline

#4 2018-07-16 06:27:16

smirky
Member
From: Bulgaria
Registered: 2013-02-23
Posts: 277
Website

Re: Installing LTS kernel, is not seen in grub [solved]

If you are willing to paste the output of `grub-mkconfig`, maybe we can tell more.


Personal spot  ::  https://www.smirky.net/  ::  Try not to get lost!

Offline

#5 2018-07-16 06:34:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Installing LTS kernel, is not seen in grub [solved]

Read your grub config and then copy the linux entry to a new stanza and rename it linux-lts... It's not difficult.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2018-07-16 07:44:10

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Re: Installing LTS kernel, is not seen in grub [solved]

smirky wrote:

If you are willing to paste the output of `grub-mkconfig`, maybe we can tell more.

Thanks for answering. Here the file grub.cfg:

Here the file 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 = "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 = 'hd2, msdos3'
if [x $ feature_platform_search_hint = xy]; then
  search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos3' --hint-bios = hd2, msdos3 --hint-efi = hd2, msdos3 --hint-baremetal = ahci2, msdos3 4005179a-d4a7-4219-962c-9bdf6c6999c7
else
  search --no-floppy --fs-uuid --set = root 4005179a-d4a7-4219-962c-9bdf6c6999c7
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 = en_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 of 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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $ menuentry_id_option 'gnulinux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-linux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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 ###
menuentry 'Windows 10 (in / dev / sda1)' --class windows --class os $ menuentry_id_option 'osprober-chain-36B6828FB6824F75' {
insmod part_msdos
insmod ntfs
set root = 'hd0, msdos1'
if [x $ feature_plat

Last edited by J.el_Metal (2018-07-16 08:06:18)

Offline

#7 2018-07-16 08:36:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Installing LTS kernel, is not seen in grub [solved]


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2018-07-16 08:48:08

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Re: Installing LTS kernel, is not seen in grub [solved]

jasonwryan wrote:

#
# 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 = 'hd2, msdos3'
if [x $ feature_platform_search_hint = xy]; then
  search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos3' --hint-bios = hd2, msdos3 --hint-efi = hd2, msdos3 --hint-baremetal = ahci2, msdos3 4005179a-d4a7-4219-962c-9bdf6c6999c7
else
  search --no-floppy --fs-uuid --set = root 4005179a-d4a7-4219-962c-9bdf6c6999c7
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 = en_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 of 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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $ menuentry_id_option 'gnulinux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-linux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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 ###
menuentry 'Windows 10 (in / dev / sda1)' --class windows --class os $ menuentry_id_option 'osprober-chain-36B6828FB6824F75' {
insmod part_msdos
insmod ntfs
set root = 'hd0, msdos1'
if [x $ feature_plat

Offline

#9 2018-07-16 08:51:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Installing LTS kernel, is not seen in grub [solved]

Those aren't code tags, FFS. Click the link at the bottom left hand corner of the text box that says "BBCode"...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2018-07-16 09:04:27

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Re: Installing LTS kernel, is not seen in grub [solved]

jasonwryan wrote:

Those aren't code tags, FFS. Click the link at the bottom left hand corner of the text box that says "BBCode"...

Hello, I must be very clumsy but I give him the tags but still, in the preview it looks the same, it's like if the code does not work, I'm probably doing it wrong, I'm sorry and thanks for the patience.

Thanks for answering. Here the file grub.cfg:

Here the file 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 = "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 = 'hd2, msdos3'
if [x $ feature_platform_search_hint = xy]; then
  search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos3' --hint-bios = hd2, msdos3 --hint-efi = hd2, msdos3 --hint-baremetal = ahci2, msdos3 4005179a-d4a7-4219-962c-9bdf6c6999c7
else
  search --no-floppy --fs-uuid --set = root 4005179a-d4a7-4219-962c-9bdf6c6999c7
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 = en_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 of 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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $ menuentry_id_option 'gnulinux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $ menuentry_id_option 'gnulinux-linux-advanced-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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-4005179a-d4a7-4219-962c-9bdf6c6999c7' {
load_video
set gfxpayload = keep
insmod gzio
insmod part_msdos
insmod ext2
set root = 'hd2, msdos1'
if [x $ feature_platform_search_hint = xy]; then
search --no-floppy --fs-uuid --set = root --hint-ieee1275 = 'ieee1275 // disk @ 0, msdos1' --hint-bios = hd2, msdos1 --hint-efi = hd2, msdos1 --hint-baremetal = ahci2, msdos1 b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
else
search --no-floppy --fs-uuid --set = root b2b96fe9-a8b8-482f-bee5-27a7952b3ca9
fi
echo 'Loading Linux linux ...'
linux / vmlinuz-linux root = UUID = 4005179a-d4a7-4219-962c-9bdf6c6999c7 rw quiet
echo 'Loading initial memory image ...'
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 ###
menuentry 'Windows 10 (in / dev / sda1)' --class windows --class os $ menuentry_id_option 'osprober-chain-36B6828FB6824F75' {
insmod part_msdos
insmod ntfs
set root = 'hd0, msdos1'
if [x $ feature_plat

I laugh about myself XD...

Last edited by J.el_Metal (2018-07-16 09:31:57)

Offline

#11 2018-07-16 12:08:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: Installing LTS kernel, is not seen in grub [solved]

Output (in code tags) of

lsblk -f
mount

In the future, please just edit your post to mend it instead of posting the same info again and again and leaving the bad formatted text behind. Thanks.

Offline

#12 2018-07-16 12:33:22

J.el_Metal
Banned
From: España
Registered: 2018-07-15
Posts: 24

Re: Installing LTS kernel, is not seen in grub [solved]

Sorry for my lack of delicacy, I apologize to all. I just wanted to add that I've already managed to add the entries by hand and I've also copied the generated files so I can boot. Surely I will have done something new because it was all generated but not in the right place, except the entries clear. Thank you for your help, the method that I followed is the one pointed by the comrade @jasonwryan. You have to mark something or edit it to highlight that it is solved?
A greeting.

Offline

#13 2018-07-16 13:13:30

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: Installing LTS kernel, is not seen in grub [solved]

Edit your first post and prepend [solved] to the title, that's it.

Offline

Board footer

Powered by FluxBB