(SOLVED) boot Update

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
nonno13
Level 2
Level 2
Posts: 55
Joined: Mon Feb 06, 2017 1:21 pm

(SOLVED) boot Update

Post by nonno13 » Fri Mar 10, 2017 2:13 pm

I have a dual boot with Linux Mint Cinnamon 18.1 and windows 10. Last night about 3AM I saw that there were some grub2 updates that needed to be installed. I went through the install process and received a message that I would need to provide a unique password for secure boot to verify. I provided a password and hit continue. When nothing appeared to happen I was tired and shut down the PC. This morning I started it up and the boot sequence names changed from cinnamon 1st followed by windows to ubuntu 1st followed by windows. With that exception everything else seems to be working OK. However, it did not request the password that it said I would need for secure boot. I am thinking that I shut the PC down before it had a chance to make all the necessary changes. A list of packages that should have been installed is shown below. However, I do not think that they were installed properly. How can I reinstall them?
test2.jpg
Last edited by nonno13 on Tue Mar 14, 2017 12:23 pm, edited 1 time in total.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: boot Update

Post by austin.texas » Fri Mar 10, 2017 6:18 pm

nonno13 wrote:Last night about 3AM I saw that there were some grub2 updates that needed to be installed. I went through the install process and received a message that I would need to provide a unique password for secure boot to verify.
I have never heard of any request like that, but if it is giving you problems, go into the computer's settings and turn Secure Boot off.
nonno13 wrote:This morning I started it up and the boot sequence names changed from cinnamon 1st followed by windows to ubuntu 1st followed by windows.
That is really annoying, in my opinion, but reasonably easy to fix.
If you look in the /etc/grub.d folder, you will see 2 files, 10_linux.dpkg-old and 10_linux
If you want the old one back (as anyone would), rename them.

Code: Select all

sudo mv /etc/grub.d/10_linux  /etc/grub.d/10_linuxBACK

Code: Select all

sudo mv  /etc/grub.d/10_linux.dpkg-old  /etc/grub.d/10_linux
Then update Grub:

Code: Select all

sudo update-grub
That will fix the name change back to "Cinnamon" instead of "Ubuntu".
nonno13 wrote:A list of packages that should have been installed is shown below. However, I do not think that they were installed properly. How can I reinstall them?
Run the command:

Code: Select all

sudo apt-get -f install
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

nonno13
Level 2
Level 2
Posts: 55
Joined: Mon Feb 06, 2017 1:21 pm

Re: boot Update

Post by nonno13 » Sat Mar 11, 2017 1:06 pm

Thank you Austin-Texas,

Here are the results of your 3 suggestions:

1. I turned secure boot off and rebooted. Nothing changed. I rebooted and turned secure boot back on.
2. I restored the old 10_linux.dpkg-old and it worked :) although I now have 2 extra lines. :( It now looks like the following

Linux Mint 18.1 Cinnamon 64 bit
Advanced options for Linux Mint 18.1 Cinnamon 64 bit
Linux Mint 18.1 Cinnamon 64 bit
Advanced options for Linux Mint 18.1 Cinnamon 64 bit
Windows Boot Manager
System Setup
How do I get rid of the 2 extra lines?
3. ran sudo apt-get -f install and nothing changed.

So, I believe that the updates shown in my original post and of my main concern were NOT installed. I do have a backup of my home directory using back-in-time. Is there any way that I can remove the updates that were not properly installed at 3AM by going back to a previous day?

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: boot Update

Post by austin.texas » Sat Mar 11, 2017 1:51 pm

I don't know why you would have duplicate menuentries. I just did the exact same thing, and did not get 2 entries.
Post the contents of your /boot/grub/grub.cfg (inside CODE tags) and let's take a look.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: boot Update

Post by austin.texas » Sat Mar 11, 2017 1:58 pm

If you believe that your program installation might have been interrupted, the sudo apt-get -f install will complete the installation of any dependencies that are pending. If there is no result, then that is OK. You should be able to use your Update Manager without error.
You could also run a command to complete any program configuration that might be incomplete, if you think that might be a concern:

Code: Select all

sudo dpkg --configure -a
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

nonno13
Level 2
Level 2
Posts: 55
Joined: Mon Feb 06, 2017 1:21 pm

Re: boot Update

Post by nonno13 » Sun Mar 12, 2017 1:52 pm

Below is a copy of my file /boot/grub/grub.cfg

# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
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_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
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 ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_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 'Linux Mint 18.1 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-53-generic
}
submenu 'Advanced options for Linux Mint 18.1 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-41df312b-b83e-4746-b3c0-417421820f1a' {
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-init-upstart-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
}

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

### BEGIN /etc/grub.d/10_linuxback ###
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 'Linux Mint 18.1 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-53-generic
}
submenu 'Advanced options for Linux Mint 18.1 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-41df312b-b83e-4746-b3c0-417421820f1a' {
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-init-upstart-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
menuentry 'Linux Mint 18.1 Cinnamon 64-bit, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-41df312b-b83e-4746-b3c0-417421820f1a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 41df312b-b83e-4746-b3c0-417421820f1a
else
search --no-floppy --fs-uuid --set=root 41df312b-b83e-4746-b3c0-417421820f1a
fi
echo 'Loading Linux 4.4.0-53-generic ...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=41df312b-b83e-4746-b3c0-417421820f1a ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
}

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

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-74A4-F7E7' {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 74A4-F7E7
else
search --no-floppy --fs-uuid --set=root 74A4-F7E7
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
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 ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 ###

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: boot Update

Post by austin.texas » Mon Mar 13, 2017 3:50 pm

Looking at your grub.cfg, the problem is pretty obvious, and the solution as well.
For some reason, your second (backup) 10_linux which you renamed to "/etc/grub.d/10_linuxback", being executed after 10_linux
Mine does not do that, but anyway, now that you know that 10_linux is working, the backup can be deleted.

Code: Select all

sudo rm /etc/grub.d/10_linuxback
Then again run:

Code: Select all

sudo update-grub
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

nonno13
Level 2
Level 2
Posts: 55
Joined: Mon Feb 06, 2017 1:21 pm

Re: boot Update

Post by nonno13 » Tue Mar 14, 2017 9:20 am

Austin-texas,

Thanks. That removed the 2 extra lines from from the boot menu. Do you think the installation of the packages in my original post is OK?

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: boot Update

Post by austin.texas » Tue Mar 14, 2017 9:32 am

If you have run those 2 commands:

Code: Select all

sudo apt-get -f install

Code: Select all

sudo dpkg --configure -a
Any incomplete package updates should be OK.
Is there still a problem when you use the Update Manager or with

Code: Select all

sudo apt-get update
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

nonno13
Level 2
Level 2
Posts: 55
Joined: Mon Feb 06, 2017 1:21 pm

Re: boot Update

Post by nonno13 » Tue Mar 14, 2017 12:23 pm

No, everything seems fine. I will consider this issue solved and mark it as such. Thank you again for all your help.

Post Reply

Return to “Installation & Boot”