You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Linux Lite Grub Repair Messes Up Entries

Author (Read 8452 times)

0 Members and 1 Guest are viewing this topic.

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #10 on: July 31, 2017, 07:07:11 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
I had similar issues with multiple boot setups & different OS's updating taking over Grub.
Eventually it annoyed me that much I decided to use a custom menu that only changes when I change it.
Following the instructions here - https://help.ubuntu.com/community/Grub2/CustomMenus
Specifically the info under number 6, Using Only a Custom Menu.

That's good to know :)  Thank you for sharing but for the most part I quit duel booting. 
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #9 on: March 20, 2017, 06:16:12 AM »
 

JmaCWQ

  • Forum Regular
  • ***
  • 227
    Posts
  • Reputation: 44
    • View Profile
I had similar issues with multiple boot setups & different OS's updating taking over Grub.
Eventually it annoyed me that much I decided to use a custom menu that only changes when I change it.
Following the instructions here - https://help.ubuntu.com/community/Grub2/CustomMenus
Specifically the info under number 6, Using Only a Custom Menu.
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #8 on: March 19, 2017, 06:10:33 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
Not sure if this would work in your case.. But I pooched my LL3.2 (updated from 3.0) grub when I dual booted LL3.4..

I pretty much copied grub from a Live USB mostly the following as suggested by gold_finger:

*  Mount the LL2 root partition on the HDD to the live environment
Code: [Select]
sudo mount /dev/sdXY /mnt
*  Install grub to the MBR of sda drive
Code: [Select]
sudo grub-install --boot-directory=/mnt/boot /dev/sdX

*  Unmount the LL2 root partition
Code: [Select]
sudo umount /dev/sdXY
*  Close terminal, shutdown live DVD and remove from tray. Then Reboot..

*  Log in and update grub and reboot
Code: [Select]
sudo update-grub

I've been doing this....  Funny thing is the last time I tried it, it didn't work.  But after I copied back the cfg file from my usb drive things started working.  I got no idea. 
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #7 on: March 13, 2017, 01:02:25 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Not sure if this would work in your case.. But I pooched my LL3.2 (updated from 3.0) grub when I dual booted LL3.4..

I pretty much copied grub from a Live USB mostly the following as suggested by gold_finger:

*  Mount the LL2 root partition on the HDD to the live environment
Code: [Select]
sudo mount /dev/sdXY /mnt
*  Install grub to the MBR of sda drive
Code: [Select]
sudo grub-install --boot-directory=/mnt/boot /dev/sdX

*  Unmount the LL2 root partition
Code: [Select]
sudo umount /dev/sdXY
*  Close terminal, shutdown live DVD and remove from tray. Then Reboot..

*  Log in and update grub and reboot
Code: [Select]
sudo update-grub
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #6 on: March 12, 2017, 11:41:51 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
Update:  03/12/2017 at 11:33 PM

I am considering myself to be extremely lucky to even be able to write you guys from the Linux Lite 3.2 OS install!  I updated my last Linux Mint Mate install, and it tried to take over as the main distro.  This time even re installing grub from the LL from the live disc didn't fix it!  Luckily I had the latest back up of the grub.cfg on a flash drive!  Because I tried one that I had made several weeks ago and I got kernel errors and it wouldn't boot.  Said something about I needed to load the kernel first. 

I also tried to do what trinidad suggested.  Remove all the entries and copy in just the first entry.  I still don't know where the first entry begins and where it ends.  But I made a guess and I guess I guest wrong.  Because that didn't work either.
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #5 on: March 12, 2017, 06:58:52 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
Not exactly.... If your Linux Lite boots, just copy the first menu entry for Linux Lite from LL grub config not the whole file and save it for future use. Then if an update to grub in Mint takes over control of grub from Linux Lite, you can copy the correct LL entry (overwriting the wrong LL entry) for the grub config. file in Mint while in Mint (even though you are cautioned not to do such things) and you will be able to boot LL again from the Mint grub menu (you may have to remove the record fail command). Once booted again to Linux Lite just update grub and LL will again have grub control fixing itself, and Mint will still boot as well without having to use a boot repair tool that duplicates entries. Also rolling releases like Kali will leave entry after entry if you let them. You need to learn how to remove old kernels in Mint, which is explained on the Mint forums. Use Lite tweaks in LL which is explained here.

