Choose style:

Author Topic: GRUB problem after update (SOLVED)  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
GRUB problem after update (SOLVED)
« on: February 06, 2018, 04:38:07 pm »
Hi there!

I'm running Peppermint 8, 64, with an encrypted home folder, dual booting with Korora 26, with an encrypted LVM. Peppermint is my main distro while I keep experimenting with other distros on my other partition (so, I always have the other distro's GRUB installed.

However, after an update in Peppermint, my original Peppermint GRUB was restored. It wasn't the first time, however this time it erased my Korora entries and I cannot boot to Korora anymore. Following some online instructions, I did:

Code: [Select]
sudo apt install lvm2
Then I've used Nemo to mount the encrypted Korora partition. It asks for the password but returns an error (without further details).  Now I can access my Korora home folder.

Next, I did:
Code: [Select]
christian@christian-pepper-dell ~> sudo update-grub
[sudo] password for christian:
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.13.0-32-generic
Found initrd image: /boot/initrd.img-4.13.0-32-generic
Found linux image: /boot/vmlinuz-4.13.0-31-generic
Found initrd image: /boot/initrd.img-4.13.0-31-generic
Found linux image: /boot/vmlinuz-4.13.0-26-generic
Found initrd image: /boot/initrd.img-4.13.0-26-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Korora release 26 (Bloat) on /dev/mapper/korora-root
done

The boot entry for Korora (/dev/mapper/korora-root) looks very strange to me. And it doesn't work.

I'm sure there's a very simple solution for it. Can anyone help me?

Code: [Select]
christian@christian-pepper-dell ~> sudo fdisk -l
Disk /dev/sda: 232,9 GiB, 250058268160 bytes, 488395055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc0a05991

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   2099199   2097152     1G 83 Linux
/dev/sda2       287858686 488394751 200536066  95,6G  5 Extended
/dev/sda3         2099200 287856639 285757440 136,3G 83 Linux
/dev/sda5       471767040 488394751  16627712     8G 82 Linux swap / Solaris
/dev/sda6       287858688 471767039 183908352  87,7G 83 Linux

Partition table entries are not in disk order.


Disk /dev/mapper/cryptswap1: 8 GiB, 8512864256 bytes, 16626688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/luks-d7b12c4b-40ae-446e-aeea-47c280a39f60: 136,3 GiB, 146305712128 bytes, 285753344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/korora-swap: 7,9 GiB, 8430551040 bytes, 16465920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/korora-home: 78,4 GiB, 84183875584 bytes, 164421632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/korora-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
« Last Edit: February 07, 2018, 01:56:56 pm by christianvl »
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #1 on: February 06, 2018, 05:38:22 pm »
Okay this setup is new to me, so we'll be 'feeling' our way through this.

What's he contents of
Code: [Select]
xed /boot/grub/grub.cfg
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #2 on: February 06, 2018, 06:27:27 pm »
Ok, thank you very much for the effort!

Here's the output of grub.cfg:

Spoiler (click here to view / hide)
#
# 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 [ "${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 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_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
else
  search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
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_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=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
else
  search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
fi
insmod png
if background_image /boot/grub/grub-background.png; then
  true
else
  set menu_color_normal=light-gray/black
  set menu_color_highlight=white/red
