LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   NuTyX (https://www.linuxquestions.org/questions/nutyx-125/)
-   -   rEFInd and GRUB messups of NuTyX under BtrFS (https://www.linuxquestions.org/questions/nutyx-125/refind-and-grub-messups-of-nutyx-under-btrfs-4175689198/)

hd_scania 01-24-2021 11:46 PM

rEFInd and GRUB messups of NuTyX under BtrFS
 
I have NuTyX installed on a BtrFS subvolume, and have tried auto rEFInd and GRUB-EFI, but were failed, and i’m unsure how to assign the volume argument for manual rEFInd entry as below,
Code:

menuentry "NuTyX" {
        icon    /EFI/rEFInd/icons/os_NuTyX.png
        volume  ...
        loader  /NuTyX/boot/kernel-%v
        initrd  /NuTyX/boot/initrd-%v
        options  "root=/dev/sda6 rw rootflags=subvol=NuTyX"
}

What to be entered for that argument? The main volume is on /dev/sda6 at Linux distroes, but unsure for its EFI shell volume name
And my kernels, initrd’s, and partition layouts are below,
Code:

bash-5.0$ l /boot /lib/modules $$ df
/boot:
total 116600
-rw-r--r-- 1 root root 97088111 Jan 20 00:31 initrd-5.10.6-NuTyX
-rw-r--r-- 1 root root 11875048 Jan  9 22:14 System_64.map-5.10.6-NuTyX
-rw-r--r-- 1 root root 10178560 Jan  9 22:14 kernel-5.10.6-NuTyX
-rw-r--r-- 1 root root  240350 Jan  9 22:14 config_64-5.10.6-NuTyX
drwxr-xr-x 1 root root      210 Jan 25 04:54 .
drwxr-xr-x 1 root root      110 Jan 20 04:27 ..
drwxr-xr-x 1 root root      92 Jan 25 04:31 grub
lrwxrwxrwx 1 root root      19 Jan 20 00:31 initrd -> initrd-5.10.6-NuTyX
lrwxrwxrwx 1 root root      19 Jan 20 00:31 kernel -> kernel-5.10.6-NuTyX
drwxr-xr-x 1 root root        0 Nov  2 21:22 efi

/lib/modules:
total 0
drwxr-xr-x 1 root root 4658 Jan 20 00:31 ..
drwxr-xr-x 1 root root  464 Jan 20 00:31 5.10.6-NuTyX
drwxr-xr-x 1 root root  24 Jan  9 22:11 .
Filesystem    Type      Size  Used Avail Use% Mounted on
/dev/sda6      btrfs    148G  92G  55G  63% /
udev          devtmpfs  3.9G    0  3.9G  0% /dev
shm            tmpfs    3.9G    0  3.9G  0% /dev/shm
/run          tmpfs    3.9G    0  3.9G  0% /run
tmp            tmpfs    3.9G    0  3.9G  0% /tmp
bash-5.0$


tnut 01-26-2021 08:49 AM

Hello again :)

Did you try:

Code:

menuentry "NuTyX" {
        icon    /EFI/rEFInd/icons/os_NuTyX.png
        volume  ...
        loader  /boot/kernel
        initrd  /boot/initrd
        options  "root=/dev/sda6 rw rootflags=subvol=NuTyX"
}

Beside this I won't be able to help you more as I don't know anything about this rEFInd tools.

Regards
Thierry

hd_scania 01-29-2021 06:20 PM

Yes but doesn’t help at all, so that symlinks are never accepted for rEFInd setups (Hard links? Needs manually generations, so also unlikely) ...
Even with the actual kernel and initrd file names in the manual entries, but it still doesn’t show the entry at all ...
And i’ve also tried auto mode of BtrFS subvolumes i.e. alsa_scan_dirs=NuTyX/boot in rEFInd.conf + /boot/refind_linux.conf on that NuTyX subvolume, but it always fails to load my NuTyX kernels at all.
And i also tried GRUB2-EFI, but booting into that reports UUID bugs, so that the root partition is also reported ‘‘missing’’, but not actually. :(
Quote:

Originally Posted by tnut (Post 6212172)
Hello again :)
Did you try:
Code:

menuentry "NuTyX" {
        icon    /EFI/rEFInd/icons/os_NuTyX.png
        volume  ...
        loader  /boot/kernel
        initrd  /boot/initrd
        options  "root=/dev/sda6 rw rootflags=subvol=NuTyX"
}

Beside this I won't be able to help you more as I don't know anything about this rEFInd tools.
Regards
Thierry


tnut 01-31-2021 04:36 AM

When I see your configuration you list in your signature, I'm afraid I won't be able to help you.

I feel sorry about your config.

As it seems you are not so familiar with rEFInd. I don't have any experience neither, because I feel happy with grub or syslinux.

I suggest you to start with something simpler and cleaner. By assuming you really want to stay on btrfs (which means, clearly no experience how it behave after some period of intensive usage.), here what I propose you as alternatives solutions,:
1/ Install NuTyX with the default kernel-419 without initrd. OR
2/ Install NuTyX latest kernel in bios and add an initrd OR
3/ Wait NuTyX 21.02.0 it will support Grub install on Uefi machine.

colorpurple21859 01-31-2021 08:29 AM

symlinks won't work on a fat partition if that is where you attempting to use them.

Emerson 01-31-2021 11:47 AM

Quote:

Originally Posted by hd_scania (Post 6213599)
And i also tried GRUB2-EFI, but booting into that reports UUID bugs, so that the root partition is also reported ‘‘missing’’, but not actually. :(

Mounting root filesystem using filesystem UUID involves initrd, Linux kernel cannot do it without help. However, you can use PARTUUID without initrd, kernel can read it. In any case, it eliminates one component where things can go wrong.

tnut 02-02-2021 04:54 AM

Quote:

Originally Posted by colorpurple21859 (Post 6214258)
symlinks won't work on a fat partition if that is where you attempting to use them.

Indeed but symlink on a Linux partition extX, btrfs, etc filesystem pointing to a fat partition file works fine. That's what we do/mean here.


All times are GMT -5. The time now is 06:15 AM.