TC

Update:

I read some grub documentations, while they were interesting they didn't help me much....

Today I was updating the Linux Mint OSes.  KDE took over the grub and when grub came up It was frozen and I couldn't use the arrow keys.  I booted into Mint KDE renamed the grub.cfg to grubback.cfg and tried to copy a back up copy of the Linux Lite grub.cfg back to the boot/grub.  This worked before, but this time it didn't and I had to use the linux lite live cd and follow the instructions for re installing grub.  I suppose because I didn't eliminate the cfg in my grubback file, it might have been reading it instead of the one I copied over.

Can you show me what portion of this file I need to save?

Here is my grub file:

[code]

#
# 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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
else
  search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
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
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
else
  search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
fi
insmod png
background_image -m stretch /boot/grub_linux_lite.png
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,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
else
  search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
fi
insmod png
if background_image /boot/grub_linux_lite.png; then
  true
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
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 'Description:   Linux Lite 3.2 GNU/Linux' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7e874f7c-4abe-4502-a29e-18fb6298a773' {
   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,msdos8'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
   else
     search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
   fi
        linux   /boot/vmlinuz-4.4.0-66-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro  quiet splash $vt_handoff
   initrd   /boot/initrd.img-4.4.0-66-generic
}
submenu 'Advanced options for Description:   Linux Lite 3.2 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7e874f7c-4abe-4502-a29e-18fb6298a773' {
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-66-generic' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-66-generic-advanced-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      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,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-66-generic ...'
           linux   /boot/vmlinuz-4.4.0-66-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-66-generic
   }
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-66-generic (upstart)' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-66-generic-init-upstart-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      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,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-66-generic ...'
           linux   /boot/vmlinuz-4.4.0-66-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-66-generic
   }
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-66-generic (recovery mode)' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-66-generic-recovery-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-66-generic ...'
           linux   /boot/vmlinuz-4.4.0-66-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-66-generic
   }
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-64-generic' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-64-generic-advanced-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      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,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-64-generic ...'
           linux   /boot/vmlinuz-4.4.0-64-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-64-generic
   }
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-64-generic (upstart)' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-64-generic-init-upstart-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      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,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-64-generic ...'
           linux   /boot/vmlinuz-4.4.0-64-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-64-generic
   }
   menuentry 'Description:   Linux Lite 3.2 GNU/Linux, with Linux 4.4.0-64-generic (recovery mode)' --class description_ --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-64-generic-recovery-7e874f7c-4abe-4502-a29e-18fb6298a773' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos8'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
      else
        search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
      fi
      echo   'Loading Linux 4.4.0-64-generic ...'
           linux   /boot/vmlinuz-4.4.0-64-generic root=UUID=7e874f7c-4abe-4502-a29e-18fb6298a773 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.4.0-64-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/21_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos8'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
   else
     search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
   fi
   knetbsd   /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos8'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8  7e874f7c-4abe-4502-a29e-18fb6298a773
   else
     search --no-floppy --fs-uuid --set=root 7e874f7c-4abe-4502-a29e-18fb6298a773
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/21_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###




