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

Linux on nvme drive: Failed to read back partitions (runPartProbe)

Scheduled Pinned Locked Moved Solved
FOG Problems
3
7
750
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.
  • I
    ismith.hpu
    last edited by ismith.hpu Nov 12, 2019, 3:07 PM Nov 12, 2019, 8:58 PM

    alt text

    Also a video format:

    alt text

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott @Tom Elliott
      last edited by Nov 12, 2019, 10:27 PM

      Just to clarify,

      I’ve modified the function so that we use the system’s own access to the partition and disk information to retrieve the disk directly.

      The function was updated to use this, but I forgot to strip the /dev/ from the passed partition.

      This meant that it was looking for the link of:

      /sys/class/block/$part which in this case was being translated as /sys/class/block/dev/nvme0n1p1 but the link was found in /sys/class/block/nvme0n1p1

      Stripping the /dev/ from the passed partition should fix this, and leave us with a more universal FOS methodology of obtaining the disk from the partition.

      Hopefully this helps everybody.

      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

      I 1 Reply Last reply Nov 13, 2019, 7:23 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Nov 12, 2019, 9:02 PM

        If you could boot this into debug mode and then run the following command lsblk That will tell us what FOS sees for the local block devices.

        Also what target hardware (mfg and model) is this?

        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!

        I 1 Reply Last reply Nov 12, 2019, 9:12 PM Reply Quote 0
        • I
          ismith.hpu @george1421
          last edited by Nov 12, 2019, 9:12 PM

          @george1421

          This is a Dell Aurora7 (R7) desktop with an nvme drive, I have flashed back to this device before and it worked perfectly.

          the lsblk command shows the following:

          alt text

          sda - 1TB drive for storage but had ubuntu installed on it before.
          nvme0n1 - Ubuntu Boot
          nvme0n1p1 - grub I am assuming
          nvme0n1p2 - boot partition for Ubuntu 18.04LTS

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Nov 12, 2019, 10:22 PM

            As I worked with you on this in a separate instance I know right now you’re running a modified funcs.sh coming from master and injecting it through postinitscripts.

            I forgot a small portion of the update to the getDiskFromPartition function that was modified originally.

            I’ve add this in.

            Please update your postinit funcs.sh with:

            wget -O /images/dev/postinitscripts/funcs.sh https://raw.githubusercontent.com/FOGProject/fos/master/Buildroot/board/FOG/FOS/rootfs_overlay/usr/share/fog/lib/funcs.sh
            

            This should fix the disk being returned as null.

            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

            T I 2 Replies Last reply Nov 12, 2019, 10:27 PM Reply Quote 0
            • T
              Tom Elliott @Tom Elliott
              last edited by Nov 12, 2019, 10:27 PM

              Just to clarify,

              I’ve modified the function so that we use the system’s own access to the partition and disk information to retrieve the disk directly.

              The function was updated to use this, but I forgot to strip the /dev/ from the passed partition.

              This meant that it was looking for the link of:

              /sys/class/block/$part which in this case was being translated as /sys/class/block/dev/nvme0n1p1 but the link was found in /sys/class/block/nvme0n1p1

              Stripping the /dev/ from the passed partition should fix this, and leave us with a more universal FOS methodology of obtaining the disk from the partition.

              Hopefully this helps everybody.

              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

              I 1 Reply Last reply Nov 13, 2019, 7:23 PM Reply Quote 0
              • I
                ismith.hpu @Tom Elliott
                last edited by Nov 13, 2019, 12:41 AM

                @Tom-Elliott

                I have downloaded it and will try it in the office tomorrow.

                1 Reply Last reply Reply Quote 0
                • I
                  ismith.hpu @Tom Elliott
                  last edited by Nov 13, 2019, 7:23 PM

                  @Tom-Elliott This did resolve the issue.

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

                  187

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.4k

                  Posts
                  Copyright © 2012-2024 FOG Project