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

[solved] Boot Options Not Working/ GRUB Syntax Error

Post Reply
User avatar
2guntom
Forum Novice
Forum  Novice
Posts: 88
Joined: Sun Sep 06, 2015 6:15 pm

[solved] Boot Options Not Working/ GRUB Syntax Error

#1

Post by 2guntom » Mon Jan 07, 2019 6:48 pm

Code: Select all

System:    Host: mx Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18_x64 Continuum Dec 20  2018 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Desktop System: eMachines product: EL1352G v: P01-A3 serial: <filter> 
           Mobo: eMachines model: EL1352G serial: <filter> BIOS: American Megatrends v: P01-A3 
           date: 09/23/2010 
Battery:   Device-1: hidpp_battery_0 model: Logitech Wireless Touch Keyboard K400 charge: Full 
           status: Discharging 
CPU:       Topology: Quad Core model: AMD Athlon II X4 650 bits: 64 type: MCP arch: K10 rev: 3 
           L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4a svm bogomips: 25718 
           Speed: 800 MHz min/max: 800/3200 MHz Core speeds (MHz): 1: 800 2: 800 3: 3200 4: 800 
Graphics:  Device-1: AMD Cedar [Radeon HD 5000/6000/7350/8350 Series] vendor: Dell 
           driver: radeon v: kernel bus ID: 02:00.0 
           Display: x11 server: X.Org 1.19.2 driver: ati,radeon unloaded: fbdev,modesetting,vesa 
           resolution: 1920x1080~60Hz, 1680x1050~60Hz 
           OpenGL: renderer: AMD CEDAR (DRM 2.50.0 / 4.19.0-1-amd64 LLVM 7.0.0) 
           v: 3.3 Mesa 18.2.6 direct render: Yes 
Audio:     Device-1: NVIDIA MCP61 High Definition Audio vendor: Acer Incorporated ALI 
           driver: snd_hda_intel v: kernel bus ID: 00:05.0 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: NVIDIA MCP61 Ethernet vendor: Acer Incorporated ALI ET1350 
           type: network bridge driver: forcedeth v: kernel port: d480 bus ID: 00:07.0 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 8.78 GiB (1.9%) 
           ID-1: /dev/sda vendor: Hitachi model: HDS721050CLA362 size: 465.76 GiB temp: 40 C 
Partition: ID-1: / size: 32.91 GiB used: 8.78 GiB (26.7%) fs: ext4 dev: /dev/sda7 
Sensors:   System Temperatures: cpu: 30.1 C mobo: N/A gpu: radeon temp: 57 C 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list.d/antix.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/antix/stretch stretch main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
           2: deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ stretch main non-free
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 203 Uptime: 9m Memory: 7.79 GiB used: 1.00 GiB (12.9%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.29 
I tried Boot Option as shown below but they had NO effect on my machine. MX is still the default and splash is still enabled

Image

After restarting and cold starting the computer a few times with no changes, I thought I'd try sudo update-grub and got this

Code: Select all

mx18@mx:~
$ sudo update-grub
Generating grub configuration file ...
using custom appearance settings
Found background image: /usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png
Found linux image: /boot/vmlinuz-4.19.0-1-amd64
Found initrd image: /boot/initrd.img-4.19.0-1-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 10 on /dev/sda1
Found MX 17 Horizon (17) on /dev/sda3
Found Zorin OS 12.4 (12) on /dev/sda5
Found Deepin 15.8  (15.8) on /dev/sda6
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 168
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
etc/default/grub

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=16
GRUB_TIMEOUT=7
GRUB_DISTRIBUTOR="`lsb_release -s -d 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER="false"
#GRUB_BACKGROUND="/usr/local/share/backgrounds/MXLinux/grub/MX_Linux_Dark_City.png"
export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png"

#GRUB_THEME="/boot/grub/themes/mx_logo_ribbon/theme.txt"


GRUB_DISABLE_SUBMENU=y
/boot/grub/grub.cfg

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_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
else
  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
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=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 ###
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
else
  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
fi
insmod png
if background_image /usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.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}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX 18 Continuum' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fff9c0ed-5e3b-42e6-86b1-b7307806ee3f' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
	else
	  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
	fi
	echo	'Loading Linux 4.19.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=fff9c0ed-5e3b-42e6-86b1-b7307806ee3f ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-1-amd64
}
submenu 'Advanced options for MX 18 Continuum' $menuentry_id_option 'gnulinux-advanced-fff9c0ed-5e3b-42e6-86b1-b7307806ee3f' {
	menuentry 'MX 18 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-fff9c0ed-5e3b-42e6-86b1-b7307806ee3f' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
		else
		  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=fff9c0ed-5e3b-42e6-86b1-b7307806ee3f ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-1-amd64
	}
	menuentry 'MX 18 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-fff9c0ed-5e3b-42e6-86b1-b7307806ee3f' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
		else
		  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=fff9c0ed-5e3b-42e6-86b1-b7307806ee3f 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_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
	else
	  search --no-floppy --fs-uuid --set=root fff9c0ed-5e3b-42e6-86b1-b7307806ee3f
	fi
	linux16	/boot/memtest86+.bin
}
fi
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-B668D75368D710CB' {
	insmod part_msdos
	insmod ntfs
	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  B668D75368D710CB
	else
	  search --no-floppy --fs-uuid --set=root B668D75368D710CB
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}
menuentry 'MX 17 Horizon (17) (on /dev/sda3)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-327bc31d-afb6-442c-84d0-417e9e2269ad' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  327bc31d-afb6-442c-84d0-417e9e2269ad
	else
	  search --no-floppy --fs-uuid --set=root 327bc31d-afb6-442c-84d0-417e9e2269ad
	fi
	linux /boot/vmlinuz-4.13.0-1-amd64 root=UUID=327bc31d-afb6-442c-84d0-417e9e2269ad ro zswap.zpool=zsmalloc quiet
	initrd /boot/initrd.img-4.13.0-1-amd64
}
submenu 'Advanced options for MX 17 Horizon (17) (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-327bc31d-afb6-442c-84d0-417e9e2269ad' {
	menuentry 'MX 17 Horizon (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.13.0-1-amd64--327bc31d-afb6-442c-84d0-417e9e2269ad' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  327bc31d-afb6-442c-84d0-417e9e2269ad
		else
		  search --no-floppy --fs-uuid --set=root 327bc31d-afb6-442c-84d0-417e9e2269ad
		fi
		linux /boot/vmlinuz-4.13.0-1-amd64 root=UUID=327bc31d-afb6-442c-84d0-417e9e2269ad ro zswap.zpool=zsmalloc quiet
		initrd /boot/initrd.img-4.13.0-1-amd64
	}
}

menuentry 'Zorin OS 12.4 (12) (on /dev/sda5)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-47dbd204-5774-4a4c-aafb-cc7140395d2d' {
	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  47dbd204-5774-4a4c-aafb-cc7140395d2d
	else
	  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
	fi
	linux /boot/vmlinuz-4.15.0-42-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro quiet splash $vt_handoff
	initrd /boot/initrd.img-4.15.0-42-generic
}
submenu 'Advanced options for Zorin OS 12.4 (12) (on /dev/sda5)' $menuentry_id_option 'osprober-gnulinux-advanced-47dbd204-5774-4a4c-aafb-cc7140395d2d' {
	menuentry 'Zorin (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-42-generic--47dbd204-5774-4a4c-aafb-cc7140395d2d' {
		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  47dbd204-5774-4a4c-aafb-cc7140395d2d
		else
		  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
		fi
		linux /boot/vmlinuz-4.15.0-42-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro quiet splash $vt_handoff
		initrd /boot/initrd.img-4.15.0-42-generic
	}
	menuentry 'Zorin, with Linux 4.15.0-42-generic (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-42-generic--47dbd204-5774-4a4c-aafb-cc7140395d2d' {
		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  47dbd204-5774-4a4c-aafb-cc7140395d2d
		else
		  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
		fi
		linux /boot/vmlinuz-4.15.0-42-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro quiet splash $vt_handoff
		initrd /boot/initrd.img-4.15.0-42-generic
	}
	menuentry 'Zorin, with Linux 4.15.0-42-generic (recovery mode) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-42-generic-root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro recovery nomodeset-47dbd204-5774-4a4c-aafb-cc7140395d2d' {
		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  47dbd204-5774-4a4c-aafb-cc7140395d2d
		else
		  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
		fi
		linux /boot/vmlinuz-4.15.0-42-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro recovery nomodeset
		initrd /boot/initrd.img-4.15.0-42-generic
	}
	menuentry 'Zorin, with Linux 4.15.0-30-generic (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-30-generic--47dbd204-5774-4a4c-aafb-cc7140395d2d' {
		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  47dbd204-5774-4a4c-aafb-cc7140395d2d
		else
		  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
		fi
		linux /boot/vmlinuz-4.15.0-30-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro quiet splash $vt_handoff
		initrd /boot/initrd.img-4.15.0-30-generic
	}
	menuentry 'Zorin, with Linux 4.15.0-30-generic (recovery mode) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-30-generic-root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro recovery nomodeset-47dbd204-5774-4a4c-aafb-cc7140395d2d' {
		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  47dbd204-5774-4a4c-aafb-cc7140395d2d
		else
		  search --no-floppy --fs-uuid --set=root 47dbd204-5774-4a4c-aafb-cc7140395d2d
		fi
		linux /boot/vmlinuz-4.15.0-30-generic root=UUID=47dbd204-5774-4a4c-aafb-cc7140395d2d ro recovery nomodeset
		initrd /boot/initrd.img-4.15.0-30-generic
	}
}

menuentry 'Deepin 15.8  (15.8) (on /dev/sda6)' --class deepin --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-8f0bf450-8290-4e3e-87d1-ea6068c35c08' {
	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  8f0bf450-8290-4e3e-87d1-ea6068c35c08
	else
	  search --no-floppy --fs-uuid --set=root 8f0bf450-8290-4e3e-87d1-ea6068c35c08
	fi
	linux /boot/vmlinuz-4.15.0-29deepin-generic root=UUID=8f0bf450-8290-4e3e-87d1-ea6068c35c08 ro splash quiet DEEPIN_GFXMODE=$DEEPIN_GFXMODE DEEPIN_GFXMODE=$DEEPIN_GFXMODE
	initrd /boot/initrd.img-4.15.0-29deepin-generic
}
submenu 'Advanced options for Deepin 15.8  (15.8) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-8f0bf450-8290-4e3e-87d1-ea6068c35c08' {
	menuentry 'Deepin GNU/Linux (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-29deepin-generic--8f0bf450-8290-4e3e-87d1-ea6068c35c08' {
		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  8f0bf450-8290-4e3e-87d1-ea6068c35c08
		else
		  search --no-floppy --fs-uuid --set=root 8f0bf450-8290-4e3e-87d1-ea6068c35c08
		fi
		linux /boot/vmlinuz-4.15.0-29deepin-generic root=UUID=8f0bf450-8290-4e3e-87d1-ea6068c35c08 ro splash quiet DEEPIN_GFXMODE=$DEEPIN_GFXMODE DEEPIN_GFXMODE=$DEEPIN_GFXMODE
		initrd /boot/initrd.img-4.15.0-29deepin-generic
	}
	menuentry 'Deepin GNU/Linux, with Linux 4.15.0-29deepin-generic (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-29deepin-generic--8f0bf450-8290-4e3e-87d1-ea6068c35c08' {
		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  8f0bf450-8290-4e3e-87d1-ea6068c35c08
		else
		  search --no-floppy --fs-uuid --set=root 8f0bf450-8290-4e3e-87d1-ea6068c35c08
		fi
		linux /boot/vmlinuz-4.15.0-29deepin-generic root=UUID=8f0bf450-8290-4e3e-87d1-ea6068c35c08 ro splash quiet DEEPIN_GFXMODE=$DEEPIN_GFXMODE DEEPIN_GFXMODE=$DEEPIN_GFXMODE
		initrd /boot/initrd.img-4.15.0-29deepin-generic
	}
	menuentry 'Deepin GNU/Linux, with Linux 4.15.0-29deepin-generic (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-29deepin-generic-root=UUID=8f0bf450-8290-4e3e-87d1-ea6068c35c08 ro recovery-8f0bf450-8290-4e3e-87d1-ea6068c35c08' {
		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  8f0bf450-8290-4e3e-87d1-ea6068c35c08
		else
		  search --no-floppy --fs-uuid --set=root 8f0bf450-8290-4e3e-87d1-ea6068c35c08
		fi
		linux /boot/vmlinuz-4.15.0-29deepin-generic root=UUID=8f0bf450-8290-4e3e-87d1-ea6068c35c08 ro recovery
		initrd /boot/initrd.img-4.15.0-29deepin-generic
	}
}

### 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 ###
Last edited by 2guntom on Wed Jan 09, 2019 9:32 pm, edited 1 time in total.
gcs

fya

hanl

User avatar
male
Forum Regular
Forum Regular
Posts: 402
Joined: Thu Jan 23, 2014 8:38 am

Re: Boot Options Not Working/ GRUB Syntax Error

#2

Post by male » Tue Jan 08, 2019 7:53 am

I can confirm this behavior of MX18 in a VM (without the syntax error at line 168).

This is only true if MX places the main-boot-loader in a multiboot.
Then the settings in MX boot options are ineffective.

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -s -d 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER=false
#GRUB_BACKGROUND=/usr/local/share/backgrounds/MXLinux/grub/MX_Linux_Dark_City.png
export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/cubes-plain.png"


GRUB_SAVEDEFAULT=true

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT='gnulinux-4.19.0-1-amd64-init-systemd-d3e5342c-e90c-4393-974b-7d809a312bba'
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=`lsb_release -s -d 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER=false
#GRUB_BACKGROUND=/usr/local/share/backgrounds/MXLinux/grub/MX_Linux_Dark_City.png
export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/cubes-plain.png"


#GRUB_SAVEDEFAULT=true
Image Image Image Image

=====================================================

If MX is installed on HDD (Grub-MX is not the main boot loader here), the settings will be executed correctly.

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -s -d 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet init=/lib/systemd/systemd"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER=false
GRUB_BACKGROUND=/usr/share/backgrounds/MXLinux/grub/MX-Dark1080P.png
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/MX-Gold1080P.png"


GRUB_SAVEDEFAULT=true

Code: Select all

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX 18 Continuum' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f48b58f5-ff20-45be-b125-a7b014e38beb' {
	savedefault
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  f48b58f5-ff20-45be-b125-a7b014e38beb
	else
	  search --no-floppy --fs-uuid --set=root f48b58f5-ff20-45be-b125-a7b014e38beb
	fi
	echo	'Linux 4.15.0-1-amd64 wird geladen …'
	linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=f48b58f5-ff20-45be-b125-a7b014e38beb ro  quiet init=/lib/systemd/systemd
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-4.15.0-1-amd64
}
submenu 'Erweiterte Optionen für MX 18 Continuum' $menuentry_id_option 'gnulinux-advanced-f48b58f5-ff20-45be-b125-a7b014e38beb' {
	menuentry 'MX 18 Continuum, mit Linux 4.15.0-1-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-f48b58f5-ff20-45be-b125-a7b014e38beb' {
	savedefault
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  f48b58f5-ff20-45be-b125-a7b014e38beb
		else
		  search --no-floppy --fs-uuid --set=root f48b58f5-ff20-45be-b125-a7b014e38beb
		fi
		echo	'Linux 4.15.0-1-amd64 wird geladen …'
		linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=f48b58f5-ff20-45be-b125-a7b014e38beb ro  quiet init=/lib/systemd/systemd
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-4.15.0-1-amd64
	}
	menuentry 'MX 18 Continuum, with Linux 4.15.0-1-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-init-systemd-f48b58f5-ff20-45be-b125-a7b014e38beb' {
	savedefault
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  f48b58f5-ff20-45be-b125-a7b014e38beb
		else
		  search --no-floppy --fs-uuid --set=root f48b58f5-ff20-45be-b125-a7b014e38beb
		fi
		echo	'Linux 4.15.0-1-amd64 wird geladen …'
		linux	/boot/vmlinuz-4.15.0-1-amd64 root=UUID=f48b58f5-ff20-45be-b125-a7b014e38beb ro  quiet init=/lib/systemd/systemd init=/lib/systemd/systemd
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-4.15.0-1-amd64
	}
}

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


Note: All Grub's are in the PBR (except main boot loader)
Male is the capital of the Maldives and its wonderful people.

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

Re: Boot Options Not Working/ GRUB Syntax Error

#3

Post by fehlix » Tue Jan 08, 2019 8:46 am

male wrote:
Tue Jan 08, 2019 7:53 am
I can confirm this behavior of MX18 in a VM (without the syntax error at line 168).
See the bug-report Default Menu Entry from Submenu Ignored by GRUB
In addtion this was already reported a couple of times within the forum.
:puppy:
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
asqwerth
Forum Veteran
Forum Veteran
Posts: 4291
Joined: Sun May 27, 2007 5:37 am

Re: Boot Options Not Working/ GRUB Syntax Error

#4

Post by asqwerth » Tue Jan 08, 2019 8:58 am

fehlix, so even if you choose the flat menu option, you can't choose a subsidiary entry as the default autoboot choice?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

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

Re: Boot Options Not Working/ GRUB Syntax Error

#5

Post by fehlix » Tue Jan 08, 2019 9:13 am

asqwerth wrote:
Tue Jan 08, 2019 8:58 am
fehlix, so even if you choose the flat menu option, you can't choose a subsidiary entry as the default autoboot choice?
In flatmenu you have no submenu's, hence the bug will not show up,
as only the menu-id is needed for GRUB to find the preselected boot-entry.
So the "workaround" is to use flatmenu to avoid the bug.
:puppy:
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
asqwerth
Forum Veteran
Forum Veteran
Posts: 4291
Joined: Sun May 27, 2007 5:37 am

Re: Boot Options Not Working/ GRUB Syntax Error

#6

Post by asqwerth » Tue Jan 08, 2019 9:49 am

Based on 2guntom's screenshot, he was using flat menus.

So might this be another issue, since I remember that OP liked to use Grub Customiser previously. Was the grub/splash on this machine previously set by GC?
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

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

Re: Boot Options Not Working/ GRUB Syntax Error

#7

Post by fehlix » Tue Jan 08, 2019 9:58 am

asqwerth wrote:
Tue Jan 08, 2019 9:49 am
Based on 2guntom's screenshot, he was using flat menus.
Yes, that was the reply to @male's issue report with using submenu's.
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
male
Forum Regular
Forum Regular
Posts: 402
Joined: Thu Jan 23, 2014 8:38 am

Re: Boot Options Not Working/ GRUB Syntax Error

#8

Post by male » Tue Jan 08, 2019 12:04 pm

@fehlix, thanks for your clarification and bug report.
"Good we talked about it!" :happy:

With antiX/MX I prefer to stay with the "handiwork". ;)

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="1>4"
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="zswap.zpool=zsmalloc vga=788 quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DISABLE_OS_PROBER=false
GRUB_BACKGROUND=/usr/share/wallpaper/back.jpg 
Male is the capital of the Maldives and its wonderful people.

User avatar
2guntom
Forum Novice
Forum  Novice
Posts: 88
Joined: Sun Sep 06, 2015 6:15 pm

Re: Boot Options Not Working/ GRUB Syntax Error

#9

Post by 2guntom » Tue Jan 08, 2019 4:41 pm

I first noticed problems on my "work" machine. The GRUB menu did not contain a reference to Windows 10 which is a real problem (I have to use Windows for work). I'm sorry, I don't have any info from that install since I had to delete MX and retrieve Windows for work on Monday.

The info in the first post is from my test machine

Is there any merit in re-downloading MX, hash check, creating new USB, and doing a fresh install to see if anything is different?
gcs

fya

hanl

User avatar
2guntom
Forum Novice
Forum  Novice
Posts: 88
Joined: Sun Sep 06, 2015 6:15 pm

Re: [solved] Boot Options Not Working/ GRUB Syntax Error

#10

Post by 2guntom » Wed Jan 09, 2019 9:36 pm

Fixed it.

Installed another distro right on top of it. It has a "Boot Menu" with a gui that was easy to change first boot.

No need for grub customizer.

Thanks for all the help

- -
gcs

fya

hanl

Post Reply

Return to “Software / Configuration”