Parted Magic Boot Menu
-
Hi all,
I’m following this link (https://wiki.fogproject.org/wiki/index.php/Include_any_ISO_in_the_FOG_Bootmenu), but I’ve run into a few issues during the set-up and I’m hoping someone here can clarify a few things.
I’m currently using FileZilla and have extracted the iso on my Windows PC. I’ve then transferred the extracted files and folders across to /var/www/html/pmagic/
I’ve run pm2pxe.sh but it doesn’t create a pm2pxe directory at all. Instead, from what I can see, it’s created the PMAGIC_2013_08_01.SQFS.cgz file (which I assume is the same as the files.cgz mentioned in the wiki above). It’s also placed this directly in the html folder along with stanza.txt - not in the pmagic folder.
The wiki then says ‘now for the boot entry,’ but I’m unsure where this is. Could someone please point me in the correct direction?
I’m running Ubuntu 14.04 and I’m trying to use Parted Magic 2013_08_01.
Any help with this would be greatly appreciated.
-
@RobTitian16 said in Parted Magic Boot Menu:
The wiki then says ‘now for the boot entry,’ but I’m unsure where this is. Could someone please point me in the correct direction?
It’s probably referring to FOG Trunk. Trunk offers more advanced and easier iPXE boot menu manipulation. 1.2.0 has some things to do this but they aren’t as nice.
It’s here:
Web Interface -> FOG Configuration -> iPXE New Menu Entry
I’ve also updated the wiki so that hopefully nobody else is confused about that part.
-
@Wayne-Workman Ah, that’s great - thanks a lot!
I’ve followed the instructions on the above link, but whenever I select to boot from Parted Magic, I get the following:
Magic: command not found
Could not boot: Ezec format error (http://ipxe.org/2e022001)
Could not boot: Ezec format error (http://ipxe.org/2e022001)
Chainloading failed; hit ‘s’ for the iPXE shell; reboot in 10 seconds.I literally copy and pasted the boot entry configuration listed in the wiki, although I did change the name of ‘files.cgz’ to the appropriate .cgz file name.
Does anyone have any suggestions as to how to fix this?
-
@RobTitian16 There’s a mistake in your menu item, it’s trying to use Magic as a command which it obviously isn’t.
I don’t see Magic anywhere in the wiki article either, so perhaps it would be useful if you were to post your menu item here anyway.
-
@Quazz Here’s the menu item configuration:
kernel http://${fog-ip}/pmagic/pmagic/bzImage64
initrd http://${fog-ip}/pmagic/pmagic/initrd.img
initrd http://${fog-ip}/pmagic/PMAGIC_2013_08_01.SQFS.cgz
initrd http://${fog-ip}/pmagic/fu.img
initrd http://${fog-ip}/pmagic/m64.img
imgargs bzImage64 boot=live ip=dhcp edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void
boot || read voidPlease note that I don’t have the fu and m64 .img files, so I assume it’s safe to delete them? Also, I had to change the bzImage64 and initrd.img locations to match where they are in FOG.
-
@RobTitian16 So you extracted the parted magic iso files into a directory on the base of your web server document root:
(Probably /var/www or /var/www/html.)
You created a folder in /var/www or /var/www/html called /var/www/pmagic or /var/www/html/pmagic.
You copied the contents so you would see a directory listing while in the base pmagic folder of something along the lines of:
[root@fogserver pmagic]# ls -lhart total 500M drwxr-xr-x. 17 root root 4.0K Jun 8 19:26 .. drwxr-xr-x. 2 apache apache 4.0K Jun 8 19:26 pmagic -rw-r--r--. 1 apache apache 200M Jun 8 19:26 PMAGIC_2013_08_01.SQFS.cgz
If you run the info recursively you might see:
[root@fogserver pmagic]# ls -lharRt .: total 500M drwxr-xr-x. 17 root root 4.0K Jun 8 19:26 .. drwxr-xr-x. 2 apache apache 4.0K Jun 8 19:26 pmagic -rw-r--r--. 1 apache apache 200M Jun 8 19:26 PMAGIC_2013_08_01.SQFS.cgz ./pmagic: total 200M -rw-r--r--. 1 apache apache 100M Jun 8 19:26 bzImage64 -rw-r--r--. 1 apache apache 100M Jun 8 19:26 initrd.img
-
@RobTitian16 I only have a 2015 version to compare with, but at the very lest you shouldn’t instruct it to load files it won’t be able to find, yes.
Not sure where iPXE is pulling the Magic instruction from though?
Might want to test something like:
initrd http://${fog-ip}/pmagic.iso
chain memdisk iso -
@Tom-Elliott These are the steps I followed:
I downloaded Parted Magic from Major Geeks (the 2013 version) and put it in my Downloads\Parted Magic folder on my Windows 10 PC.
I then extracted the ISO within that folder and copied the contents across (minus the iso file) across to /var/www/html/pmagic (I created the folder before and gave other users read and write access) using Filezilla.
I then ran sh pm2pxe.sh, which produced the PMAGIC-2013_08_01.SQFS.cgz in the html folder, as well as stanza.txt.
I copied and pasted these two files from the html folder to the pmagic folder (so everything related to pmagic was then in the pmagic folder).
Following that, I configured the boot menu with the following configuration:kernel http://${fog-ip}/pmagic/pmagic/bzImage64
initrd http://${fog-ip}/pmagic/pmagic/initrd.img
initrd http://${fog-ip}/pmagic/PMAGIC_2013_08_01.SQFS.cgz
initrd http://${fog-ip}/pmagic/fu.img
initrd http://${fog-ip}/pmagic/m64.img
imgargs bzImage64 boot=live ip=dhcp edd=on noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=normal sleep=0 loglevel=0 keymap=us splash quiet - || read void
boot || read voidFinally, when I run ls -lhart from the html folder, I get the following:
-
@Quazz said in Parted Magic Boot Menu:
initrd http://${fog-ip}/pmagic.iso
chain memdisk isoThanks for the suggestion. I’ve tried that, but I get the same thing.
The FOG menu says ‘Magic Boot into Parted Magic’ as the option. -
@RobTitian16 I’m running through.
Immediately there are a few things standing out.
the kernel http://${fog-ip}/pmagic/pmagic/bzImage64 appears to actually need to be kernel ${fog-ip}/pmagic/pmagic/bzImage
The initrd line should be: as you have it from what I can see. (for both of them.)
The pmagic folder does not contain fu.img or m64.img.
So
From what I can tell, your Menu should look like:
kernel http://${fog-ip}/pmagic/pmagic/bzImage edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 boot=live ip=dhcp noapic sleep=0 loglevel=0 keymap=us splash quiet initrd http://${fog-ip}/pmagic/pmagic/initrd.img initrd http://${fog-ip}/PMAGIC_2013_08_01.SQFS.cgz
I’m running through a test as well just to make sure as I too have downloaded the 2013_08_01.
-
There is my working config.Parameters as text so less ability of typos.
kernel http://${fog-ip}/pmagic/pmagic/bzImage64 edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 boot=live ip=dhcp noapic sleep=0 loglevel=0 keymap=us splash quiet initrd http://${fog-ip}/pmagic/pmagic/initrd.img initrd http://${fog-ip}/PMAGIC_2013_08_01.SQFS.cgz boot
-
@Tom-Elliott said in Parted Magic Boot Menu:
kernel http://${fog-ip}/pmagic/pmagic/bzImage64 edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 boot=live ip=dhcp noapic sleep=0 loglevel=0 keymap=us splash quiet
initrd http://${fog-ip}/pmagic/pmagic/initrd.img
initrd http://${fog-ip}/PMAGIC_2013_08_01.SQFS.cgz
bootThanks for the help so far, it really is appreciated! However, I’m still getting the ‘Magic: command not found’ error whenever I try to boot into Parted Magic. I think it might work if it wasn’t trying to use this Magic command, whatever it may be. I’m not really sure where it’s coming from…
-
@RobTitian16 I need to see the whole thing man. Can you post a pic of your menu setup please.
-
Like this?
-
@RobTitian16 Please update fog.
The issue, as far as I can tell, is the space you most likely have in the name portion of the menu information.
-
@Tom-Elliott Doh… thanks for that!
I’ve just tried booting and it starts to look okay, but now I’m stuck on ‘Booting the kernel.’ -
@RobTitian16 mine is under my Advanced Menu but works great like this:
:parted
initrd ${boot-url}/iso/pmagic.iso
chain memdisk ||
echo failed to boot
prompt
goto MENU -
@Tom-Elliott I’ve just updated FOG to the latest version but I’m still stuck on ‘booting the kernel’, unfortunately.
-
@Andy-Abplanalp Thanks for this! I’m guessing I just need to create an /iso/ folder, assign the permissions and then transfer the pmagic iso over to it?
-
@RobTitian16 that sounds correct