You are not logged in.

#1 2019-08-25 19:05:14

Irets
Member
Registered: 2019-02-01
Posts: 143

[SOLVED] Grub 'grub_file_filters' not found error on boot

KHi,

I was trying to set a background for my laptop and managed to break my grub.
I managed to get the background working but Grub had generated multiple entries of my VoidLinuxLiveUSB, which was plugged in when I was generating the Grub config.
I wanted to get rid of all the duplicate entries so I decided to reinstall Grub if that would work.
(at first I snipped the duplicate entries out of /boot/grub/grub.cfg but that was only a temporary solution, regenerating the config bringed them back.)

I did sudo

pacman -S grub

and after that

grub-install /dev/sdb

and generated the config.

Booting booting the laptop first says Welcome to grub! and after that

error : symbol 'grub_file_filters' not found.
Entering rescue mode...

and I'm dropped to the rescue shell.

So far I've tried to mount all my partitions from ArchLiveUSB, doing sudo pacman -S grub to get the latest version, and running

grub-mkconfig -o /boot/grub/grub.cfg

.

I also have Void Linux installed on /dev/sda.

https://i.imgur.com/vJwXNkc.jpg
Here's a low quality picture of me doing the commands above trying to restore grub through arch-chroot.
I tried generating the config after that but no success.

Last edited by Irets (2019-08-26 14:20:50)

Offline

#2 2019-08-25 20:24:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

1. Edit your thread title and choose one that accurately describes your issuehttps: //wiki.archlinux.org/index.php/Code_of_conduct#How_to_post

2.  Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-08-25 21:06:43

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

This is what I've found out so far.

If I boot the ArchLiveUSB and press TAB on "Boot existing OS" and change the line

.com32 /boot/syslinux/chain.c32 hd0 0

to

.com32 /boot/syslinux/chain.c32 hd1 0

i'm faced with the same old 'grub_file_filters' not found screen.

But if I change it to

.com32 /boot/syslinux/chain.c32 hd2 0

I get my Grub back and I can boot into both of my operating systems.

I'm still not sure how to fix this though.

Last edited by Irets (2019-08-25 21:40:40)

Offline

#4 2019-08-25 21:48:51

pirateprentice
Member
Registered: 2019-08-16
Posts: 31

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

Could you please post a link to your grub config?

Offline

#5 2019-08-25 22:03:14

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

This is my grub.cfg from /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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
else
  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
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/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
	else
	  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
	fi
	echo	'Loading Linux linux-lts ...'
	linux	/boot/vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw  loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/intel-ucode.img /boot/initramfs-linux-lts.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
	menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
		else
		  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/boot/vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux-lts.img
	}
	menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
		else
		  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/boot/vmlinuz-linux-lts root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initramfs-linux-lts-fallback.img
	}
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
		else
		  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/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-45b1a8e3-5fb4-48d8-89f0-532c516a8262' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  45b1a8e3-5fb4-48d8-89f0-532c516a8262
		else
		  search --no-floppy --fs-uuid --set=root 45b1a8e3-5fb4-48d8-89f0-532c516a8262
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=45b1a8e3-5fb4-48d8-89f0-532c516a8262 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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 ###
menuentry 'void (on /dev/sda1)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-2e233891-1937-4969-a34e-d052d1d84a1d' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
	else
	  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
	fi
	linux /boot/vmlinuz-4.18.17_1 root=/dev/sda1
	initrd /boot/initramfs-4.18.17_1.img
}
submenu 'Advanced options for void (on /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-2e233891-1937-4969-a34e-d052d1d84a1d' {
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.18.17_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.18.17_1 root=/dev/sda1
		initrd /boot/initramfs-4.18.17_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.45_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.45_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.45_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.46_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.46_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.46_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.47_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.47_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.47_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.48_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.48_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.48_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.57_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.57_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.57_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.58_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.58_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.58_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.60_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.60_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.60_1.img
	}
	menuentry 'void (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.19.65_1--2e233891-1937-4969-a34e-d052d1d84a1d' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  2e233891-1937-4969-a34e-d052d1d84a1d
		else
		  search --no-floppy --fs-uuid --set=root 2e233891-1937-4969-a34e-d052d1d84a1d
		fi
		linux /boot/vmlinuz-4.19.65_1 root=/dev/sda1
		initrd /boot/initramfs-4.19.65_1.img
	}
}

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

### 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 ###

You can also see the duplicated entries of my Void install of which I was trying to get rid of.

Last edited by Irets (2019-08-25 22:09:08)

Offline

#6 2019-08-25 22:12:45

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

Irets does the explanation from https://bugs.debian.org/cgi-bin/bugrepo … =931896#10 apply to your issue?

Offline

#7 2019-08-26 13:59:50

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

I'm using BIOS boot, not efi.

Offline

#8 2019-08-26 14:18:48

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Grub 'grub_file_filters' not found error on boot

After going to the bootloader of my laptop, I switched boot device from SATA HDD : LITEONIT LSS-24L6G to SATA HDD: T1000LM024 HN-M101MBB and I got my Grub back on a normal boot. (should have tried this before)
I know that this laptop has a 1TB drive but never realized it had an SSD too? I've owned this laptop for almost six years now and I just found out about this.
My void was on dev/sda instead of /dev/sdb where my Arch is installed, so this does confirm that I do have 2 drives?

My only guess at this point is that when I reinstalled Grub the first time, my laptop switched to boot the other drive instead of my 1TB drive that I had set as default.
I can't think of a reason why it did this because I haven't accessed the BIOS in a long time and I installed Grub on /dev/sda like before, also following wiki's instructions

I feel incredible stupid but happy at the same time.

Marking this as solved.

Last edited by Irets (2019-08-26 14:19:08)

Offline

Board footer

Powered by FluxBB