How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?  [Solved]

When you run into problems installing MX Linux XFCE
Message
Author
User avatar
oops
Posts: 1932
Joined: Tue Apr 10, 2018 5:07 pm

How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#1 Post by oops »

Hello,
How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Probably with: BOOTx64.efi into the ESP partition in Refind, and a stanzas config into refind.conf ?

Code: Select all

$ tree
.
├── antiX
│   ├── initrd.gz
│   ├── initrd.gz.md5
│   ├── linuxfs
│   ├── linuxfs.info
│   ├── linuxfs.md5
│   ├── vmlinuz
│   └── vmlinuz.md5
├── boot
│   ├── grub
│   │   ├── config
│   │   │   ├── bootmenu.cfg
..
│   │   │   └── version.cfg
│   │   ├── efi.img
│   │   ├── fonts
│   │   │   ├── 7x13.pf2
│   │   │   ├── dejavu-sans-14.pf2
│   │   │   ├── dejavu-sans-16.pf2
│   │   │   ├── font.pf2
│   │   │   └── unicode.pf2
│   │   ├── grub.cfg
│   │   ├── grubenv.cfg
│   │   ├── i386-efi
│   │   │   ├── acpi.mod
...
│   │   │   ├── zfs.mod
│   │   │   └── zstd.mod
│   │   ├── i386-pc
│   │   │   ├── 915resolution.mod
│   │   │   ├── acpi.mod
...
│   │   │   ├── zfs.mod
│   │   │   └── zstd.mod
│   │   ├── loopback.cfg
│   │   ├── theme
│   │   │   ├── background.jpg
...
│   │   │   └── uefi.txt
│   │   ├── unicode.pf2
│   │   └── x86_64-efi
│   │       ├── acpi.mod
...
│   │       └── zstd.mod
│   ├── isolinux
│   │   ├── 0_applis_installees_script_et diff_MX21_juil2021.tar.xz
│   │   ├── 0_applis_installees_script_et diff_MX21.txt
│   │   ├── antiX64-vm_snapshot-config
│   │   │   ├── iso-snapshot.conf
│   │   │   ├── iso-snapshot.conf_save001
│   │   │   └── iso-snapshot-exclude.list_save001
│   │   ├── chain.c32
│   │   ├── custom.cfg_PC-tof_28mars2022
...
│   │   ├── Table_of_antiX_Boot_Parameters_FRUGAL-INSTALL.txt.txt
│   │   └── version
│   ├── memtest
│   ├── syslinux
│   │   ├── chain.c32
│   │   ├── gfxboot.c32
│   │   ├── gfx-cpio
│   │   ├── gfxsave.cfg
│   │   ├── ldlinux.c32
│   │   ├── libcom32.c32
│   │   ├── libmenu.c32
│   │   ├── libutil.c32
│   │   ├── menu.c32
│   │   ├── README
│   │   ├── readme.msg
│   │   ├── syslinux.bin
│   │   ├── syslinux.cfg
│   │   └── version
│   └── uefi-mt
│       ├── mtest-32.efi
│       └── mtest-64.efi
├── cdrom.ico
├── EFI
│   └── BOOT
│       ├── BOOTia32.efi
│       ├── BOOTx64.efi
│       ├── grubx64.efi
│       └── mmx64.efi
└── MX23-AHS_X64_k6.1.x-SecureBoot-20240904_1316
    └── package_list

17 directories, 1029 files

Code: Select all

$ dpkg -s refind | grep Version
Version: 0.14.2-1
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?  [Solved]

#2 Post by BitJam »

It looks like you did a manual frugal install (which is fine). When the live system does a frugal install the directory it creates that contains all the files includes the word "Frugal" and the kernel version. This helps prevent collisions with older frugal installs that might still be lying around.

Anyway, you need to tell the bootloader (refind) where the kernel and initrd are. In addition, you need to provide boot options that let our initrd find the linuxfs file. Since /antiX/linuxfs is the default location, you just need to tell us which partition to look on. This is usually done using the partition label (blab=) or the partition uuid (buuid=). It could well boot without the partition being specified if you use the "from=hd" option which tells us to look for /antiX/linuxfs only on hard drive partitions. By default, the live system avoids looking for the linuxfs file on hard drives. If you use "from=hd" without "blab=" or "buuid=" it will search all hard drive partitions for /antiX/linuxfs and use the first one it finds.