fi
### 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 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 'Peppermint GNU/Linux' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
   recordfail
   load_video
   gfxmode $linux_gfx_mode
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos6'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
   else
     search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
   fi
        linux   /boot/vmlinuz-4.13.0-32-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff
   initrd   /boot/initrd.img-4.13.0-32-generic
}
submenu 'Advanced options for Peppermint GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-32-generic-advanced-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-32-generic ...'
           linux   /boot/vmlinuz-4.13.0-32-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-32-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-32-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-32-generic-init-upstart-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-32-generic ...'
           linux   /boot/vmlinuz-4.13.0-32-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-32-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-32-generic-recovery-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-32-generic ...'
           linux   /boot/vmlinuz-4.13.0-32-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-32-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-31-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-31-generic-advanced-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-31-generic ...'
           linux   /boot/vmlinuz-4.13.0-31-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-31-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-31-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-31-generic-init-upstart-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-31-generic ...'
           linux   /boot/vmlinuz-4.13.0-31-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-31-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-31-generic-recovery-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-31-generic ...'
           linux   /boot/vmlinuz-4.13.0-31-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-31-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-26-generic-advanced-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-26-generic ...'
           linux   /boot/vmlinuz-4.13.0-26-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-26-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-26-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-26-generic-init-upstart-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-26-generic ...'
           linux   /boot/vmlinuz-4.13.0-26-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-26-generic
   }
   menuentry 'Peppermint GNU/Linux, with Linux 4.13.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-26-generic-recovery-ebab4626-5eb4-4973-abf5-7133f9fb3167' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos6'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
      else
        search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
      fi
      echo   'Loading Linux 4.13.0-26-generic ...'
           linux   /boot/vmlinuz-4.13.0-26-generic root=UUID=ebab4626-5eb4-4973-abf5-7133f9fb3167 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.13.0-26-generic
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos6'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
   else
     search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
   fi
   knetbsd   /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos6'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ebab4626-5eb4-4973-abf5-7133f9fb3167
   else
     search --no-floppy --fs-uuid --set=root ebab4626-5eb4-4973-abf5-7133f9fb3167
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
   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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
   else
     search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
   fi
   linux /vmlinuz-4.14.16-200.fc26.x86_64 root=/dev/dm-4
   initrd /initramfs-4.14.16-200.fc26.x86_64.img
}
submenu 'Advanced options for Korora release 26 (Bloat) (on /dev/mapper/korora-root)' $menuentry_id_option 'osprober-gnulinux-advanced-9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
   menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.14.16-200.fc26.x86_64--9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
      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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
      else
        search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
      fi
      linux /vmlinuz-4.14.16-200.fc26.x86_64 root=/dev/dm-4
      initrd /initramfs-4.14.16-200.fc26.x86_64.img
   }
   menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-0-rescue-4125e214766a45d9bbac209c9981fc89--9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
      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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
      else
        search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
      fi
      linux /vmlinuz-0-rescue-4125e214766a45d9bbac209c9981fc89 root=/dev/dm-4
      initrd /initramfs-0-rescue-4125e214766a45d9bbac209c9981fc89.img
   }
   menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.14.14-200.fc26.x86_64--9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
      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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
      else
        search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
      fi
      linux /vmlinuz-4.14.14-200.fc26.x86_64 root=/dev/dm-4
      initrd /initramfs-4.14.14-200.fc26.x86_64.img
   }
   menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-4.14.13-200.fc26.x86_64--9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
      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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
      else
        search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
      fi
      linux /vmlinuz-4.14.13-200.fc26.x86_64 root=/dev/dm-4
      initrd /initramfs-4.14.13-200.fc26.x86_64.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 ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
[close]
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #3 on: February 06, 2018, 06:49:07 pm »
Do any of the GRUB entried for korora work .. there seems to be a few.

And from within Peppermint what's the output from:
Code: [Select]
sudo blkid
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #4 on: February 06, 2018, 07:11:50 pm »
Curiously, the GRUB menu only show one entry for Korora, and it doesn't work. Maybe it is related on how I'm mounting the LVM under Peppermint? I'd guess it is only reading the home folder and not the root, so the filesystem is not detected by update-grub. I had to install LVM2 to get Peppermint to read the partition.

Here's the outpuu of blkid

Code: [Select]
christian@christian-pepper-dell ~> sudo blkid
[sudo] password for christian:
/dev/sda1: UUID="12b24be5-7ecd-4949-a208-78ba8afc9170" TYPE="ext4" PARTUUID="c0a05991-01"
/dev/sda3: UUID="d7b12c4b-40ae-446e-aeea-47c280a39f60" TYPE="crypto_LUKS" PARTUUID="c0a05991-03"
/dev/sda5: UUID="efbee2e3-474e-4201-a1d3-af5feb9d2697" TYPE="swap" PARTUUID="c0a05991-05"
/dev/sda6: UUID="ebab4626-5eb4-4973-abf5-7133f9fb3167" TYPE="ext4" PARTUUID="c0a05991-06"
/dev/mapper/cryptswap1: UUID="46b7063d-5b70-46a7-a9ad-143772aaa20a" TYPE="swap"
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #5 on: February 07, 2018, 07:34:49 am »
I was searching how to mount the LVM volume, and this is what I did:

