# Raspberry Pi OS update out of storage

**URL:** https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299
**Category:** General Discussions
**Tags:** mender-client, raspberry-pi-4
**Created:** [October 7, 2024, 3:10pm UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299 "2024-10-07T15:10:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amcdonald-ipa](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/amcdonald-ipa/32/2066_2.png) [@amcdonald-ipa](https://hub.mender.io/u/amcdonald-ipa)
#### Post date: [October 7, 2024, 3:10pm UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299/1 "2024-10-07T15:10:27Z")

</div>

I’ve been working on converting a customized Raspberry Pi OS 12 (bookworm, 32-bit) image using this “Convert your own image” procedure. I’ve been largely successful, but I’m encountering an issue when I try to deploy rootfs-image artifacts.

In short, I can convert an image, write the converted image to a microSD card, and boot a Raspberry Pi 4B exactly as expected. I then create rootfs-image update artifacts with small but obvious changes using `mender-artifact` following the “Create a Mender Artifact using the snapshot feature” procedure from [the docs](https://docs.mender.io/get-started/deploy-an-operating-system-update#step-3-create-a-mender-artifact-using-the-snapshot-feature). I can then upload the artifact to hosted Mender, which appears to create a release as expected. For reference, I am using the following versions in this workflow:

- `mender-convert` version 4.2.2
- `mender-artifact` version 3.11.2
- `mender-update` version 4.0.2

When I then try to deploy those images back to the same device (or another device using the same converted image), the deployment always fails with the error:

```auto
info: Update Module output (stderr): Input/output error: Reached size of the destination volume, source too big.

```

I’ve done a bit of experimentation, and I am able to achieve successful deployments _if and only if_ I configure `mender-convert` to use `MENDER_STORAGE_TOTAL_SIZE_MB` with a value that is _less than or equal to the default value (8192)._ Unfortunately that’s not a feasible solution for me; to the best of my knowledge, my current “golden image” requires `MENDER_STORAGE_TOTAL_SIZE_MB` to be greater than 8192.

Has anyone else tried a similar workflow with and have successfully deployed updates when using `MENDER_STORAGE_TOTAL_SIZE_MB` greater than 8192?

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [October 14, 2024, 9:47am UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299/2 "2024-10-14T09:47:27Z")

</div>

Hi @amcdonald-ipa,

That’s definitely unexpected - I have regularly used `MENDER_STORAGE_TOTAL_SIZE_MB` in the range of 24000 and more. Usually I don’t walk through the snapshot feature, so this is the only unknown here. As a quick check, does it also occur if you take the microSD card out of the device, `dd` it to a file and `mender-convert` from there?

On the counterpart, I’ll give the snapshot route a spin.

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [October 15, 2024, 8:40am UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299/3 "2024-10-15T08:40:04Z")

</div>

Hi @amcdonald-ipa

Thanks again for reporting the issue! Your question together with [Update Module output (stderr): No space left on device](https://hub.mender.io/t/update-module-output-stderr-no-space-left-on-device/7222) let us identify the probable root cause. We’re now working on the fix and releasing it. I will report back with more details no later than Thursday, Oct 17th.

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![amcdonald-ipa](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/amcdonald-ipa/32/2066_2.png) [@amcdonald-ipa](https://hub.mender.io/u/amcdonald-ipa)
#### Post date: [November 4, 2024, 7:35pm UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299/4 "2024-11-04T19:35:53Z")

</div>

@TheYoctoJester Thanks for the response Josef. Do you have any updates regarding this issue and/or availability of a fix?

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [November 5, 2024, 11:17am UTC](https://hub.mender.io/t/raspberry-pi-os-update-out-of-storage/7299/5 "2024-11-05T11:17:23Z")

</div>

Hi @amcdonald-ipa,

Yes and no. The fixes have been merged to the Mender Client and Mender Flash, which were both affected, but the release process of Mender Client is not done yet. So for a `mender-convert` based workflow, I don’t think there is a straightforwards work around at the moment. I’ll raise the topic internally and hopefully be back with news soon.

Greetz,  
Josef
