# Mismatch between partition table and file system sizes

**URL:** <https://hub.mender.io/t/mismatch-between-partition-table-and-file-system-sizes/4857>\
**Category:** General Discussions\
**Created:** [April 14, 2022, 3:21am UTC](https://hub.mender.io/t/mismatch-between-partition-table-and-file-system-sizes/4857 "2022-04-14T03:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmrogp](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@lmrogp](https://hub.mender.io/u/lmrogp)\
**Post date:** [April 14, 2022, 3:21am UTC](https://hub.mender.io/t/mismatch-between-partition-table-and-file-system-sizes/4857/1 "2022-04-14T03:21:52Z")

</div>

I’ve seen this issue discussed but cannot find if it has been fixed in mender (convert or client). I mender converted a Debian image and the resulting root partition has an incorrect filesystem size. The disk info shows 8.3G root partitions, yet filesystem usage lists the active one as only 2.4G. Interestingly, the /data partition looks good:

```auto
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 119.1G 0 disk
├─mmcblk0p1 179:1 0 44M 0 part /uboot
├─mmcblk0p2 179:2 0 8.3G 0 part /
├─mmcblk0p3 179:3 0 8.3G 0 part
└─mmcblk0p4 179:4 0 102.5G 0 part /data

```

```auto
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.4G 1.7G 571M 75% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 12M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p4 101G 73M 96G 1% /data
/dev/mmcblk0p1 43M 18M 25M 42% /uboot
tmpfs 93M 0 93M 0% /run/user/1000

```

I did the conversion using mender-convert version 076f5e3, and my mender-client on the image is 3.0.0. Unfortunately I am limited to this version of the client, as my OS is Debian Stretch and it does not have dependencies that the newer client requires.

I know I can do a resize2fs to fix the mismatch, but would much prefer that mender create an image with matching partition and filesystem sizes. Has a solution been implemented for this issue? Or maybe there are mender-convert settings that could solve it? I’m concerned that even after fixing the active root partition with a resize2fs, a subsequent switch over to the passive partition would show the same problem.

Thx

---

<div class="post-metadata">

**Author:** ![JamesTann](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/jamestann/32/2274_2.png) [@JamesTann](https://hub.mender.io/u/JamesTann)\
**Post date:** [February 13, 2025, 5:03pm UTC](https://hub.mender.io/t/mismatch-between-partition-table-and-file-system-sizes/4857/2 "2025-02-13T17:03:15Z")

</div>

I think I am having [a similar issue](https://hub.mender.io/t/why-is-my-root-filesystem-so-much-smaller-than-my-root-partition/7563). Were you ever able to figure it out?

Edit: I was able to solve it and updated my post.
