Page 1 of 1

Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Sun Apr 28, 2019 5:09 pm
by fehlix
As we had recently a couple of users with issue's booting on different Apple's like iMac, MacPro etc.
I had a look into our current MX Linux and antiX ISO to find a way to make them bootable on those problematic Mac's, too.
As my first attempt please find attached a tool which will convert MX Linux and antiX ISO's into a different ISO format, which
appears more suitable to get booted on Mac's. The generated ISO will also boot on non-Mac computer.

Please extract the attached tar file "mk-mx-imac-iso.sh.tgz" into the same folder of the MX ISO or antiX ISO.

To convert an MX/antiX 32bit or 64bit ISO please run this script as indicated with the Usage below.

Please to either burn the created mac.iso on DVD or "burn" on USB stick, e.g. using dd-live-usb command line tool or other USB dd-dumper tools, like Etcher etc or use MX Live USB Maker but use DD-mode.
Don't create a full feature LiveUSB using live-usb-maker with the generated imac-iso, as the structur of the imac-iso has changed
and generating full feature LiveUSB ive-usb-maker or MX Live USB Maker might currently not work.

Code: Select all

Usage:
  mk-mx-imac-iso.sh : Convert MX/antiX-Linux ISO to iMac-bootable ISO
  
  mk-mx-imac-iso.sh <MX-iso-file>

  Examples:
  
  ./mk-mx-imac-iso.sh MX-18.2_386.iso
  will create MX-18.2_386_imac.iso
  
  ./mk-mx-imac-iso.sh MX-18.2_x64.iso
  will create MX-18.2_x64_imac.iso
  
Please note the PATH in front "./" , which is the local path needed to run the tool from current directory.
HTH
:puppy:
EDIT: As a little "bonus" the tool will carry over the current locale like: language, timezone and keyboard into the created ISO.
So you need only select the first menu entry, which holds the current locale settings already. :cool:
EDIT: Potentially it might also work to boot older iMacs, so any feedback welcome.

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Thu Jun 06, 2019 2:22 am
by hsl
Hi fehlix-

For reference, I'm on a MacBook Pro (2014) running macOS Mojave (10.14.5). I did the following to get the script running as far as it is now:
  • install xorriso via Homebrew
  • install coreutils via Homebrew and changed the references to "readlink" to "greadlink"
I've got the following files in a directory:
.
├── MX-18.3_x64.iso
└── mk-mx-imac-iso.sh

I get the following output when I run the script:

Code: Select all

> ./mk-mx-imac-iso.sh MX-18.3_x64.iso 
GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project.

Copying of file objects from ISO image to disk filesystem is: Enabled
xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE : 490 nodes read in 1 seconds
xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded
Drive current: -indev '/Volumes/DATA/xDownloads/temp/MX-18.3_x64.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : El Torito , MBR isohybrid cyl-align-off GPT
Media summary: 1 session, 712299 data blocks, 1391m data,  332g free
Volume id    : 'antiXlive'
Extracted from ISO image: file '/cdrom.ico'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/cdrom.ico'
Extracted from ISO image: file '/version'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/version'
Extracted from ISO image: file '/boot/grub/grub.cfg'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/boot/grub/grub.cfg'
Extracted from ISO image: file '/boot/grub/fonts'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/boot/grub/fonts'
Extracted from ISO image: file '/boot/grub/theme'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/boot/grub/theme'
Extracted from ISO image: file '/boot/memtest'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/boot/memtest'
Extracted from ISO image: file '/boot/uefi-mt'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/boot/uefi-mt'
xorriso : UPDATE : 33 files restored ( 666.8m) in 1 seconds , 504.9xD
Extracted from ISO image: file '/antiX'='/tmp/mx-iso-extraxt.cl6GBQxCK3utgp/antiX'
xorriso : UPDATE : 39 files restored (1379.5m) in 2 seconds
cat: /etc/timezone: No such file or directory
./mk-mx-imac-iso.sh: line 78: setxkbmap: command not found
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
./mk-mx-imac-iso.sh: line 79: setxkbmap: command not found
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
./mk-mx-imac-iso.sh: line 80: setxkbmap: command not found
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
sed: 1: "s/default=1/default=0/; ...": bad flag in substitute command: '}'
sed: 1: "/^linux /{s%$%  lang=en ...": bad flag in substitute command: '}'
./mk-mx-imac-iso.sh: line 132: grub-mkrescue: command not found
Can you offer any advice on how to get past these errors?

