piakbt wrote: Thu Aug 20, 2020 8:49 am
I have no access to BIOS, it is password-protected, so I cannot change boot order.
But I have sufficient privileges to configure grub, to partition the disk.
Here are 2-to-3 ways:
You can try to chainload booting from LiveUSB from grub.
On your existing grub menu, press "c" for command line.
First load the chainlaoder:
list the detect drives:
if you can identify the LiveUSB (made with MX Live-USB-Maker) , it should have 2 partitions, it may look like
or
hd1 can also be hd0, or even something else.
Now change root, to the first partition on the LiveUSB:
and check the content of the root-folder:
You should see the content like
Code: Select all
/antix /boot version made-by-live-usb-maker ...
Now type this to chainload and to boot from the LiveUSB:
In case GRUB does not "see" the USB-key yet,
There are two other ways:
Boot from the ISO via GRUB, and install from the running ISOboot. (You might need to put the ISO on a partition not used by the installer.)
Such menentry to ISOboot: e.g. put into /boot/grub/custom.cfg an your existing grub-folder:
Code: Select all
menuentry "MX-19.2_August_x64.iso" {
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
or you can use the magic bootcodes invented by our magician Bitjam
to make the MX-Live loader search the USB-partition "MX-Live-usb"
and further boot from the liveUSB:
Code: Select all
menuentry "MX-19.2_August_x64.iso" {
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz blab=MX-Live-usb lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
Adjust the timezone and lang parameter accordingly.
Here a working example
/boot/grub/custom.cfg:
Code: Select all
submenu "MX ISO BOOT" {
menuentry "MX-19.2_August_x64.iso" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_August_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
menuentry "MX-19.2_KDE_x64.iso" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_KDE_x64.iso"
search --no-floppy --file --set=root $isopath
probe -u $root --set=buuid
loopback loop $isopath
linux (loop)/antiX/vmlinuz buuid=$buuid fromiso=${isopath} kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
menuentry "LiveUSB MX-19.2_KDE_x64" {
insmod part_gpt
insmod part_msdos
insmod ext2
set isopath="/iso/MX-19.2_KDE_x64.iso"
search --no-floppy --file --set=root $isopath
loopback loop $isopath
linux (loop)/antiX/vmlinuz blab=MX-Live-usb kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Berlin quiet nosplash
initrd (loop)/antiX/initrd.gz
}
}
EDIT: added insmod part_gpt and insmod part_msdos, so it will work regardless of the current grub.cfg.
HTH
