# Partition with custom mountpoint using MENDER\_EXTRA\_PARTS

**URL:** <https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [May 31, 2021, 6:21pm UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697 "2021-05-31T18:21:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![malveo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/malveo/32/704_2.png) [@malveo](https://hub.mender.io/u/malveo)\
**Post date:** [May 31, 2021, 6:21pm UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697/1 "2021-05-31T18:21:10Z")

</div>

Hello Folks -

It is possible to leverage MENDER\_EXTRA\_PARTS and MENDER\_EXTRA\_PARTS\_FSTAB to customize the mount point for additional images, or MENDER\_EXTRA\_PARTS\_FSTAB is only for the “options” section of the fstab entry?

Thanks.

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 1, 2021, 12:42pm UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697/2 "2021-06-01T12:42:51Z")

</div>

```auto
# Example MENDER_EXTRA_PARTS usage:
# Extra partitions to create after the data parition
# MENDER_EXTRA_PARTS = "part1 part2"
#
# Size (in MB) of specified extra partition
# MENDER_EXTRA_PARTS_SIZES_MB[part1] = "64"
# MENDER_EXTRA_PARTS_SIZES_MB[part2] = "128"
#
# FSTAB options of specified extra partition (optional)
# MENDER_EXTRA_PARTS_FSTAB[part1] = "..."
# MENDER_EXTRA_PARTS_FSTAB[part2] = "..."

```

Does this make sense?

---

<div class="post-metadata">

**Author:** ![malveo](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/malveo/32/704_2.png) [@malveo](https://hub.mender.io/u/malveo)\
**Post date:** [June 1, 2021, 2:11pm UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697/3 "2021-06-01T14:11:48Z")

</div>

Hi @oleorhagen -

Totally make sense.

But I was looking for a way to specify a custom mount point, instead of /mnt/${label}

> <https://github.com/mendersoftware/meta-mender/blob/1dbb4b07a057045b4b60e26a5eefcac764abb7c4/meta-mender-core/classes/mender-setup-image.inc#L52>

Thank you

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 2, 2021, 7:40am UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697/4 "2021-06-02T07:40:15Z")

</div>

Hi @malveo

I’m not too familiar with the image code in `meta-mender`, but from what I gather (same as you it seems), there is no OOTB way to do this with the existing functionality if you want to mount it somewhere else.

It seems that you might not have to change too much though.

Do you want to take a stab at it?

---

<div class="post-metadata">

**Author:** ![nowls](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nowls](https://hub.mender.io/u/nowls)\
**Post date:** [April 29, 2024, 2:15pm UTC](https://hub.mender.io/t/partition-with-custom-mountpoint-using-mender-extra-parts/3697/5 "2024-04-29T14:15:13Z")

</div>

I added functionality to specify the mount location of extra partitions through the `MENDER_EXTRA_PARTS_MOUNT_LOCATIONS` variable. See [here](https://github.com/mendersoftware/meta-mender/pull/2089) for the implementation and [here](https://github.com/mendersoftware/mender-docs/pull/2352) for documentation PRs.
