# Partition grow error on imx6UL EVK

**URL:** https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902
**Category:** General Discussions
**Tags:** yocto, freescale-imx6, nxp, warrior
**Created:** [May 12, 2020, 7:19am UTC](https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902 "2020-05-12T07:19:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![danie](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/danie/32/620_2.png) [@danie](https://hub.mender.io/u/danie)
#### Post date: [May 12, 2020, 7:19am UTC](https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902/1 "2020-05-12T07:19:50Z")

</div>

Hi,

I’m currently working on integrating mender into **iMX 6UL EVK** and I would like to know that the partition in iMX 8MQuad is compatible with iMX 6UL?

I’ve configured the `local.conf` as below,

```auto
MENDER_ARTIFACT_NAME = "release-1"
INHERIT += "mender-full"

MENDER_FEATURES_ENABLE_append = " mender-uboot mender-image-sd"
MENDER_FEATURES_DISABLE_append = " mender-grub mender-image-uefi"
MENDER_STORAGE_DEVICE = "/dev/mmcblk1"
MENDER_STORAGE_TOTAL_SIZE_MB = "7416" # 8 GB memory card

```

The following build log is pointing out the **errors in partitions** ,

```auto
FAILED Failed to start Mender ser…e to grow data partition size
See 'systemctl status mender-grow-data.service' for details.

DEPEND Dependency failed for /boot/efi
DEPEND Dependency failed for Local File Systems

DEPEND Dependency failed for /data
DEPEND Dependency failed for Grow File System on /data

```

After this the board **enters into emergency mode** and looping in there:

```auto
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
to boot into default mode.
Press Enter for maintenance
(or press Control-D to continue): random: crng init done

```

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [May 12, 2020, 7:22am UTC](https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902/2 "2020-05-12T07:22:00Z")

</div>

> [@danie](#):
>
> systemctl status mender-grow-data.service

Would be interesting to see the output of above.

You can also disable this feature with:

```auto
MENDER_FEATURES_DISABLE_append = " mender-growfs-data" 

```

---

<div class="post-metadata">

### Author: ![danie](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/danie/32/620_2.png) [@danie](https://hub.mender.io/u/danie)
#### Post date: [May 12, 2020, 4:04pm UTC](https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902/3 "2020-05-12T16:04:09Z")

</div>

Hey @mirzak ,

Hope you’re doing fine!

The output of `systemctl status mender-grow-data.service` is given as follows,

```auto
~ # systemctl status mender-grow-data.service
mender-grow-data.service - Mender service to grow data partition size
Loaded: loaded (/lib/systemd/system/mender-grow-data.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:19 UTC; 3min 27s ago
Process: 233 ExecStartPre=/bin/sh -c /bin/echo "w" | /sbin/fdisk /dev/mmcblk0 (code=exited, status=1/FAILURE)

Jan 01 00:00:19 imx6ulevk systemd[1]: Starting Mender service to grow data partition size...
Jan 01 00:00:19 imx6ulevk sh[233]: fdisk: can't open '/dev/mmcblk0'
Jan 01 00:00:19 imx6ulevk systemd[1]: mender-grow-data.service: Control process exited, code=exited, status=1/FAILURE
Jan 01 00:00:19 imx6ulevk systemd[1]: mender-grow-data.service: Failed with result 'exit-code'.
Jan 01 00:00:19 imx6ulevk systemd[1]: Failed to start Mender service to grow data partition size.
standard input

```

I would like to know the **role of mender-grow-data service**. And I’ll shortly update the build with mender-grow-data feature disabled.

_Meanwhile the [full log file](https://github.com/danie007/imx6/blob/master/imx6_mender_log20200512.txt) is attached for your further reference._

Thanks in advance.

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [May 13, 2020, 7:02pm UTC](https://hub.mender.io/t/partition-grow-error-on-imx6ul-evk/1902/4 "2020-05-13T19:02:27Z")

</div>

Hi @danie, the mender-grow-data.service is simply a wrapper around the [systemd growfs service](https://manpages.debian.org/testing/systemd/systemd-growfs.8.en.html). We basically make sure that the filesystem that is being expanded is the data partition since that is the latest one on the disk.

It seems that the service is trying to expand mmcblk0 rather than mmcblk1. There should be no difference between the iMX 8MQuad and i.MX 6UL partition support expect that the device names may be different. You are setting MENDER\_STORAGE\_DEVICE to /dev/mmcblk1 so the root of the issue appears to be, why is systemd-growfs attempting to gro /dev/mmcblk0 instead.

Drew
