Project

General

Profile

Grub throws error "unknown filesystem" on fresh openrc install

firedog - about 1 year ago -

Hello I just attempted a openrc on bare metal UEFI nvme drive and I seem to keep running into this error after multiple attempts.
Once grub boots into rescue mode it returns 2 errors
- "no such device"
- "unknown filesystem"

I am using a GPT partition table with a Fat 32 boot partition and a encrypted luks root partition
I have rechecked everything many times and believe nothing was set up incorrectly but here is what I have tried anyway.
- Wiped all other drives in pc (I think there was another grub install on one)
- Try different types of file system formats
- Redo full install a couple of times
- Check over grub and mkinitcpio hooks to make sure nothing was configured incorrectly
- Run ls in rescue mode to see if there is anything there (all hd's did not have a file system associated)

I checked for any other cases similar to mine however none have seem to have answers that where fitting to this
Any help would be greatly appreciated since I have tried fully reading through both parabola's and arch's wiki and can not seem to find a fix


Replies (17)

Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

On Sun, 08 Jan 2023 21:06:04 +0000 wrote:

- Check over grub and mkinitcpio hooks to make sure nothing was configured incorrectly

did "configured incorrectly" imply that the mkinitcpio includes
the hook 'lvm2' ?

mine looks like thuis - the order is important

HOOKS=(base udev autodetect modconf block lvm2 filesystems keyboard fsck)

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Yes my mkinitcpio hooks are the same including the lvm2 the only difference is that there is a encrypt hook right before lvm2

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

maybe try putting 'encrypt' after or before 'lvm2'

can you show the boot command line from GRUB?

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

I am pretty sure this is not the issue due to me doing this exact same install on a virtual machine a few days before and it working perfectly. So I have a slight suspicion that this could be the hardware acting up and causing this someway. Yet I am not really sure what else it could possibly be besides grub having issues with the encryption. I checked the bios because of this to see if there was anything that could possibly causing issues however when looking through there was nothing at least obviously enabled that could be causing any error. I later also switched position of lvm2 and encrypt there did not seem to be any change.

Here is my grub config: GRUB_CMDLINE_LINUX="cryptdevice=/dev/nvme0n1p2:cryptroot"

Here is my mkinitcpio: HOOKS=(base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck)

grub.txt (190 Bytes) grub.txt

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

"the boot command line from GRUB", i meant what is the output of:

$ cat /proc/cmdline

or
# grep '/boot/vmlinuz-linux-libre' /boot/grub/grub.cfg

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

`cat /proc/cmdline` would be meaningful only from the booted system, not from the LiveISO

it looks OK in form though - i was looking for both the 'root=' and 'cryptdevice=' options

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Don't think I can show it from the booted system since I only have access from the live iso at the moment

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

you do not need to - it is in your scerenshot - your boot command has both the 'root=' and 'cryptdevice=' options; so that is not the problem, unless the values are wrong - you only need to verify that the root= and cryptdevice= values correctly specify the UUID and device file of partition

$ blkid

i dont know how to interpret '/dev/nvme2n1p2' though - 2nd partition of some non-volatile storage? - is GRUB supposed to be able to boot from those?

also, did you format as LUKS2 ? - AFAIK, GRUB does not support it - that erorr message "unknown filesystem" may be quite literally true

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

I do not believe formatted with LUKS2 nvme2n1p2 is where the root partition is located and nvme2n1p1 is my boot partition

Here is blkid

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

sry it very difficult to troubleshoot boot problems remotely - i
would try simply re-installing and/or re-formatting the entire disk,
or installing to another disk - maybe you made an error - maybe
your disk is faulty - it could be many things

i would also start by installing a more basic system (no encryption,
MBR partitions, systemd, etc) - that would at least demonstrate if
GRUB is able to boot from that disk - if that succeeds, then i would
try installing again (and maybe again and again), adding-in each of
those desired features, one by one - that may narrow the potential
causes of the problem

you could also try removing 'quiet' from the boot command - that
may uncover some clue

i might also try installing artix - if you can install artix on
that computer how you want it, you can then migrate that system
to parabola quite easily

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Doubt the disk is faulty got it 3 days ago. I already reinstalled 4 times in different ways yet there is no difference. I will test to see if encryption is the issue

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Ok bit of progress I was able to preform a successful install on the hardware and figured out the area of the issue. The encryption was somehow bricking it. However I have no idea what was causing the issue. I have tried multiple different encryption installs and none seemed to work. I followed a few guides both for parabola and artix but do you have any idea on what is causing grub to not pick it up?

RE: Grub throws error "unknown filesystem" on fresh openrc install - bill-auger - about 1 year ago -

i dont have much experience with LUKS - this is the guide that most ppl use - despite the title, it has very little to do with libreboot - it is mainly a general "FDE" setup guide

https://wiki.parabola.nu/Installing_Parabola_on_Libreboot_with_full_disk_encryption_(including_/boot)

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Just followed the LUKS on LVM guide on the parabola wiki but still seemed to break I will check this one later

RE: Grub throws error "unknown filesystem" on fresh openrc install - direnis - about 1 year ago -

try using uuids instead dev/xxx in grub config
also this was how i setup arch/artix on my usb, shouldnt be different for parabola, why would it.
"https://invidious.tiekoetter.com/watch?v=9F_LFTUn75Q"

RE: Grub throws error "unknown filesystem" on fresh openrc install - firedog - about 1 year ago -

Ok I was able to get it working! For some reason not sure why it would only work when I specified uuids instead of the drive. Thanks for the help!

    (1-17/17)