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.


  • Developer

    @RobTitian16 That’s what I’ve done, yes. I discovered, by luck, that not appending anything to memdisk works for certain ISOs. I use Parted Magic frequently, so I was happy to get it working. I’ve never seen this documented anywhere…glad you’re working!



  • @Andy-Abplanalp You sir, are a life saver. Thank you very much!
    I assume I just add more lines like initrd ${boot-url}/iso/pmagic.iso if I want to use other ISOs?


  • Developer

    @RobTitian16 that sounds correct



  • @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?



  • @Tom-Elliott I’ve just updated FOG to the latest version but I’m still stuck on ‘booting the kernel’, unfortunately.


  • Developer

    @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 Doh… thanks for that!
    I’ve just tried booting and it starts to look okay, but now I’m stuck on ‘Booting the kernel.’

    0_1465474698833_Capture.PNG


  • Senior Developer

    @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 0_1465471012131_Capture.PNG

    Like this?


  • Senior Developer

    @RobTitian16 I need to see the whole thing man. Can you post a pic of your menu setup please.



  • @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
    boot

    Thanks 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…


  • Senior Developer

    0_1465470303856_upload-b8a3aa91-5b97-4607-b578-4b66cbbd4844
    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
    

  • Senior Developer

    @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.



  • @Quazz said in Parted Magic Boot Menu:

    initrd http://${fog-ip}/pmagic.iso
    chain memdisk iso

    Thanks 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.



  • @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 void

    Finally, when I run ls -lhart from the html folder, I get the following:

    0_1465469217923_Capture.PNG


  • Moderator

    @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


  • Senior Developer

    @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
    


  • @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 void

    Please 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.


  • Moderator

    @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.


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.