set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
   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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
   else
     search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
   fi
   linux /vmlinuz root=/dev/sda1
   initrd /initrd.img
}
submenu "Advanced options for Linux Mint 18 Sarah (18) (on /dev/sda1)"{
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=/dev/sda1
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=/dev/sda1
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) Kernel 4.4.0-57 (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-57-generic--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /boot/vmlinuz-4.4.0-57-generic root=/dev/sda1
      initrd /boot/initrd.img-4.4.0-57-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz root=/dev/sda1
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz.old--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /vmlinuz.old root=/dev/sda1
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=/dev/sda1
      initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic--96254c0b-5ecf-40f9-9ec8-1a9efd57c233' {
      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  96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      else
        search --no-floppy --fs-uuid --set=root 96254c0b-5ecf-40f9-9ec8-1a9efd57c233
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=/dev/sda1
      initrd /boot/initrd.img-4.4.0-21-generic
}
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-6dcbadbb-cab5-4633-b300-a042aba71fd9' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
   else
     search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
   fi
   linux /boot/vmlinuz-4.4.0-62-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff
   initrd /boot/initrd.img-4.4.0-62-generic
}
submenu "Advanced options for Linux Mint 18 Sarah (18) (on /dev/sda5)"{
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-62-generic (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-62-generic (upstart) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff init=/sbin/upstart
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-62-generic (recovery mode) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic-root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset-6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (upstart) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff init=/sbin/upstart
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (recovery mode) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic-root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset-6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=/dev/sda5
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=/dev/sda5
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz root=/dev/sda5
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz.old--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /vmlinuz.old root=/dev/sda5
      initrd /initrd.img.old
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=/dev/sda5
      initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry "Linux Mint 18 KDE 64-bit (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-62-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-62-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-62-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (upstart) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic--6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro quiet splash $vt_handoff init=/sbin/upstart
      initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry "Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (recovery mode) (on /dev/sda5)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-21-generic-root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset-6dcbadbb-cab5-4633-b300-a042aba71fd9' {
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  6dcbadbb-cab5-4633-b300-a042aba71fd9
      else
        search --no-floppy --fs-uuid --set=root 6dcbadbb-cab5-4633-b300-a042aba71fd9
      fi
      linux /boot/vmlinuz-4.4.0-21-generic root=UUID=6dcbadbb-cab5-4633-b300-a042aba71fd9 ro recovery nomodeset
      initrd /boot/initrd.img-4.4.0-21-generic
}
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-39998e29-3a79-4e67-a3a9-083852c8dbd8' {
   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  39998e29-3a79-4e67-a3a9-083852c8dbd8
   else
     search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
   fi
   linux /boot/vmlinuz-4.4.0-64-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro quiet splash $vt_handoff
   initrd /boot/initrd.img-4.4.0-64-generic
}
submenu "Advanced options for Linux Mint 18 Sarah (18) (on /dev/sda6)"{
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-64-generic (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-64-generic--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-64-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-64-generic
}
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-64-generic (upstart) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-64-generic--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-64-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro quiet splash $vt_handoff init=/sbin/upstart
      initrd /boot/initrd.img-4.4.0-64-generic
}
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-64-generic (recovery mode) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-64-generic-root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro recovery nomodeset-39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-64-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro recovery nomodeset
      initrd /boot/initrd.img-4.4.0-64-generic
}
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro quiet splash $vt_handoff
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (upstart) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro quiet splash $vt_handoff init=/sbin/upstart
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (recovery mode) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.4.0-59-generic-root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro recovery nomodeset-39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /boot/vmlinuz-4.4.0-59-generic root=UUID=39998e29-3a79-4e67-a3a9-083852c8dbd8 ro recovery nomodeset
      initrd /boot/initrd.img-4.4.0-59-generic
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /vmlinuz root=/dev/sda6
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uuid --set=root 39998e29-3a79-4e67-a3a9-083852c8dbd8
      fi
      linux /vmlinuz root=/dev/sda6
      initrd /initrd.img
}
menuentry "Linux Mint 18 Sarah (18) (on /dev/sda6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--39998e29-3a79-4e67-a3a9-083852c8dbd8' {
      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  39998e29-3a79-4e67-a3a9-083852c8dbd8
      else
        search --no-floppy --fs-uui
