I’ve decided to write a guide on how to PXE boot Parted Magic, I read through the existing FOG Wiki entry on parted magic, this unfortunately doesn’t seem to work on the later versions. I am using the ISO from May 2023, on Fog 1.5.10.
Firstly create a directory to hold your extracted parted magic ISO
mkdir /extractediso
If you are customising your Parted Magic with a save state, you can instead just create a bootable Parted Magic USB using Rufus, boot to it and customise as you wish, then click the power button and choose “Save Session”. You can then plug that USB into your FOG server and copy the files without extracting, e.g
cp /run/media/user/PM_2023_05_21/* /extractediso
Now create the directory to boot from
mkdir /var/www/html/pmagic
Now, in any old guide that I find online it then recommends running a .pm2pxe.sh script to generate files.cgz and then copying that, and the other necessary files to the recently created pmagic directory, however I found that this would not work, during the boot process Parted Magic would be unable to find pmagic_2023_05_21.sqfs so instead I skipped this step and just copied the directory like so;
cp /extractediso/pmagic/* /var/www/html/pmagic
Doing this also copies over your saved session, if you ever need to change this, just create another save session through a USB and then replace the .sqfm file in /var/www/html/pmagic/pmodules with a new one.
Now you need to simply create an iPXE Menu Item in the Fog Web Server -> Fog Configuration -> New iPXE Menu Item. These are the parameters I used to get it working after reading through partedmagic.com/pxe/
kernel http://${fog-ip}/pmagic/bzImage
initrd http://${fog-ip}/pmagic/initrd.img
initrd http://${fog-ip}/pmagic/fu.img
initrd http://${fog-ip}/pmagic/m.img
imgargs bzImage ip=dhcp edd=on netsrc=wget neturl="http://${fog-ip}/pmagic/pmodules" netargs="-U pmagicboot" noapci load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void
boot || read void
I’m sure some of these parameters are not relevant as I don’t really know what I’m doing, but it now finally works! This takes about 3 and a half minutes to boot to load up to the parted magic desktop so if anyone has any ideas to speed that up I’d be happy to hear them. Anyway, I hope this helps someone as this took a lot of trial and error for me to get going.