How to do a grub-mkconfig with btrfs? grub-probe: error: unknown filesystem

I’m trying to install and configure grub.

/dev/sda1           	/         	btrfs     	rw,relatime,space_cache,subvolid=5,subvol=/	 0

# /dev/sda2
UUID=17C8-E648      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro	0 0
$ grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
$ grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.14-x86_64
Found initrd image: /boot/initramfs-4.14-x86_64.img
grub-probe: error: unknown filesystem.
Found initrd fallback image: /boot/initramfs-4.14-x86_64-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.

Hello @folaht :wink:

I assume when its a vfat partition, it must be EFI. So the target is wrong on the command.

Normally btrfs would hold the /boot directory.

  1. BIOS → Only one btrfs partition is needed.
  2. EFI → EFI partition + btrfs partition

It would also be listed in fstab as /boot/efi

Alright, thanks.
I’ll try to install EFI then.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.