Thanks in advance!

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Thu Jun 06, 2019 2:43 am
by handy
I'm running antiX on a 2007 (first of the aluminium jobs) 24" iMac. I had no problems installing it (which actually surprised me).

I'm not running OS/X at all, which makes things easier in some ways (well at least from how it used to be back in the days when I bought the iMac).

I wrote a wiki page on the ArchWiki, I don't know if it is still relevant or not, I kept it up to date for some years & I think others have had a bit of a go since then:

https://wiki.archlinux.org/index.php/IMac_Aluminum

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Thu Jun 06, 2019 4:28 am
by JayM
Thanks, mates. There are two active threads right now about failure to boot MX USBs on Macbooks, so your timing is impeccable.

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Thu Jun 06, 2019 5:10 am
by fehlix
hsl wrote:
Thu Jun 06, 2019 2:22 am
For reference, I'm on a MacBook Pro (2014) running macOS Mojave (10.14.5).

Code: Select all

./mk-mx-imac-iso.sh: line 132: grub-mkrescue: command not found
The script's main part is using grub-mkrescue and was prepared to run in a recent Linux.
You could try on another computer with the USB-stick and convert the iso there, or run the convert-script on another live-linux which you can boot from.

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Tue Jun 11, 2019 2:53 am
by Yellowhoney
Could you please upload a IOS for a mac noobs :)

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Tue Jun 11, 2019 5:15 am
by fehlix
Yellowhoney wrote:
Tue Jun 11, 2019 2:53 am
Could you please upload a IOS for a mac noobs :)
Do you have another PC with MX Linux running , so you can convert the exisiting MX Linux iso to a imac version?

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Sat Jun 15, 2019 6:12 am
by hsl
fehlix wrote:
Thu Jun 06, 2019 5:10 am
hsl wrote:
Thu Jun 06, 2019 2:22 am
For reference, I'm on a MacBook Pro (2014) running macOS Mojave (10.14.5).

Code: Select all

./mk-mx-imac-iso.sh: line 132: grub-mkrescue: command not found
The script's main part is using grub-mkrescue and was prepared to run in a recent Linux.
You could try on another computer with the USB-stick and convert the iso there, or run the convert-script on another live-linux which you can boot from.
Hi - I just wanted to follow up with some feedback. I finally managed to run the script from a partition (which happened to have Linux Mint installed) and it ran to completion. I wrote the resulting ISO to a USB stick using balenaEtcher and was able to run through the installation process.

Thanks very much for your help!

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Sat Jun 15, 2019 6:47 am
by fehlix
hsl wrote:
Sat Jun 15, 2019 6:12 am
Hi - I just wanted to follow up with some feedback. I finally managed to run the script from a partition (which happened to have Linux Mint installed) and it ran to completion. I wrote the resulting ISO to a USB stick using balenaEtcher and was able to run through the installation process.
Great, thanks for your feedback.
The difference between the original ISO and the converted ISO is that the converted ISO is a now pure GRUB-iso, without the nice isolinux bootmenu with Fn-key-option menu. As we would prefer not to publish two different ISO variants , I also worked on a script to convert the original but to keep the isolinux bootmenu. If you can run the other script, which I'll go to "tidy" up a bit, could you run the other script, and test whether the created ISO will still boot on your iMAc. If so let me know.
I'll go and tidy up the other script and publish here in this thread, and perhaps also send you a PM ... asap ... :snail:
:puppy:

Re: Boot MX/antiX on iMAc : Convert MX/antiX ISO's to an "Apple HFS/HFS+" ISO bootable on Mac's: iMac, MacMini, MacPro

Posted: Sat Jun 15, 2019 9:04 pm
by hsl
fehlix wrote:
Sat Jun 15, 2019 6:47 am
hsl wrote:
Sat Jun 15, 2019 6:12 am
Hi - I just wanted to follow up with some feedback. I finally managed to run the script from a partition (which happened to have Linux Mint installed) and it ran to completion. I wrote the resulting ISO to a USB stick using balenaEtcher and was able to run through the installation process.
Great, thanks for your feedback.
The difference between the original ISO and the converted ISO is that the converted ISO is a now pure GRUB-iso, without the nice isolinux bootmenu with Fn-key-option menu. As we would prefer not to publish two different ISO variants , I also worked on a script to convert the original but to keep the isolinux bootmenu. If you can run the other script, which I'll go to "tidy" up a bit, could you run the other script, and test whether the created ISO will still boot on your iMAc. If so let me know.
I'll go and tidy up the other script and publish here in this thread, and perhaps also send you a PM ... asap ... :snail:
:puppy:
Sure I'd be glad to help! I'll wait to hear back from you.