Borrowing from the refind.cfg demo file, I would try an entry like this:

Code: Select all

menuentry MX23 {
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader antiX/vmlinuz
    initrd antix/initrd.gz
    options "buuid=5f96cafa-e0a7-4057-b18f-fa709db5b837"
}
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

User avatar
Eadwine Rose
Administrator
Posts: 14805
Joined: Wed Jul 12, 2006 2:10 am

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#3 Post by Eadwine Rose »

And next time, don't forget your QSI, please.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
oops
Posts: 1932
Joined: Tue Apr 10, 2018 5:07 pm

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#4 Post by oops »

BitJam wrote: Sat Sep 07, 2024 11:26 pm It looks like you did a manual frugal install (which is fine). When the live system does a frugal install the directory it creates that contains all the files includes the word "Frugal" and the kernel version. This helps prevent collisions with older frugal installs that might still be lying around.

Anyway, you need to tell the bootloader (refind) where the kernel and initrd are. In addition, you need to provide boot options that let our initrd find the linuxfs file. Since /antiX/linuxfs is the default location, you just need to tell us which partition to look on. This is usually done using the partition label (blab=) or the partition uuid (buuid=). It could well boot without the partition being specified if you use the "from=hd" option which tells us to look for /antiX/linuxfs only on hard drive partitions. By default, the live system avoids looking for the linuxfs file on hard drives. If you use "from=hd" without "blab=" or "buuid=" it will search all hard drive partitions for /antiX/linuxfs and use the first one it finds.

Borrowing from the refind.cfg demo file, I would try an entry like this:

Code: Select all

menuentry MX23 {
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader antiX/vmlinuz
    initrd antix/initrd.gz
    options "buuid=5f96cafa-e0a7-4057-b18f-fa709db5b837"
}

Thanks, I will try this kind ok way . (yes I did a (some) manual frugal install, already work with Grub)

FI: @Eadwine Rose ... QSI in this case is not needed, because it is before the MX boot.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
oops
Posts: 1932
Joined: Tue Apr 10, 2018 5:07 pm

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#5 Post by oops »

BitJam wrote: Sat Sep 07, 2024 11:26 pm....
Borrowing from the refind.cfg demo file, I would try ...
Ok, that worked like this config. with the custom icon. Thanks BitJam.

Code: Select all

menuentry MX23-amd64-frugal-STATIC {
	icon EFI/BOOT/tof-snowy/os-mx-linux.png
	# su blkid for GUID and UUID
    volume b36f5a67-xxxxxxxxxx-89f5aa4b52f2
    loader /frugal/MX23-amd64/antiX/vmlinuz
    initrd /frugal/MX23-amd64/antiX/initrd.gz
    #options "buuid=fbbc69ed-c609-4467-8cc8-b7d1404ca2ef"
    options "quiet bdev=sda3 bdir=/frugal/MX23-amd64/antiX kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris hostname=TofMX23 from=hd persist_static"
   
}


menuentry MX23-amd64-frugal-DYNAMIC-persist-root-home {
	icon EFI/BOOT/tof-snowy/os-mx-linux.png
	# su blkid for GUID and UUID
    volume b36f5a67-xxxxxxxxxx-89f5aa4b52f2
    # Grub menuentry "---> POUR MAJ MX23amd64 Frugal - dynamic persist=root!,home! snapshot-2024-on-sda3"
    loader /frugal/MX23-amd64/antiX/vmlinuz 
    initrd /frugal/MX23-amd64/antiX/initrd.gz
    #options "buuid=fbbc69ed-c609-4467-8cc8-b7d1404ca2ef"
    options "quiet bdev=sda3 bdir=/frugal/MX23-amd64/antiX kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris hostname=TofMX23 from=hd persist=root!,home!"
}
You do not have the required permissions to view the files attached to this post.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
oops
Posts: 1932
Joined: Tue Apr 10, 2018 5:07 pm

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#6 Post by oops »

My antiX icon for Refind:
You do not have the required permissions to view the files attached to this post.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

#7 Post by BitJam »

:thumbup: :thumbup:
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

Post Reply

Return to “Installation”