Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3761

mender-grow-data.service fails on GPT images



    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: yocto-2.7-warrior
    • Fix Version/s: None
    • Labels:
    • Environment:
      ARM i.MX6 using eMMC
    • Days in progress:


      The following line is causing my eMMC disk expansion to fail (running Yocto Warrior):


      Parted will refuse to resize the parition because it needs to re-write the
      partition table and will refuse to do so unless there is a backup. This
      ensures that GPT backup headers are written to the end of the disk.
      echo "w" | fdisk ${MENDER_STORAGE_DEVICE}

       Disk expansion was working properly prior to the introduction of this line?
      I now get the following error:
      The number of cylinders for this disk is set to 240448.
      There is nothing wrong with that, but this is larger than 1024,
      and could in certain setups cause problems with:

      1. software that runs at boot time (e.g., old versions of LILO)
      2. booting and partitioning software from other OSs
        (e.g., DOS FDISK, OS/2 FDISK)

      Command (m for help): The partition table has been altered.
      Calling ioctl() to re-read partition table
      fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy

      As a fix for those systems that did not have an issue previously can we suppress the error caused by this line so that the disk expansion can proceed as was previously working?
      When I suppress the error caused by:

      echo "w" | fdisk ${MENDER_STORAGE_DEVICE}

      {all works as it previously did.




            • Assignee:
              Ossian Ossian Riday
            • Votes:
              1 Vote for this issue
              3 Start watching this issue


              • Created:

                Summary Panel