Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

GRUB refuses to boot in UEFI and other issues (MX Linux 18) (SOLVED)

Help for Current Versions of MX
User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#11

Post by fehlix » Tue Mar 12, 2019 9:41 pm

Ah, ok, sorry. Probably Internal devices needs to be enabled.
Right click desktop -> Settings , symbols, scroll down ,enable under media disks and drives.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 18296
Joined: Fri Dec 15, 2006 8:07 pm

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#12

Post by Stevo » Tue Mar 12, 2019 9:43 pm

Acers of that vintage with the Insyde BIOS need a few extra tweaks to boot Linux: viewtopic.php?f=23&t=49009&p=490015&hilit=acer#p490015

This is a known issue with Acers. If you dual-boot Windows, Windows and BIOS updates also will knock out the grub.efi file from the top, and you'll have to repeat the tweaks.

Solid
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue Mar 12, 2019 12:05 am

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#13

Post by Solid » Wed Mar 13, 2019 7:18 pm

fehlix wrote:
Tue Mar 12, 2019 9:41 pm
Ah, ok, sorry. Probably Internal devices needs to be enabled.
Right click desktop -> Settings , symbols, scroll down ,enable under media disks and drives.
Nvm it fixed itself I guess. Now what?
You do not have the required permissions to view the files attached to this post.

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#14

Post by fehlix » Wed Mar 13, 2019 8:30 pm

Solid wrote:
Wed Mar 13, 2019 7:18 pm
Nvm it fixed itself I guess. Now what?
Can't see much on that picture.
Probably a good idea to post the content of /etc/fstab as text as requested between code-tags.
And I guess you mean with " ... only to be met with a grub menu. I guess the kernel didn't load or something.",
we would better also have a look int the text file at /boot/grub/grub.cfg on that partition.
That's probably it for tonight ;=)
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Solid
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue Mar 12, 2019 12:05 am

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#15

Post by Solid » Thu Mar 14, 2019 8:34 pm

fehlix wrote:
Wed Mar 13, 2019 8:30 pm
Solid wrote:
Wed Mar 13, 2019 7:18 pm
Nvm it fixed itself I guess. Now what?
Can't see much on that picture.
Probably a good idea to post the content of /etc/fstab as text as requested between code-tags.
And I guess you mean with " ... only to be met with a grub menu. I guess the kernel didn't load or something.",
we would better also have a look int the text file at /boot/grub/grub.cfg on that partition.
That's probably it for tonight ;=)
Here's all the content in the fstab.

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
/dev/mmcblk0p2 / ext4 defaults,noatime 1 1
/dev/mmcblk0p3 swap swap defauts 0 0 
As for the grub.cfg, I can't seem to find it in the grub folder on the actual "hard drive" (more like chip) as you can see in the image attached. Also I was wondering about my partitions, could they also be an issue? I also noticed when going through the installation, they gave me the option to assign partitions to stuff like root, home, swap and boot. Root and home were on the same partition and swap got it's own partition, but when I came to boot it only gave me the root option. Maybe that could also be why the operating system won't boot? It's all very confusing.
You do not have the required permissions to view the files attached to this post.

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#16

Post by fehlix » Thu Mar 14, 2019 9:04 pm

Solid wrote:
Thu Mar 14, 2019 8:34 pm
As for the grub.cfg, I can't seem to find it in the grub folder on the actual "hard drive"
Please try to run MX Boot repair from the menu, -> reinstall grub and see
afterwards if an grub.cfg exists.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Solid
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue Mar 12, 2019 12:05 am

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#17

Post by Solid » Thu Mar 14, 2019 9:56 pm

fehlix wrote:
Thu Mar 14, 2019 9:04 pm
Solid wrote:
Thu Mar 14, 2019 8:34 pm
As for the grub.cfg, I can't seem to find it in the grub folder on the actual "hard drive"
Please try to run MX Boot repair from the menu, -> reinstall grub and see
afterwards if an grub.cfg exists.
:puppy:
It didn't appear.