« Last Edit: July 16, 2017, 08:25:52 PM by Jerry »
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #4 on: February 06, 2017, 12:21:53 PM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
Not exactly.... If your Linux Lite boots, just copy the first menu entry for Linux Lite from LL grub config not the whole file and save it for future use. Then if an update to grub in Mint takes over control of grub from Linux Lite, you can copy the correct LL entry (overwriting the wrong LL entry) for the grub config. file in Mint while in Mint (even though you are cautioned not to do such things) and you will be able to boot LL again from the Mint grub menu (you may have to remove the record fail command). Once booted again to Linux Lite just update grub and LL will again have grub control fixing itself, and Mint will still boot as well without having to use a boot repair tool that duplicates entries. Also rolling releases like Kali will leave entry after entry if you let them. You need to learn how to remove old kernels in Mint, which is explained on the Mint forums. Use Lite tweaks in LL which is explained here.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #3 on: February 05, 2017, 09:29:01 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
When you use a gui supergrub2 repair disc (Ubuntu, Rescatux, TRC) it does not delete old entries, but rather just adds new workable ones. Constantly using grub gui repair utilities will only increase the entries. The first thing you need to do is settle on which distro you want to have control of grub. The second thing you may want to do is get rid of unused old kernels. Pick one OS to control grub, and clean up the grub entries there. Stop switching from one OS grub control to the other. In some situations updates to grub will cause OS's to retake control of grub. To avoid future problems copy the grub config file from the OS you always want to have control and keep a copy of that file on a USB or on each other OS in case updates break grub for the system you want to have control of grub. If boot then breaks for the system you want to have control grub you can simply copy and paste the entries from your chosen controlling system into the grub of the other and be able to boot into the system you want have control and then update its grub from there. The first thing you need to do is decide which system you want to have control of grub. Pick one and stick with it and clean up its old kernels and duplicated entries. Grub 2 can be intimidating because of its unique commands but it can boot just about anything bootable nowadays. It's worth learning how to use it if you like trying out multiple operating systems. There are many tutorials on the web. In your case I would let LL have grub control, so once it boots copy its grub config file to a usb just in case, then go into each of your mint distros and clean out all the old kernels and duplicated entries. Don't worry about the LL ones. Afterwards boot into LL and clean up its grub entries. Once complete copy that grub config file to usb for any future problems with mint grub updates that may break your LL boot.

I realize that LL needs to be the controlling distro. 

Let me get this straight.  Your idea is copy /boot/grub/grub.cfg from the Linux Lite partition to a USB stick.  If one of the other OSes takes over:  Boot up from a Live CD or USB, then used the commands to restore control to LL.  Then recopy the grub.cfg from the USB into into the /boot/grub/ on the linux lite partition.  Reboot into Linux Lite and then run os-prober and update-grub in the terminal.  Is that correct?

*I'm not sure about removing the extra Kernels.  If something doesn't boot right, it is good to have at least one as a back up.

TC
 

Re: Linux Lite Grub Repair Messes Up Entries
« Reply #2 on: January 30, 2017, 10:12:59 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1472
    Posts
  • Reputation: 214
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
When you use a gui supergrub2 repair disc (Ubuntu, Rescatux, TRC) it does not delete old entries, but rather just adds new workable ones. Constantly using grub gui repair utilities will only increase the entries. The first thing you need to do is settle on which distro you want to have control of grub. The second thing you may want to do is get rid of unused old kernels. Pick one OS to control grub, and clean up the grub entries there. Stop switching from one OS grub control to the other. In some situations updates to grub will cause OS's to retake control of grub. To avoid future problems copy the grub config file from the OS you always want to have control and keep a copy of that file on a USB or on each other OS in case updates break grub for the system you want to have control of grub. If boot then breaks for the system you want to have control grub you can simply copy and paste the entries from your chosen controlling system into the grub of the other and be able to boot into the system you want have control and then update its grub from there. The first thing you need to do is decide which system you want to have control of grub. Pick one and stick with it and clean up its old kernels and duplicated entries. Grub 2 can be intimidating because of its unique commands but it can boot just about anything bootable nowadays. It's worth learning how to use it if you like trying out multiple operating systems. There are many tutorials on the web. In your case I would let LL have grub control, so once it boots copy its grub config file to a usb just in case, then go into each of your mint distros and clean out all the old kernels and duplicated entries. Don't worry about the LL ones. Afterwards boot into LL and clean up its grub entries. Once complete copy that grub config file to usb for any future problems with mint grub updates that may break your LL boot.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Linux Lite Grub Repair Messes Up Entries
« Reply #1 on: January 29, 2017, 05:03:28 PM »
 

