Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

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

Post Reply
User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4218
Joined: Wed Apr 11, 2018 5:09 pm

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

#1

Post by fehlix » Sun Apr 28, 2019 5:09 pm

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.
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

hsl
Forum Novice
Forum  Novice
Posts: 6
Joined: Sat Jun 01, 2019 10:41 pm

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

#2

Post by hsl » Thu Jun 06, 2019 2:22 am

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!

User avatar
handy
Forum Regular
Forum Regular
Posts: 308
Joined: Mon Apr 23, 2018 2:00 pm

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

#3

Post by handy » Thu Jun 06, 2019 2:43 am

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
Clevo N'book (2014): P150SM-A
CPU: i7-4810MQ (Haswell) Speed: 2800/3800 MHz
RAM: 16 GiB 1600 MHz DDR3
GPU-1: i915
GPU-2: NVIDIA GK104M [GeForce GTX 880M] vRAM: 8GB 2500 Mhz DDR5
Storage: TOSHIBA 931.51 GiB. HGST 931.51 GiB. Crucial 223.57 GiB (M.2 SSD)

User avatar
JayM
Forum Guide
Forum Guide
Posts: 1334
Joined: Tue Jan 08, 2019 4:47 am

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

#4

Post by JayM » Thu Jun 06, 2019 4:28 am

Thanks, mates. There are two active threads right now about failure to boot MX USBs on Macbooks, so your timing is impeccable.
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4218
Joined: Wed Apr 11, 2018 5:09 pm

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

#5

Post by fehlix » 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.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Yellowhoney
Forum Novice
Forum  Novice
Posts: 34
Joined: Sat Apr 20, 2019 5:36 am

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

#6

Post by Yellowhoney » Tue Jun 11, 2019 2:53 am

Could you please upload a IOS for a mac noobs :)
2007 20* Imac running 3gb MX18.3
i5 4670k 16gb ram

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4218
Joined: Wed Apr 11, 2018 5:09 pm

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

#7

Post by fehlix » Tue Jun 11, 2019 5:15 am

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?
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

hsl
Forum Novice
Forum  Novice
Posts: 6
Joined: Sat Jun 01, 2019 10:41 pm

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

#8

Post by hsl » Sat Jun 15, 2019 6:12 am

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!

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4218
Joined: Wed Apr 11, 2018 5:09 pm

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

#9

Post by fehlix » 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:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

hsl
Forum Novice
Forum  Novice
Posts: 6
Joined: Sat Jun 01, 2019 10:41 pm

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

#10

Post by hsl » Sat Jun 15, 2019 9:04 pm

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.

Post Reply

Return to “Forum How-to's”