SOLVED: Making MultibootUSB work with MX-Linux

Message
Author
davemx
Posts: 319
Joined: Sun Aug 12, 2018 2:31 pm

SOLVED: Making MultibootUSB work with MX-Linux

#1 Post by davemx »

SOLVED: SEE POST #8

When I search for MultibootUsb here there are more than 50 matches.

I remember finding one, but I can't find it now. It involved editing some files once I made the MultibootUSB pen drive, which enabled MXLinux to boot from it. And I remember it worked. As I can't find it now, I can't get MXLinux to boot from a MultibootUSB drive. Any pointers?
Last edited by davemx on Sat Jun 01, 2019 4:29 pm, edited 3 times in total.
Desktop: Mini-Box M350 with Asus H110i-plus motherboard, Pentium G4600 processor, 2TB SSD and 16Gb RAM DDR4-2133
Printer/Scanner: Brother MFC-J5335W
Laptop: Lenovo V15 ADA
Media Centre: Lenovo Q190

User avatar
jackdanielsesq
Posts: 244
Joined: Sun Apr 21, 2019 9:02 am

Re: Multibootusb hack/workaround

#2 Post by jackdanielsesq »

http://multibootusb.org

https://github.com/mbusb/multibootusb

Jack
davemx wrote: Fri May 31, 2019 5:59 pm When I search for MultibootUsb here there are more than 50 matches.

I remember finding one, but I can't find it now. It involved editing some files once I made the MultibootUSB pen drive, which enabled MXLinux to boot from it. And I remember it worked. As I can't find it now, I can't get MXLinux to boot from a MultibootUSB drive. Any pointers?

davemx
Posts: 319
Joined: Sun Aug 12, 2018 2:31 pm

Re: Multibootusb hack/workaround

#3 Post by davemx »

Yes I've been to both those pages. What I was after was a page here about making some alterations to a file on the USB stick after I install the MX-Linux ISO on it. For some reason the boot-up program can't find antiX/linuxfs, and this applies equally to whether i use a UEFI boot or an old-style boot.
Desktop: Mini-Box M350 with Asus H110i-plus motherboard, Pentium G4600 processor, 2TB SSD and 16Gb RAM DDR4-2133
Printer/Scanner: Brother MFC-J5335W
Laptop: Lenovo V15 ADA
Media Centre: Lenovo Q190

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Multibootusb hack/workaround

#4 Post by fehlix »

davemx wrote: Fri May 31, 2019 5:59 pm Any pointers?
Might be this with some pointers:
viewtopic.php?p=480664#p480664
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

davemx
Posts: 319
Joined: Sun Aug 12, 2018 2:31 pm

Re: Multibootusb hack/workaround

#5 Post by davemx »

fehlix wrote: Fri May 31, 2019 6:22 pm
Might be this with some pointers:
viewtopic.php?p=480664#p480664
:puppy:
Yes, fehlix, you're a hero! The link above led me to
viewtopic.php?p=459424#p459424
which was the one I was looking for.

I tried the solution pretty directly, only changing the names of the menu entries to match, but I found that when the computer boots, the command "probe" is no longer understood. So what I did was to go to GParted and use the "Properties" of the booting partition on the disk to get the UUID directly. Each entry in the "grub.cfg" will look something like this, with small variations for each menu entry:

Code: Select all