TuxInAGalaxy

  • PayPal Supporter
  • New to Forums
  • *****
  • 45
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • CPU: Depends on what machine I'm running.

  • MEMORY: 4Gb

  • VIDEO CARD: Depends on what machine I'm running.
I've been testing out both Linux Mint and Linux Lite out.  I have 4 different Mints (xfce, kde, cinnamon, and mate)  Then Linux Lite was installed last.  But one day I was doing some full updates on my Linux Mint Xfce and it took over the Grub.  I tried this to fix it:  https://www.linuxliteos.com/forums/suggestions-and-feedback/grub-quirk/msg13969/#msg13969  It at least got things working "good enough" to use the machine.  Today I decided to update all of the OSes.  And I knew they would take over the Grub.  I thought it was interesting that when Mint xfce took over the entries were fixed.  But once I turned it back over to the Linux Lite, all the entries got messed up again.

I'm not reporting the fact that Linux Lite grub has been altered:

"Jerry:
This is not a bug, so please don't report it as such. Grub is deliberately altered so that folks who dual boot with Windows will recognise Linux Lite in the Grub menu. This has been explained already. Cheers."
Link:  https://www.linuxliteos.com/forums/suggestions-and-feedback/grub-quirk/5/?wap2

I'm reporting that the way I found to fix this problem:  https://www.linuxliteos.com/forums/suggestions-and-feedback/grub-quirk/msg13969/#msg13969  Made a mess of the Grub entries, and simply running sudo update-grub doesn't fix it.  Here is what my current grub menu looks like.  It especially messed up my Linux Mint 18 xfce Install on sda1.  It doesn't seem to start up with Systemd anymore, and it displays a bunch of start up text.  Which the start up text is ok for me, but I know this is not the way the distro is intended to do.  Also I think there might be some other problems as a result as well. *If anyone has any suggestions on how to fix it please let me know.   :)

Here is what my Grub currently looks like:

Code: [Select]
GNU version 2.02~beta2-36ubuntu3.2

*Description:  Linux Lite 3.2 GNU/Linux
Advanced options for Description:  Linux Lite 3.2 GNU/Linux
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-59-generic
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-59-generic (upstart)
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-59-generic (recovery mode)
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-57-generic
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-57-generic (upstart)
    Description:  Linux Lite 3.2 GNU/Linux, With Linux 4.4.0-57-generic (recovery mode)
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Linux Mint 18 Sarah (18) (on /dev/sda1)
Advanced options for Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) Kernel 4.4.0-57 (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
    Linux Mint 18 Sarah (18) (on /dev/sda1)
Linux Mint 18 Sarah (18) (on /dev/sda5)
Advanced options for Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (upstart) (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-59-generic (recovery mode) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 Sarah (18) (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (upstart) (on /dev/sda5)
    Linux Mint 18 KDE 64-bit, with Linux 4.4.0-21-generic (recovery mode) (on /dev/sda5)
Linux Mint 18 Sarah (18) (on /dev/sda6)
Advanced options forLinux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (upstart) (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-59-generic (recovery mode) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Sarah (18) (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (upstart) (on /dev/sda6)
    Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (recovery mode) (on /dev/sda6)
Linux Mint 18 Sarah (18) (on /dev/sda7)
Advanced options forLinux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-59-generic (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-59-generic (upstart) (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-59-generic (recovery mode) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 Sarah (18) (on /dev/sda7)
    Linux Mint 18 MATE 64-bit (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-21-generic (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-21-generic (upstart) (on /dev/sda7)
    Linux Mint 18 MATE 64-bit, with Linux 4.4.0-21-generic (recovery mode) (on /dev/sda7)
« Last Edit: July 16, 2017, 08:26:24 PM by Jerry »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section