Solid
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue Mar 12, 2019 12:05 am

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#18

Post by Solid » Fri Mar 15, 2019 7:00 pm

fehlix wrote:
Thu Mar 14, 2019 9:04 pm
Solid wrote:
Thu Mar 14, 2019 8:34 pm
As for the grub.cfg, I can't seem to find it in the grub folder on the actual "hard drive"
Please try to run MX Boot repair from the menu, -> reinstall grub and see
afterwards if an grub.cfg exists.
:puppy:
Yeah do you think it could be my paritions or something? Maybe something besides grub? idk

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3111
Joined: Wed Apr 11, 2018 5:09 pm

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#19

Post by fehlix » Fri Mar 15, 2019 7:33 pm

Solid wrote:
Fri Mar 15, 2019 7:00 pm
Yeah do you think it could be my paritions or something? Maybe something besides grub? idk
We will see, if MX boot repair fails, to create the grub.cfg, we still can try it from the command line,
to find the reason. MX Boot repair is normaly fairly stable. Only on some UEFI's are sometime some issues reported.
But grub.cfg shall be generated always. So run MX boot repair, even if MX Boot repair report errors,
the grub.cfg shall be generated. As the process is in different steps, and the first step rarely fails is to create grub.cfg.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Solid
Forum Novice
Forum  Novice
Posts: 11
Joined: Tue Mar 12, 2019 12:05 am

Re: GRUB refuses to boot in UEFI and other issues (MX Linux 18)

#20

Post by Solid » Sat Mar 16, 2019 1:36 am

fehlix wrote:
Fri Mar 15, 2019 7:33 pm
Solid wrote:
Fri Mar 15, 2019 7:00 pm
Yeah do you think it could be my paritions or something? Maybe something besides grub? idk
We will see, if MX boot repair fails, to create the grub.cfg, we still can try it from the command line,
to find the reason. MX Boot repair is normaly fairly stable. Only on some UEFI's are sometime some issues reported.
But grub.cfg shall be generated always. So run MX boot repair, even if MX Boot repair report errors,
the grub.cfg shall be generated. As the process is in different steps, and the first step rarely fails is to create grub.cfg.
:puppy:
I found it.

Code: Select all

#
# 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 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
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
else
  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
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_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
else
  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
fi
insmod gfxmenu
insmod jpeg
insmod png
set theme=($root)/boot/grub/themes/mx_linux/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX 18.1 Continuum' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-229d9535-8f60-4ec3-9451-cb555a2fb61f' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
	else
	  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
	fi
	echo	'Loading Linux 4.19.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=229d9535-8f60-4ec3-9451-cb555a2fb61f ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-1-amd64
}
submenu 'Advanced options for MX 18.1 Continuum' $menuentry_id_option 'gnulinux-advanced-229d9535-8f60-4ec3-9451-cb555a2fb61f' {
	menuentry 'MX 18.1 Continuum, with Linux 4.19.0-1-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-advanced-229d9535-8f60-4ec3-9451-cb555a2fb61f' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
		else
		  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=229d9535-8f60-4ec3-9451-cb555a2fb61f ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-1-amd64
	}
	menuentry 'MX 18.1 Continuum, with Linux 4.19.0-1-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-init-systemd-229d9535-8f60-4ec3-9451-cb555a2fb61f' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
		else
		  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=229d9535-8f60-4ec3-9451-cb555a2fb61f ro  quiet splash init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-1-amd64
	}
}

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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod ext2
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  229d9535-8f60-4ec3-9451-cb555a2fb61f
	else
	  search --no-floppy --fs-uuid --set=root 229d9535-8f60-4ec3-9451-cb555a2fb61f
	fi
	linux16	/boot/memtest86+.bin
}
fi
### 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 ###
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 ###

Post Reply

Return to “MX Help”