menuentry "MX-18.3 x64 (May 26, 2019)" {
    set antix="/multibootusb/MX-18.3_x64/antiX"
    linux $antix/vmlinuz quiet buuid="★Your UUID★" bdir=$antix pdir=$antix  kbd=★Your Keyboard★ lang=★Your Language★ tz=★Your Timezone★
    initrd $antix/initrd.gz
As an example, mine looks like this:

Code: Select all

menuentry "MX-18.3 x64 (May 26, 2019)" {
    set antix="/multibootusb/MX-18.3_x64/antiX"
    linux $antix/vmlinuz quiet buuid="0EE7-7517" bdir=$antix pdir=$antix  kbd=gb lang=en tz=Europe/London
    initrd $antix/initrd.gz
And it all boots perfectly.
Desktop: Mini-Box M350 with Asus H110i-plus motherboard, Pentium G4600 processor, 2TB SSD and 16Gb RAM DDR4-2133
Printer/Scanner: Brother MFC-J5335W
Laptop: Lenovo V15 ADA
Media Centre: Lenovo Q190

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Multibootusb hack/workaround

#6 Post by fehlix »

davemx wrote: Sat Jun 01, 2019 10:08 am The link above led me to
viewtopic.php?p=459424#p459424

... but I found that when the computer boots, the command "probe" is no longer understood.
So I guess a "insmod probe" to load the missing module might fix it:
Your example with insmod:

Code: Select all

menuentry "MX-18.3 x64 (May 26, 2019)" {
    set antix="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antix/vmlinuz quiet buuid="$buuid" bdir=$antix pdir=$antix  kbd=gb lang=en tz=Europe/London
    initrd $antix/initrd.gz
}
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

davemx
Posts: 319
Joined: Sun Aug 12, 2018 2:31 pm

Re: SOLVED: Multibootusb hack/workaround

#7 Post by davemx »

I'll try that. <<< It works.

What I'll do now, is to delete MX-Linux from my USB-pendrive, and re-install it, and then make the changes from scratch and write it up.
Desktop: Mini-Box M350 with Asus H110i-plus motherboard, Pentium G4600 processor, 2TB SSD and 16Gb RAM DDR4-2133
Printer/Scanner: Brother MFC-J5335W
Laptop: Lenovo V15 ADA
Media Centre: Lenovo Q190

davemx
Posts: 319
Joined: Sun Aug 12, 2018 2:31 pm

Re: SOLVED: Multibootusb hack/workaround

#8 Post by davemx »

OK — This is how it's done.

1. You need to set up the program MultibootUSB in the normal way. And install the latest version of MX-Linux on it. In my case this is MX-18.3_x64.

2. Use the file manager to view the contents of the USB drive. Navigate to .../multibootusb/MX-18.3_x64/boot/grub/ and open the file grub.cfg using Featherpad.

3. Locate these lines and delete everything between them but not the lines themselves:

# search --no-floppy --set=root --fs-uuid %UUID%
....
menuentry " Power Off" --hotkey=P {


4. Paste this in, in place of what you deleted:

Code: Select all


set default=0

menuentry " MX-18.3 x64 (May 26, 2019)" {
    set antiX="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antiX/vmlinuz quiet buuid=$buuid nosplash bdir=$antiX pdir=$antiX
    initrd $antiX/initrd.gz
}

menuentry "persist MX-18.3 x64 (May 26, 2019)" {
    set antiX="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antiX/vmlinuz quiet persist_static buuid=$buuid bdir=$antiX pdir=$antiX 
    initrd $antiX/initrd.gz
}

menuentry " MX-18.3 x64 Customize Boot (text menus)" {
    set antiX="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antiX/vmlinuz quiet buuid=$buuid menus nosplash bdir=$antiX pdir=$antiX
    initrd $antiX/initrd.gz
}

#--custom  menuentry " Custom" {
#--custom  linux /antiX/vmlinuz quiet
#--custom  initrd /antiX/initrd.gz
#--custom  }

submenu ">>> Advanced Options for MX-18.3 x64 <<<" {

menu_color_normal=white/black
menu_color_highlight=yellow/light-gray

menuentry " MX-18.3 x64 Failsafe" {
    set antiX="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antiX/vmlinuz quiet buuid=$buuid nomodeset failsafe nosplash bdir=$antiX pdir=$antiX
    initrd $antiX/initrd.gz
}

menuentry " MX-18.3 x64 (1024x768)" {
    set antiX="/multibootusb/MX-18.3_x64/antiX"
    insmod probe
    probe -u $root --set=buuid
    linux $antiX/vmlinuz quiet buuid=$buuid nosplash bdir=$antiX pdir=$antiX
    initrd $antiX/initrd.gz
}

If you are using a different version of MX-Linux then correct the folder name in every line that starts set antiX. Also change the text of the Menu Entries.

In the lines starting linux you can add switches kbd= lang= tz= (keyboard, language, timezone) to specify a language other than English. Or you can customise boot and do it there.

And that's it!
Desktop: Mini-Box M350 with Asus H110i-plus motherboard, Pentium G4600 processor, 2TB SSD and 16Gb RAM DDR4-2133
Printer/Scanner: Brother MFC-J5335W
Laptop: Lenovo V15 ADA
Media Centre: Lenovo Q190

tosim
Posts: 31
Joined: Sun Sep 02, 2018 11:48 am

Re: SOLVED: Making MultibootUSB work with MX-Linux

#9 Post by tosim »

Tried using the fix above with MX-19beta-1_386. Here is the screenshot of closest I could come:
http://i.imgur.com/ZTyQ8gn.png

Thank you for the assist.

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: SOLVED: Making MultibootUSB work with MX-Linux

#10 Post by fehlix »

tosim wrote: Wed Sep 04, 2019 2:43 pm Tried using the fix above with MX-19beta-1_386. Here is the screenshot of closest I could come:
Perhaps, describe what you have tried, so somebody could spot what might be done differently.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “Software / Configuration”