grub rescue problem

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

grub rescue problem

Post by handyman4848 » Mon Sep 17, 2018 5:16 pm

I managed to screw up my grub2 installation when I deleted a couple of partitions and now I get the grub rescue prompt on boot-up.

My Linux installation is on sda6.

From the grub rescue prompt I issued the following commands;
set root=(hd0,gpt6)
set prefix=(hd0,gpt6)/boot/grub
insmod normal
normal


This brings up my grub boot menu and allows me to load Linux Mint 18.3 normally but it is not permanent, a reboot brings up the grub rescue prompt.

I read in another post that the solution is to go into a terminal window and issue the commands;
sudo update-grub
then
sudo grub-install /dev/sdx
where sdx is my linux partition

This does not work, and gives an error message (I can't remember what it was right now.)

I found another post from the same person saying that the solution to that problem was to use the chmod command then issue the update-grub and grub-install commands.

I tried to do this but can't figure out how (No further explanation was given in the post I read.) Everything I tried resulted in an error message.

Can anyone tell me how to make the grub repair permanent?

Laurent85
Level 15
Level 15
Posts: 5747
Joined: Tue May 26, 2015 10:11 am

Re: grub rescue problem

Post by Laurent85 » Mon Sep 17, 2018 5:31 pm

Can you boot a live usb session and post below commands output:

Code: Select all

sudo parted --list --script
sudo os-prober
Image

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Mon Sep 17, 2018 7:49 pm

Hi Laurent85, I did not need a live usb, I can boot Linux 18.03 using the grub rescue commands I listed.

Here is the output I gotfrom the commands you suggested:

sudo parted --list --script
[sudo] password for bill:
Model: ATA ST1000DM003-1CH1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 524MB 523MB ntfs Basic data partition hidden, diag
2 524MB 629MB 105MB fat32 EFI system partition boot, esp
3 629MB 646MB 16.8MB Microsoft reserved partition msftres
4 646MB 501GB 501GB ntfs Windows 10 msftdata
5 501GB 502GB 1024MB linux-swap(v1)
6 502GB 526GB 24.0GB ext4 Linux Mint 18.3
7 526GB 864GB 338GB ext4 Linux Mint-Home
8 864GB 1000GB 136GB ntfs Information msftdata


Model: ATA ST1000DM010-2EP1 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary ntfs

sudo os-prober gives no return

User avatar
CaptainKirksChair
Level 4
Level 4
Posts: 315
Joined: Sat Feb 18, 2017 9:29 pm

Re: grub rescue problem

Post by CaptainKirksChair » Mon Sep 17, 2018 9:08 pm

handyman4848 wrote:
Mon Sep 17, 2018 7:49 pm

Code: Select all

Number  Start   End     Size    File system     Name                  Flags
 2      524MB  629MB   105MB   fat32           EFI System Partition  boot, esp
This is where Grub should go. You have a GPT partition table and are using UEFI for booting. See the flags at the end of the line? That means the EFI partition is the boot partition and Grub should be located there.

Here is mine from my iMac.

Code: Select all

Number  Start   End     Size    File system     Name                  Flags
 1      20.5kB  210MB   210MB   fat32           EFI System Partition  boot, esp
So I think your command should be:

Code: Select all

sudo grub-install /dev/sda2

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Tue Sep 18, 2018 12:14 pm

Thanks for the suggestion CaptainKirksChair, but I had already tried this and it does not work ... returns the error message shown below.

~ $ sudo grub-install /dev/sda2
Installing for i386-pc platform.
grub-install.real: warning: File system `fat' doesn't support embedding.
grub-install.real: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install.real: error: will not proceed with blocklists.


When I researched that error message I found a post saying that the chroot command must be used before update-grub and grub-install but as I said in my original post I can't figure out how to do this. All my attempts result in error messages and failure.

Laurent85
Level 15
Level 15
Posts: 5747
Joined: Tue May 26, 2015 10:11 am

Re: grub rescue problem

Post by Laurent85 » Tue Sep 18, 2018 12:22 pm

Did you try to reinstall grub ? The grub version you are running is not grub uefi but grub for bios (Legacy).
Image

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Tue Sep 18, 2018 1:51 pm

Laurent85, the grub version I am running was installed when I installed Linux Mint 18.3 following a hard drive re-format and Windows 10 install.

Everything was fine for some time, then I added Ubuntu 18.04 to try it out, which of course did a new grub install. I then decided to remove Ubuntu 18.04 and deleted the Ubuntu 18.04 partitions. That is when my grub problems started.

Grub works fine after entering the previously mentioned commands at the grub rescue prompt, I just can't make it permanent.

User avatar
administrollaattori
Level 15
Level 15
Posts: 5648
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: grub rescue problem

Post by administrollaattori » Tue Sep 18, 2018 2:13 pm

handyman4848 wrote:
Tue Sep 18, 2018 1:51 pm
Grub works fine after entering the previously mentioned commands at the grub rescue prompt, I just can't make it permanent.
Install efi-grub

Code: Select all

sudo mount /dev/sda2 /boot
sudo mkdir -p /boot/efi/EFI/ubuntu
sudo apt-get update
sudo apt-get install --reinstall grub-efi grub-efi-amd64
sudo update-grub
If EFI-partition is not in the /etc/fstab file, add it.

Laurent85
Level 15
Level 15
Posts: 5747
Joined: Tue May 26, 2015 10:11 am

Re: grub rescue problem

Post by Laurent85 » Tue Sep 18, 2018 2:26 pm

handyman4848 wrote:
Tue Sep 18, 2018 1:51 pm
Laurent85, the grub version I am running was installed when I installed Linux Mint 18.3 following a hard drive re-format and Windows 10 install.
So Mint was mistakenly installed in Legacy mode, reinstalling grub fails with your uefi setup.
Image

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Tue Sep 18, 2018 2:36 pm

Thanks administrollaattori. Not sure what you mean by "If EFI-partition is not in the /etc/fstab file, add it."

Would that be my sda2 partition?

This is my /etc/fstab file.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda / ext4 errors=remount-ro 0 1
# /home was on /dev/sda7 during installation
UUID=4ed22cb1-bf65-4fef-9f5a-05e9491ea288 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=cbf82046-1749-4618-ab8a-90ecc33a1ccc none swap sw 0 0


I ran "Boot Info Script in an attempt to get more info and have reproduced the output here, but I don't understand it. (Sorry for the large file size.)

Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
1358132928 of the same hard drive for core.img. core.img is at this
location and looks in partition 85 for .
=> No boot loader is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda2: __________________________________________________________________________

File system: vfat
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda2
and looks at sector 985818576 of the same hard drive
for core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi

sda3: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sda4: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /Windows/System32/winload.exe

sda5: __________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda6: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 18.3 Sylvia
Boot files: /boot/grub/grub.cfg /etc/fstab

sda7: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda8: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sdb1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 1,953,525,167 1,953,525,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,023,999 1,021,952 Windows Recovery Environment (Windows)
/dev/sda2 1,024,000 1,228,799 204,800 EFI System partition
/dev/sda3 1,228,800 1,261,567 32,768 Microsoft Reserved Partition (Windows)
/dev/sda4 1,261,568 978,806,783 977,545,216 Data partition (Windows/Linux)
/dev/sda5 978,806,784 980,807,679 2,000,896 Swap partition (Linux)
/dev/sda6 980,807,680 1,027,682,303 46,874,624 Data partition (Linux)
/dev/sda7 1,027,682,304 1,687,283,711 659,601,408 Data partition (Linux)
/dev/sda8 1,687,283,712 1,953,523,711 266,240,000 Data partition (Windows/Linux)

Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 2,048 1,953,523,711 1,953,521,664 7 NTFS / exFAT / HPFS


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 6606AB8F06AB5EB5 ntfs Recovery
/dev/sda2 06AE-45EF vfat
/dev/sda3
/dev/sda4 5074BE6374BE4B8A ntfs Windows
/dev/sda5 cbf82046-1749-4618-ab8a-90ecc33a1ccc swap
/dev/sda6 c02c89e3-82d3-4d2b-a482-0906ca679fda ext4
/dev/sda7 4ed22cb1-bf65-4fef-9f5a-05e9491ea288 ext4
/dev/sda8 71BCEE1D76442399 ntfs My Data
/dev/sdb1 5C113CC50BDE36D9 ntfs Data Drive

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda6 / ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda7 /home ext4 (rw,relatime,data=ordered)
/dev/sda8 /media/bill/My Data fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sdb1 /media/bill/Data Drive fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)


=========================== sda6/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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=640x480
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_CA
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.3 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
linux /boot/vmlinuz-4.15.0-34-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-34-generic
}
submenu 'Advanced options for Linux Mint 18.3 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-34-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-34-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-34-generic ...'
linux /boot/vmlinuz-4.15.0-34-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-34-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-34-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-34-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-34-generic ...'
linux /boot/vmlinuz-4.15.0-34-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-34-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-34-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-34-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-34-generic ...'
linux /boot/vmlinuz-4.15.0-34-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-34-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-33-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-33-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-33-generic ...'
linux /boot/vmlinuz-4.15.0-33-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-33-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-33-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-33-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-33-generic ...'
linux /boot/vmlinuz-4.15.0-33-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-33-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-33-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-33-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-33-generic ...'
linux /boot/vmlinuz-4.15.0-33-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-33-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-32-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-32-generic ...'
linux /boot/vmlinuz-4.15.0-32-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-32-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-32-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-32-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-32-generic ...'
linux /boot/vmlinuz-4.15.0-32-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-32-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-32-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-32-generic ...'
linux /boot/vmlinuz-4.15.0-32-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-32-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-30-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-30-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-30-generic ...'
linux /boot/vmlinuz-4.15.0-30-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-30-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-30-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-30-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-30-generic ...'
linux /boot/vmlinuz-4.15.0-30-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-30-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-30-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-30-generic ...'
linux /boot/vmlinuz-4.15.0-30-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-30-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-29-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-29-generic ...'
linux /boot/vmlinuz-4.15.0-29-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-29-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-29-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-29-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-29-generic ...'
linux /boot/vmlinuz-4.15.0-29-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-29-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-29-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-29-generic ...'
linux /boot/vmlinuz-4.15.0-29-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-29-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-24-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-24-generic ...'
linux /boot/vmlinuz-4.15.0-24-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-24-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-24-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-24-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-24-generic ...'
linux /boot/vmlinuz-4.15.0-24-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-24-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.15.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-24-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.15.0-24-generic ...'
linux /boot/vmlinuz-4.15.0-24-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-24-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.13.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-45-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.13.0-45-generic ...'
linux /boot/vmlinuz-4.13.0-45-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-45-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.13.0-45-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-45-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.13.0-45-generic ...'
linux /boot/vmlinuz-4.13.0-45-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-45-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.13.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-45-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.13.0-45-generic ...'
linux /boot/vmlinuz-4.13.0-45-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.13.0-45-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-advanced-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-init-upstart-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
menuentry 'Linux Mint 18.3 Cinnamon 64-bit, with Linux 4.10.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.10.0-38-generic-recovery-c02c89e3-82d3-4d2b-a482-0906ca679fda' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
echo 'Loading Linux 4.10.0-38-generic ...'
linux /boot/vmlinuz-4.10.0-38-generic root=UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.10.0-38-generic
}
}

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

### 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+ ###
menuentry 'Memory test (memtest86+)' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
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 c02c89e3-82d3-4d2b-a482-0906ca679fda
else
search --no-floppy --fs-uuid --set=root c02c89e3-82d3-4d2b-a482-0906ca679fda
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=c02c89e3-82d3-4d2b-a482-0906ca679fda / ext4 errors=remount-ro 0 1
# /home was on /dev/sda7 during installation
UUID=4ed22cb1-bf65-4fef-9f5a-05e9491ea288 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=cbf82046-1749-4618-ab8a-90ecc33a1ccc none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)


========= Devices which don't seem to have a corresponding hard drive: =========

no block devices found

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-7yQ7Z6bS/Tmp_Log: No such file or directory


User avatar
administrollaattori
Level 15
Level 15
Posts: 5648
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: grub rescue problem

Post by administrollaattori » Wed Sep 19, 2018 8:32 am

handyman4848 wrote:
Tue Sep 18, 2018 2:36 pm
Thanks administrollaattori. Not sure what you mean by "If EFI-partition is not in the /etc/fstab file, add it."
Would that be my sda2 partition?
Add the next line to the /etc/fstab file

Code: Select all

UUID=06AE-45EF  /boot/efi  vfat  defaults  0  2

Code: Select all

sudo nano /etc/fstab
... edit and save
Ctrl o
Ctrl x

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Wed Sep 19, 2018 7:31 pm

Well, I tried what you suggested administrollaattori, but no joy. I used cut and paste to make certain there were no typos or other errors but I still get a grub recue prompt when I try to boot up the system.

The only thing that works is:
grub rescue> set root=(hd0,gpt6)
grub rescue> set prefix=(hd0,gpt6)/boot/grub
grub rescue> insmod normal
grub rescue> normal


This brings up my normal grub boot menu from which I boot my system into Linux Mint 18.3 Cinamon as always.

What I cannot do is find a way to make this happen automatically as it should.

I did read a post on the ubuntu forums saying that it could be made permanent with the commands:
sudo update-grub
sudo grub-install /dev/sdx


This was followed by a post saying that it did not work then a second post from the same person saying problem was solved by using the commands;
chroot, update-grub, grub-install /dev/sdx
with no further explanation.

I tried to do this but was unsuccessful, and reading man chroot did nothing to clarify the issue for me.

Since grub rescue commands will bring up my normal grub boot menu there must be a way to make this happen automatically when I boot my computer. So far all I seem to have accomplished is to clutter up my /boot directory with a bunch of un-necessary directories and files.

User avatar
administrollaattori
Level 15
Level 15
Posts: 5648
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: grub rescue problem

Post by administrollaattori » Thu Sep 20, 2018 4:26 am

Is your computer in Legacy BIOS or UEFI mode?

Code: Select all

[ -d /sys/firmware/efi ] && echo "EFI mode" || echo "Legacy Bios mode"

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Thu Sep 20, 2018 10:18 am

It looks like I am in legacy bios mode.

~ $ [ -d /sys/firmware/efi ] && echo "EFI mode" || echo "Legacy Bios mode"
Legacy Bios mode

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Thu Sep 20, 2018 10:31 am

administrollaattori, I don't know if this is relevant, but to boot into Windows I need to press F12 for the Boot Menu and select "Windows Boot Loader" or "EFI xyz" where xyz is the UUID of sda. To boot Linux I would press F12 for the Boot Menu and select the UUID of sda, not the EFI version. Once selected the choice is persistent until changed.

User avatar
Rayser
Level 1
Level 1
Posts: 36
Joined: Mon Jan 01, 2018 6:29 pm

Re: grub rescue problem

Post by Rayser » Thu Sep 20, 2018 1:17 pm


User avatar
administrollaattori
Level 15
Level 15
Posts: 5648
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: grub rescue problem

Post by administrollaattori » Thu Sep 20, 2018 1:41 pm

handyman4848 wrote:
Thu Sep 20, 2018 10:18 am
It looks like I am in legacy bios mode.

~ $ [ -d /sys/firmware/efi ] && echo "EFI mode" || echo "Legacy Bios mode"
Legacy Bios mode
Do not use Legacy Bios mode. Use UEFI mode with both of systems. :wink:

PS. Set "ubuntu" as the first bootable system over "Microsoft boot loader" in the BIOS-settings.

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Thu Sep 20, 2018 7:16 pm

I do not seem to have that option.

User avatar
administrollaattori
Level 15
Level 15
Posts: 5648
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: grub rescue problem

Post by administrollaattori » Fri Sep 21, 2018 2:40 am

handyman4848 wrote:
Thu Sep 20, 2018 7:16 pm
I do not seem to have that option.
OK. Install rEFInd (Debian package).
https://www.rodsbooks.com/refind/getting.html

handyman4848
Level 1
Level 1
Posts: 38
Joined: Fri Nov 30, 2012 3:41 pm

Re: grub rescue problem

Post by handyman4848 » Fri Sep 21, 2018 11:46 am

Well administrollaattori, that did not work either. The install seemed to complete normally but a reboot gives the same results as before and selcting an EFI boot from the bios boot menu just launches Windows as before.

Post Reply

Return to “Installation & Boot”