• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Parted Magic Boot Menu

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    22
    13.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RobTitian16R
      RobTitian16
      last edited by

      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.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @RobTitian16
        last edited by Wayne Workman

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

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        RobTitian16R 1 Reply Last reply Reply Quote 0
        • RobTitian16R
          RobTitian16 @Wayne Workman
          last edited by

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

          Q 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @RobTitian16
            last edited by

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

            RobTitian16R 1 Reply Last reply Reply Quote 0
            • RobTitian16R
              RobTitian16 @Quazz
              last edited by

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

              Tom ElliottT Q 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @RobTitian16
                last edited by

                @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
                

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                RobTitian16R 1 Reply Last reply Reply Quote 0
                • Q
                  Quazz Moderator @RobTitian16
                  last edited by Quazz

                  @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

                  RobTitian16R 1 Reply Last reply Reply Quote 0
                  • RobTitian16R
                    RobTitian16 @Tom Elliott
                    last edited by RobTitian16

                    @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

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • RobTitian16R
                      RobTitian16 @Quazz
                      last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @RobTitian16
                        last edited by Tom Elliott

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

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by Tom Elliott

                          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
                          

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          RobTitian16R 1 Reply Last reply Reply Quote 0
                          • RobTitian16R
                            RobTitian16 @Tom Elliott
                            last edited by

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

                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott @RobTitian16
                              last edited by

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

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              RobTitian16R 1 Reply Last reply Reply Quote 0
                              • RobTitian16R
                                RobTitian16 @Tom Elliott
                                last edited by

                                @Tom-Elliott 0_1465471012131_Capture.PNG

                                Like this?

                                Tom ElliottT 1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott @RobTitian16
                                  last edited by

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

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  RobTitian16R 2 Replies Last reply Reply Quote 0
                                  • RobTitian16R
                                    RobTitian16 @Tom Elliott
                                    last edited by

                                    @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

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      Andy Abplanalp Developer @RobTitian16
                                      last edited by

                                      @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

                                      RobTitian16R 1 Reply Last reply Reply Quote 0
                                      • RobTitian16R
                                        RobTitian16 @Tom Elliott
                                        last edited by

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

                                        1 Reply Last reply Reply Quote 0
                                        • RobTitian16R
                                          RobTitian16 @Andy Abplanalp
                                          last edited by

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

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            Andy Abplanalp Developer @RobTitian16
                                            last edited by

                                            @RobTitian16 that sounds correct

                                            RobTitian16R 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            180

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project