# Mender switch root fs partitions?

**URL:** <https://hub.mender.io/t/mender-switch-root-fs-partitions/1479>\
**Category:** General Discussions\
**Created:** [January 29, 2020, 1:20am UTC](https://hub.mender.io/t/mender-switch-root-fs-partitions/1479 "2020-01-29T01:20:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [January 29, 2020, 7:52am UTC](https://hub.mender.io/t/mender-switch-root-fs-partitions/1479/2 "2020-01-29T07:52:00Z")

</div>

assuming your using uboot as your bootloader, on the device you can use fw-utils to change the uboot environment to switch between the active partitions from the operating system. Make sure you change both variables together and then reboot.

To make partition 1 the active partition:

fw\_setenv mender\_boot\_part 1  
fw\_setenv mender\_boot\_part\_hex 1

To make partition 2 the active partition:

fw\_setenv mender\_boot\_part 2  
fw\_setenv mender\_boot\_part\_hex 2

[https://developer.toradex.com/knowledge-base/u-boot-fw-utils](https://developer.toradex.com/knowledge-base/u-boot-fw-utils)

We manufacture our products with a gpio pin connected to a physical button that allows the customer to roll back to the previous partition if they are not happy for some reason with the new update.

You can also change these variables from within a uboot session before you boot the operating system.

---

_[View the full topic](https://hub.mender.io/t/mender-switch-root-fs-partitions/1479)._