Code: [Select]
christian@christian-pepper-dell ~> sudo fdisk -l /dev/sda
Disk /dev/sda: 232,9 GiB, 250058268160 bytes, 488395055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc0a05991

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   2099199   2097152     1G 83 Linux
/dev/sda2       287858686 488394751 200536066  95,6G  5 Extended
/dev/sda3         2099200 287856639 285757440 136,3G 83 Linux
/dev/sda5       471767040 488394751  16627712     8G 82 Linux swap / Solaris
/dev/sda6       287858688 471767039 183908352  87,7G 83 Linux

Then:
Code: [Select]
christian@christian-pepper-dell ~> sudo cryptsetup luksOpen /dev/sda3 encrypted-volume
Enter passphrase for /dev/sda3:

Code: [Select]
christian@christian-pepper-dell ~> sudo vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "korora" using metadata type lvm2

Code: [Select]
christian@christian-pepper-dell ~> sudo lvscan
  ACTIVE            '/dev/korora/swap' [7,85 GiB] inherit
  ACTIVE            '/dev/korora/home' [78,40 GiB] inherit
  ACTIVE            '/dev/korora/root' [50,00 GiB] inherit

christian@christian-pepper-dell ~> sudo ls /dev/mapper/
control  cryptswap1  encrypted-volume  korora-home  korora-root  korora-swap

Now I can use Nemo to navigate Korora's home and filesystem.

So I've decided to give a try:
Code: [Select]
christian@christian-pepper-dell ~> sudo grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

Code: [Select]
christian@christian-pepper-dell ~> sudo update-grub
Generating grub configuration file ...
Found background image: grub-background.png
Found linux image: /boot/vmlinuz-4.13.0-32-generic
Found initrd image: /boot/initrd.img-4.13.0-32-generic
Found linux image: /boot/vmlinuz-4.13.0-31-generic
Found initrd image: /boot/initrd.img-4.13.0-31-generic
Found linux image: /boot/vmlinuz-4.13.0-26-generic
Found initrd image: /boot/initrd.img-4.13.0-26-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Korora release 26 (Bloat) on /dev/mapper/korora-root
done

The result, unfortunately, is the same. It boots in text mode, to an emergency mode. However, I don't know what I could do from this prompt to solve this issue. I've booted the Korora Live ISO, but couldn't figure out how to repair my GRUB from there. I believe that this "/dev/mapper/korora-root" should point to something similar to "/boot/vmlinuz* or initrd*"

I'm sure there is some trick to it that I'm missing. I'll keep looking for Fedora and Korora help too.
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1012
  • Karma: 56
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: GRUB problem after update
« Reply #6 on: February 07, 2018, 09:54:02 am »
Hi christianvl, did you check the emergency mode journalctl -xb option to see what the error is being displayed?
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #7 on: February 07, 2018, 10:03:52 am »
In Peppermint, what's the output from:
Code: [Select]
ls /boot

and is there no "Advanced options for Korora release 26" submenu at GRUB ?
« Last Edit: February 07, 2018, 10:05:55 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #8 on: February 07, 2018, 11:40:44 am »
Hi alynur, no I have not. I'll reboot and give it a try.

PCNetSpec:
Code: [Select]
christian@christian-pepper-dell ~> ls /boot
abi-4.13.0-26-generic         memtest86+.bin
abi-4.13.0-31-generic         memtest86+.elf
abi-4.13.0-32-generic         memtest86+_multiboot.bin
config-4.13.0-26-generic      System.map-4.13.0-26-generic
config-4.13.0-31-generic      System.map-4.13.0-31-generic
config-4.13.0-32-generic      System.map-4.13.0-32-generic
grub/                         vmlinuz-4.13.0-26-generic
initrd.img-4.13.0-26-generic  vmlinuz-4.13.0-31-generic
initrd.img-4.13.0-31-generic  vmlinuz-4.13.0-32-generic
initrd.img-4.13.0-32-generic

