# Upgrade and replacement of MENDER\_PARTITION\_ALIGNMENT\_KB variable

**URL:** <https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676>\
**Category:** General Discussions\
**Tags:** yocto, rocko, thud, upgrade, mender-client\
**Created:** [June 7, 2019, 2:50am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676 "2019-06-07T02:50:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmmenna](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kmmenna/32/272_2.png) [@kmmenna](https://hub.mender.io/u/kmmenna)\
**Post date:** [June 7, 2019, 2:50am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/1 "2019-06-07T02:50:15Z")

</div>

Hi everyone, it’s my first topic here. I would like to thanks for all people involved in Mender Project first, and request your help in my case.

I need to upgrade thousands of devices originally using mender 1.5 for the most recent version of Mender and Yocto(currently using Rocko version). I have tried upgrade, but when I have upgraded Replacing the variable `MENDER_PARTITION_ALIGNMENT_KB` for the new variable `MENDER_PARTITION_ALIGNMENT` the device have broken I think this is because I don’t understood how replace it, which value.

Actually I use the value `MENDER_PARTITION_ALIGNMENT_KB = "8192"` anyone can help me to know what value use for keep the alignment of partitions after the upgrade?

Sorry by my english, and thank you for the help.

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [June 7, 2019, 5:50am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/2 "2019-06-07T05:50:52Z")

</div>

According to the Mender 1.5 document - [https://docs.mender.io/1.5/artifacts/variables#mender\_partition\_alignment\_kb](https://docs.mender.io/1.5/artifacts/variables#mender_partition_alignment_kb)

> Alignment of partitions used when building partitioned images, expressed in **kiB**. Default value is `8192` .

But when it comes to Mender 1.7 document - [https://docs.mender.io/1.7/artifacts/yocto-project/variables#mender\_partition\_alignment](https://docs.mender.io/1.7/artifacts/yocto-project/variables#mender_partition_alignment)

> Alignment of partitions used when building partitioned images, expressed in **bytes**. Note that this is not always a whole number of KiB, particularly when the storage device is a UBI volume.

Hence, could you please let us know, whether you have converted the value from KiB to bytes representation while use the latest one? 🙂

---

<div class="post-metadata">

**Author:** ![kmmenna](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kmmenna/32/272_2.png) [@kmmenna](https://hub.mender.io/u/kmmenna)\
**Post date:** [June 8, 2019, 3:35am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/3 "2019-06-08T03:35:15Z")

</div>

Hi, in the case a had used `MENDER_PARTITION_ALIGNMENT = "8388608"`.

Thanks

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [June 8, 2019, 5:05am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/4 "2019-06-08T05:05:24Z")

</div>

Whether this change solves the issue? If yes, then please [mark the reply as solution](https://hub.mender.io/t/marking-a-reply-as-the-solution/247) so that, other people also find it helpful 🙂

---

<div class="post-metadata">

**Author:** ![kmmenna](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kmmenna/32/272_2.png) [@kmmenna](https://hub.mender.io/u/kmmenna)\
**Post date:** [June 15, 2019, 7:25pm UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/5 "2019-06-15T19:25:43Z")

</div>

No solve, I tried with this value but de partitions with yocto rocko are diferente of yocto thud and when I used the new artifact to update an old device, the device broken.

Any one has a ideia of why this diference in the partitions? technically the variables has the same value.

Thanks

---

<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:** [June 17, 2019, 6:53am UTC](https://hub.mender.io/t/upgrade-and-replacement-of-mender-partition-alignment-kb-variable/676/6 "2019-06-17T06:53:26Z")

</div>

You will need to provide more details for us to be able to comment.

You say that the partitions are different, how are they different?

What does the “device broken” mean and how does it break? When provisioning with `sdimg` or when doing an update using `mender` Artifacts?
