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

    Wiping Drive via PXE menu

    Scheduled Pinned Locked Moved General
    12 Posts 2 Posters 926 Views
    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.
    • Tom ElliottT
      Tom Elliott @vanfifty1
      last edited by

      @vanfifty1 Expermental release is built and ready for testing:

      seen here:
      https://github.com/FOGProject/fos/releases/tag/EXP_20260716-114430

      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
      • V
        vanfifty1 @Tom Elliott
        last edited by

        @Tom-Elliott said in Wiping Drive via PXE menu:

        As for the RAMDISK size within the gui, 256000 (256~ MB) should be plenty big enough to house the initrd file, but 512000 is fine as well. We have a default set of 275000 for some time now, so if you upgraded from a very old version of fog that might explain this particular issue or are you saying this needs even more room now?

        I am using a recent version of FOG installed in May or June 2026. It looks like even more room is required now as I needed to change rhe argument ramdisk_size=256000 to something larger (I used 512000).

        The original suggested PXE menu entry suggestion included “imgfetch init.xz”. I left it out and it still started the wipe fine. I am assuming this line is not required?

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

          @vanfifty1

          I think it depends, bu tif it’s working then you’re fine.

          Ultmately are you saying the wipe succeeded and worked?

          Did it take longer or was it still pretty fast and unexpected?

          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

          V 1 Reply Last reply Reply Quote 0
          • V
            vanfifty1 @Tom Elliott
            last edited by vanfifty1

            @Tom-Elliott said in Wiping Drive via PXE menu:

            @vanfifty1

            I think it depends, bu tif it’s working then you’re fine.

            Ultmately are you saying the wipe succeeded and worked?

            Did it take longer or was it still pretty fast and unexpected?

            The wipe succeeded using the original init.xz file that was part of FOG 1.5.10.1826
            In terms of speed it was very fast but as I am new to FOG I have no previous history to compare against. My expectation was a long erase time similar to killdisk which takes hours rather than about 10 seconds with FOG (just timed it). Though you clarified in your previous post about this and how writing zeros/random writes is only needed with older non SSD drives…

            I just cloned the FOG server to a different system and copied the experimental init.xz file to /var/www/fog/service/ipxe
            Selecting the custom wipe option that I added to the menu resulted in the wipe failing:

            "
            Erasing /dev/nvme01 with NVMe sanitize block erase (sanact 2)
            …
            …
            Sanitize failed; falling back to a format user data erase
            Erasing /dev/nvme0n1 (nvme format --ses=1, user data erase) … Failed

            An error has been detected!

            Init version: 20260716
            The wipe of /dev/nvme0n1 did NOT complete. (/bin/fog.wipe)
            Mode: Full
            This disk still holds its data; do not treat it as erased.
            "
            It seemed to be fine with the previous init.xz file that was part of FOG 1.5.10.1826. What was the bug that you found?

            Tom ElliottT 3 Replies Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @vanfifty1
              last edited by

              @vanfifty1 said in Wiping Drive via PXE menu:

              "
              Erasing /dev/nvme01 with NVMe sanitize block erase (sanact 2)
              …
              …
              Sanitize failed; falling back to a format user data erase
              Erasing /dev/nvme0n1 (nvme format --ses=1, user data erase) … Failed

              An error has been detected!

              Init version: 20260716
              The wipe of /dev/nvme0n1 did NOT complete. (/bin/fog.wipe)
              Mode: Full
              This disk still holds its data; do not treat it as erased

              The bug was that it didn’t check on any failure and would just alwasy presume success which is not correct. This at least shows the SES (Secure Erase) for the nvme types and is returning the correct errors.

              Unsure why it’s failing but working what I can.

              Running checks at this point. I need the info to fix the problem and you’re helping whether you know it or not.

              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 @vanfifty1
                last edited by

                @vanfifty1 Performing another build as required. Will come back when it’s ready.

                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 @vanfifty1
                  last edited by

                  @vanfifty1 Latest experimental is available here:
                  https://github.com/FOGProject/fos/releases/tag/EXP_20260716-155505

                  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

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    vanfifty1 @Tom Elliott
                    last edited by

                    @Tom-Elliott said in Wiping Drive via PXE menu:

                    @vanfifty1 Latest experimental is available here:
                    https://github.com/FOGProject/fos/releases/tag/EXP_20260716-155505

                    Tested and wipe was successful. It is faster, about six seconds vs ten seconds with the non experimental init.xz file.

                    Also previously it was less verbose stating:
                    “Starting disk wipe of /dev/nvme0n1 using nvme format …
                    Success formatting namespace:1
                    Wiping complete.”

                    With the experimental init.xz file it states:
                    “Erasing /dev/nvme0n1 with an NVMe sanitize block erase (sanact 2)
                    Sanitize cannot be canceled once started; it will resume after a power cycle.
                    Sanitizing /dev/nvme0n1 … 100%
                    Wiping complete.”

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

                      @vanfifty1 Sweet so it is functional and seems to be much more verbose about the actions it’s performing, thank you!

                      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

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        vanfifty1 @Tom Elliott
                        last edited by

                        @Tom-Elliott said in Wiping Drive via PXE menu:

                        @vanfifty1 Sweet so it is functional and seems to be much more verbose about the actions it’s performing, thank you!

                        Thank you!

                        With the experimental init.xz when it said the following in my case: “Erasing /dev/nvme0n1 with an NVMe sanitize block erase (sanact 2)” does this mean the following command was run?: nvme sanitize /dev/nvme0n1 -a 2

                        Does this mean the bug is patched? Should I use the experimental init.xz file on the production FOG server? What ramifications will this have? Is it better to wait until this is released in an official version down the road?

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

                        106

                        Online

                        12.7k

                        Users

                        17.6k

                        Topics

                        156.8k

                        Posts
                        Copyright © 2012-2026 FOG Project