Yes, there is an advanced mode, with four or five boot options. They all look the same, but I'll try to edit the boot parameters and see if there's any difference (there probably is), and I'll try each one.
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #9 on: February 07, 2018, 12:14:19 pm »
Was Korora controlling GRUB prior to the Peppermint GRUB update ?

Link for my future reference
https://askubuntu.com/questions/844132/how-to-repair-boot-on-luks-encrypted-harddrive
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #10 on: February 07, 2018, 01:33:48 pm »
The advanced options did not work too.

Running the command journalctl I found this error message: Warning: /dev/dm-4 does not exist

Then, before booting, I've edited the Korora boot parameters, replacing "root=/dev/dm-4" with "root=/dev/dm-3", so it looked like this:

Code: [Select]
menuentry 'Korora release 26 (Bloat) (on /dev/mapper/korora-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
   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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12b24be5-7ecd-4949-a208-78ba8afc9170
   else
     search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
   fi
   linux /vmlinuz-4.14.16-200.fc26.x86_64 root=/dev/dm-3
   initrd /initramfs-4.14.16-200.fc26.x86_64.img
}

Voilą. It booted in text mode (without plymouth), but it started normally and I'm using it, everything seems to be at the right place. Should I try to reinstall GRUB from Korora?

Quote
Was Korora controlling GRUB prior to the Peppermint GRUB update?
Yes, it was. However, prior to this problem, I had a Peppermint update that replaced Korora's GRUB but it would boot both systems without any issue. I don't know what happened this time and why is GRUB pointing to the wrong volume. Can I prevent a recurring problem?
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #11 on: February 07, 2018, 01:39:14 pm »
Yeah if you're into Korora I'd suggest reinstalling GRUB from there.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update
« Reply #12 on: February 07, 2018, 01:56:23 pm »
I've reinstalled Grub from Korora and everything is back to normal.  8)

I'll mark this topic as solved. Thank you all very much for taking your time to help me.
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline christianvl

  • Member
  • ***
  • Posts: 191
  • Karma: 33
  • The Wheel weaves as the Wheel wills
    • View Profile
  • Peppermint version(s): 9
Re: GRUB problem after update (SOLVED)
« Reply #13 on: February 07, 2018, 02:04:25 pm »
Just in case anyone is more curious, this is how Grub looks like now to boot Korora:

Code: [Select]
menuentry 'Korora (4.14.16-200.fc26.x86_64) 26 (Bloat)' --class korora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.12.13-300.fc26.x86_64-advanced-9619ad5b-24ed-4d71-b03d-e4962f7c9a66' {
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  12b24be5-7ecd-4949-a208-78ba8afc9170
else
  search --no-floppy --fs-uuid --set=root 12b24be5-7ecd-4949-a208-78ba8afc9170
fi
linux16 /vmlinuz-4.14.16-200.fc26.x86_64 root=/dev/mapper/korora-root ro rd.lvm.lv=korora/root rd.luks.uuid=luks-d7b12c4b-40ae-446e-aeea-47c280a39f60 rd.lvm.lv=korora/swap rhgb quiet LANG=en_US.UTF-8
initrd16 /initramfs-4.14.16-200.fc26.x86_64.img
}
There are neither beginnings or endings to the turning of the Wheel of Time. But it was a beginning.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: GRUB problem after update
« Reply #14 on: February 07, 2018, 02:17:29 pm »
I've reinstalled Grub from Korora and everything is back to normal.  8)

Great news :)

I'll mark this topic as solved. Thank you all very much for taking your time to help me.

You did the work, but you're welcome for my fairly useless questions :))

[EDIT]

Thanks for marking the topic (SOLVED) :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec