You are not logged in.

#1 2021-06-21 19:06:30

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

grub- customizer failed to save the configuraiton

i tried to add windows to my grub menu but when i tried to save it gave me this error failed running 'grub-mkconfig -o"/boot/grub/grub.cfg"' output:
Generating grub configuration file...
Found linux image:/boot/vm-linuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image (s) in /boot:intramfs-linux-fallback.img
Warning:os-prober will not be executed to detect other bootable partitions
Systems on them will not be added to the GRUB boot configuration
Check GRUB_DISABLE_OS_PROBER documentation entry
Adding boot menu entry for UEFI Firmware Settings
error:$
error:syntax error
Syntax error at line 172
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


i dont have one stalker

Offline

#2 2021-06-21 19:36:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: grub- customizer failed to save the configuraiton

Post the contents of /etc/default/grub and /boot/grub/grub.cfg


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-06-21 20:18:11

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

Well it does seem like the arch forums supports attachments


i dont have one stalker

Offline

#4 2021-06-21 20:34:45

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: grub- customizer failed to save the configuraiton

Tech-Man wrote:

Well it does seem like the arch forums supports attachments

No, it doesn't.
Please just post the contents in [⁣code] [⁣/code] tags.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2021-06-21 20:35:22

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

Ok one sec


i dont have one stalker

Offline

#6 2021-06-21 20:38:32

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

/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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  80b2be73-4654-4a17-b5f6-d5e2c1dcff2e
else
  search --no-floppy --fs-uuid --set=root 80b2be73-4654-4a17-b5f6-d5e2c1dcff2e
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_input console
terminal_output gfxterm
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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-80b2be73-4654-4a17-b5f6-d5e2c1dcff2e' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt10'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  965c2c8a-cd13-4014-a07e-1ada805a2f9d
	else
	  search --no-floppy --fs-uuid --set=root 965c2c8a-cd13-4014-a07e-1ada805a2f9d
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=80b2be73-4654-4a17-b5f6-d5e2c1dcff2e rw  loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-80b2be73-4654-4a17-b5f6-d5e2c1dcff2e' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-80b2be73-4654-4a17-b5f6-d5e2c1dcff2e' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt10'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  965c2c8a-cd13-4014-a07e-1ada805a2f9d
		else
		  search --no-floppy --fs-uuid --set=root 965c2c8a-cd13-4014-a07e-1ada805a2f9d
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=80b2be73-4654-4a17-b5f6-d5e2c1dcff2e rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-80b2be73-4654-4a17-b5f6-d5e2c1dcff2e' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt10'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10  965c2c8a-cd13-4014-a07e-1ada805a2f9d
		else
		  search --no-floppy --fs-uuid --set=root 965c2c8a-cd13-4014-a07e-1ada805a2f9d
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=80b2be73-4654-4a17-b5f6-d5e2c1dcff2e rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-linux-fallback.img
	}
}

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

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

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $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.
	menuentry "Windows 10" --class windows --class os {
	   insmod ntfs
	   search --no-floppy --set=root --fs-uuid $a8208fe5-e824-4dde-b6ed-138ad9732977$
	   ntldr /bootmgr
	}
	menuentry "Windows 10" --class windows --class os {
	   insmod ntfs
	   search --no-floppy --set=root --fs-uuid $a8208fe5-e824-4dde-b6ed-138ad9732977$
	   ntldr /bootmgr
	}
### 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 Tech-Man (2021-06-21 22:39:48)


i dont have one stalker

Offline

#7 2021-06-21 20:41:51

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

/etc/defaults/grub

# GRUB boot loader configuration

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE="menu"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="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="auto"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

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

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

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

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU="y"

Last edited by Tech-Man (2021-06-21 22:38:23)


i dont have one stalker

Offline

#8 2021-06-21 21:05:27

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: grub- customizer failed to save the configuraiton

Edit your posts and place the file outputs between [⁣code] [⁣/code] tags.

https://gitlab.archlinux.org/archlinux/ … s-and-code


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2021-06-21 21:09:44

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

Excuse me but how do i do that


i dont have one stalker

Offline

#10 2021-06-21 21:13:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: grub- customizer failed to save the configuraiton


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2021-06-21 22:40:08

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

ok there sorry for the late reply


i dont have one stalker

Offline

#12 2021-06-22 11:56:19

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

so i did it


i dont have one stalker

Offline

#13 2021-06-22 12:00:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,793

Re: grub- customizer failed to save the configuraiton

Add

GRUB_DISABLE_OS_PROBER="false"

to your /etc/default/grub and rerun the grub-mkconfig command.

Offline

#14 2021-06-22 12:09:29

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

Ok


i dont have one stalker

Offline

#15 2021-06-22 12:26:50

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

no still the same


i dont have one stalker

Offline

#16 2021-06-22 12:27:46

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: grub- customizer failed to save the configuraiton

The error in your first post indicates a syntax error at line 172 in your grub.cfg.

Line 172:

search --no-floppy --set=root --fs-uuid $a8208fe5-e824-4dde-b6ed-138ad9732977$

That line comes from /etc/grub.d/40_custom. Where did that file come from? Did you create it? Why is there a $ before and after the UUIDs in that file?

Offline

#17 2021-06-22 12:28:10

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

and os-prober does nothing


i dont have one stalker

Offline

#18 2021-06-22 12:30:20

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

2ManyDogs wrote:

The error in your first post indicates a syntax error at line 172 in your grub.cfg.

Line 172:

search --no-floppy --set=root --fs-uuid $a8208fe5-e824-4dde-b6ed-138ad9732977$

That line comes from /etc/grub.d/40_custom. Where did that file come from? Did you create it? Why is there a $ before and after the UUIDs in that file?

wait im checking the error


i dont have one stalker

Offline

#19 2021-06-22 12:43:02

Tech-Man
Member
From: 69 street 420
Registered: 2021-01-11
Posts: 97

Re: grub- customizer failed to save the configuraiton

Tech-Man wrote:
2ManyDogs wrote:

The error in your first post indicates a syntax error at line 172 in your grub.cfg.

Line 172:

search --no-floppy --set=root --fs-uuid $a8208fe5-e824-4dde-b6ed-138ad9732977$

That line comes from /etc/grub.d/40_custom. Where did that file come from? Did you create it? Why is there a $ before and after the UUIDs in that file?

wait im checking the error

idk


i dont have one stalker

Offline

Board footer

Powered by FluxBB