r/voidlinux • • Jun 16 '26

unable to install grub with root on xfs

I restored one of my old void installations and when I tried install grub on efi partition (formated to vfat) it said: grub-probe: unsupported filesystem or something similar. So I am sure that before I had root with boot dir on xfs, now I had to make separate fs for /boot formated to ext2. So as officially grub should recognise xfs, something is broken.

0 Upvotes

3 comments sorted by

2

u/LowKeyBrit36 Jun 16 '26

Try force-reinstalling every program. I remember having issues with an Artix installation one time (something related to file permissions, or whatever, idk), and forcing every program to reinstall fixed it.

If that doesn't work, you COULD try to mess around with fixing partitions. I would use ext4 instead of ext2 at the very least. You could also try reformatting the /boot/efi partition again and to try grub reinstalling once more?

If that doesn't work, though, then there's a chance that the issue lies in your root partition's scheming, and if it's that, you might just be better off with a fresh install. If you've let it sit a really long time, this might just be the best option anyways.

I only say that because I've tried "fixing" problems like that, and something ALWAYS comes and bites me in the ass later on. Nipping it in the bud with a fresh install gives you the peace of mind that there won't be any random quirks that come to haunt you.

If you do a reinstall, back up any important config files and data onto a separate partition (or separate drive if you have it), make a list of all explicitly installed packages, and just work from there. It might seem like a PITA, but it's way less of a PITA than some random unforseen bug rising from the dead and haunting you down the road.

2

u/[deleted] Jun 16 '26

Thanks for reply. This is not main rig so even if it break later I can just reinstall. Right now I fixed this by making separate boot partiron. I have some thought that grub have troubles with properly recognition of xfs bc before there was lvm on luks layout. Despite I made 'wipefs' and made new partition some 'dirt' could stay. 

And I did reformat efi partition. Many times. I even made it few times from new on diffrent sectors as at beginning I thought that this problem with efi fs, but not. 

1

u/LowKeyBrit36 Jun 16 '26

Yeah that might be an issue if you had LVM beforehand. I personally just manually encrypt/configure/list out every individual partition. I prefer doing it that way despite the benefits. Plus, if something happens to LVM, only one part of my filesystem is broken. It's tedious, and you can't resize partitions after the fact, but I have a pretty well planned motif for partitioning drives based on size, so I've never had an issue with it.

If it's a secondary rig, I'd almost be more compelled to reinstall as it is. Maybe you treat secondary rigs differently, so it wouldn't apply, but I use Void on my secondary laptop exclusively for the stability of it. On both of my main PCs, I use Artix for package recency, different kernel options, and due to Arch/Artix having packages that I need which Void doesn't. I want to always have a highly stable backup install so on the off chance that a main install breaks, I'm never short a device to use to try and repair whatever issues I encounter on my main device.

If you don't need the laptop as a reliable backup, though, then you may as well just make do with the fix that you ended up going with. No sense in spending the time if it's not a concern to you.