# \[HowTo\]\[Modding\] Homey Pro (Early 2023) - Resize user Partition on eMMC

**URL:** <https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591>\
**Category:** Questions & Help\
**Tags:** homey-pro, homey-pro-2023, modding, howto\
**Created:** [June 2, 2023, 10:20pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591 "2023-06-02T22:20:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 2, 2023, 10:20pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/1 "2023-06-02T22:20:26Z")

</div>

This topic describes how I resized my user partition in my Modded Homey Pro (Early 2023)  
This was necessary (because I wanted 😉 ) as the Replaced CM4 Raspberry Pi Compute module I placed had more Flash memory than the Default 8 GB eMMC Flash.

> Modding of Homey voids the warranty and can have unforeseen side effects! Be carefully and know What you do.  
> Bigger Flash storage can (will) have impact on the size and duration of Backup and the Cloud-backend of Homey’s Backup. Other internal processes could have different behavior or still have limitations.

Special Thanks to @robertklep @Sharkys @spkesDE for the hints,

# Homey Pro (Early 2023) CM4 **1** 08032 Mod

I modified my Homey Pro (Early 2023) with a CM4 **1** 08032 module, just as others described.  
In short:

- Order a **CM4108032** Raspberry Pi Compute Module 4, BCM2711, ARM Cortex-A72, 8GB RAM, 32GB EMMC with Wifi
- Create a Homey Offline Backup using the USB Tool [My devices | Homey](https://homey.app/account/devices/)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/6/46cea7cebe8349d0ff131be77c4210110b17526c.png)
- Open Homey from the bottom 4 screws and carefully un-screw the 4 nut’s to remove the cooling block.
- Carefully lift the old CM4 out of the socket. (I left the blot’s in the cariër print )
- Place the new CM4 and click it in the CM4 socket.
- Restore Homey’s Offline Backup using the USB Tool
- I placed a slight higher CM4 Aluminium Heatsink same as **Insert Link here…** with new Thermal Pads
- Test Homey Pro … (Homey is running now a couple of days, just to verify that I don’t see side effects.)

It works perfectly, only the feeling is the 11mm Aluminium Heatsink is just ~ 0,5 mm to High, So Home’s Case is still open.

# Homey Pro (Early 2023) - Resize User partition

To resize the partition, it can be done from inside Homey’s Linux but we don’t have Access there. (Officially) Therefore I decided that I wanted to resize from the outside.

Robert tipped to use the [GitHub - raspberrypi/usbboot: Raspberry Pi USB booting code, moved from tools repository](https://github.com/raspberrypi/usbboot) and connect the CM4 as a Mass storage device to modify the partition.

As I am a Windows kid ( 😂 ) and didn’t get is to work on my Windows Laptop I decided to use a Raspberry VM. (But don’t trust me on my Linux skills, you are warned.)

## Preparing

- Download [Raspberry Pi Desktop](https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-desktop)
- I already had VMware Workstation installed, and created a new VM for Linux, installed default and configured it with a USB 3.1 controller (it was 2.0, don’t know why, it didn’t work)
- Unplugged Homey, laid her upside down and pressed the pin while putting a short USB-c cable from Laptop to Homey. At Orange loading I Released and Connected the Discovered BCM2711 device from Windows to the Raspberry Pi Virtual machine.

As I saw several new devices (auto) mounted I opened the terminal to see what was presented.

### Investigation

df show the free space of mounted disk/volumes /dev/sdb\* are the Partitions on the CM4’s eMMC Flash (Homey’s filesystems)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e2be743c126c7f9bbba05989b846c3d0d5025e1e.png)  
It is the /dev/sdb9 device that is now the ~ 2.7 GB user partition

fdisk -l (list) show the partition information of the selected device,

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/5/05ffe816a5069f4d1ebe35ed42c2b14744deeede.png)

If you would try to extend the sdb9 partition immediately you will get an error about overlapping partitions. So to understand you need to know how the partition is defined.  
A standard MBR can have a maximum of 4 partitions, to have more you need extended partitions.

Below graphical in 3 steps from what it was - to what we want: (Size is not in scale)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/85c3a4b0451459742ce980be7d7aca67dba9e555.png)

- The new Disk (Black) is larger and has Free Space on the end,
- First (Dark Grey) AUTOBOOT partition #1
- Second is the #2 (Light Grey) Extended Partition up to the (old) end of the disk
- #5 and #6 are the BOOTA and ROOTA pair.
- #7 and #8 are the BOOTB and ROOTB pair.
- #9 Is the User Partition that needs to be extended.

So Actions:

- first Extend the /dev/sdb2 partition to the end of the disk
- then Extend the /dev/sdb9 partition
- Verify
- Extend the Linux filesystem to make use of all available partitioned space.
- test …

Using parted , it need the device, what to do (resizepart) the partition number and the new end. Lucky it knows that 100% is the end of the disk 😉 So no calculation necessary.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/a/da1d410b4f73d4bd94c9f2915ef89000d44c3471.png)

Verify

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/9/5986edb5f40f932b57f555a0522d8bba13eeafef.png)  
The Extended Partition is resized to ~29.1 GB

Next

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c05affb0f8ffd3fb0773c86f13a1b1e83460591d.png)  
That also looks good, 24.6 GB space reserved for /dev/sdb9 aka Userdata

Resizing the Filesystem complained it was mounted so I firest un-mounted and Checked the filesystem.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1b4d07c77e81a33dc4f7c0e2fa9b0781092273fc.png)

Then the Check before starting Homey:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/eaf0c898e98d80e66d7e386990e0fd895e4d96cc.png)

Everything looks good, so there She go’s …

After Restarting I got a Update notification as there is a new Firmware for Homey (at this writing only in AATP) so after verifying Homey I immediately installed the update to verify the new Partitioning is not overwritten in updates:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0c5ae052049b8525dafbda0bfbabe7ec7c01a3e.png)  
And as you see, also after Updating 22,9 GB free of 24,57 GB 😍

## Recap the commands With Comments

in short the commands (SU or SUDO if necessary to execute the privileged commands 😉 )

> But beware executing just this on a system with other mappings can F\*ck-up your system!

```auto
# From my Raspberry Desktop 2022-07-01-raspios-bullseye-i386.iso

# Check with df the devices / partitions where Partition USER is. For me it was Device /dev/sdb and USER Partition = 9 so /dev/sdb 
> df
# and Check (list) with fdisk -l the partions... same as above. for me partion 2 is the Extended partion! so /dev/sdb2 = Exteded and /dev/sdb9 = USER 
> fdisk -l /dev/sdb
# If the filesystem is mounted unmount it (as in my case it was automatically mounted and resize2fs needs it un-mounted)
> umount /media/user/USER 
# Extend the Extended partition to 100% with parted resizepart 
> parted /dev/sdb resizepart 2 100%
# Extend the EXT4 USER partition 9 to 0 100% 
> parted /dev/sdb resizepart 9 100%
# Check the filesystem 
> e2fsck -f /dev/sdb9 
# I answered NO on changes as I leave it to Homey''s OS to change in case of Issue''s 
# Then resize the FS 
> resize2fs /dev/sdb9 

```

Additional testing:

- ✅ Tested a Firmaware upgrade (See Above): OK
- ✅ Tested a (online) Backup of Homey and that also worked OK,
- ✅ Reset this Modded Homey Pro (Early 2023) - CM4108032 [to Factory Defaults.](https://support.homey.app/hc/en-us/articles/7261843930396-Resetting-Homey-Pro-Early-2023-to-Factory-Settings) Still 24.57GB Total Storage!
- ✅ I tested Resetting with Restoring an Modded-Backup (Post Resize.) Works OK.
- ✅ I tested Resetting with Restoring an Original-Backup (Pre Resize.) Works OK.

Todo:

- …

Edit: Updated 20230603-23u31 with extra Tests.  
Edit: Updated 20230604-17u48 with Recap and the actual Commands I used.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 2, 2023, 10:20pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/2 "2023-06-02T22:20:37Z")

</div>

My Total and Free space according to [sysInternals](https://homey.app/a/com.sysInternals/) before and after Resizing.

 ![Screenshot_20230602_214601_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee2151152d71d2fe527d4160247da13957337bdc.jpeg) ![Screenshot_20230602_215529_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c8e23fa7eea7462f99eb88007396e970ec0c9b4b.jpeg)

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [June 3, 2023, 3:13am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/3 "2023-06-03T03:13:42Z")

</div>

> [@Dijker](#):
>
> - Extend the /dev/sdb9 partition
> - Verify
> - Extend the Linux filesystem to make use of all available partitioned space.
> - test …

Todo: See what happens after you update Homey (suggestion) 😉

Just ordered a CM410832 too 👍

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [June 3, 2023, 5:57am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/4 "2023-06-03T05:57:11Z")

</div>

Cograts 🙂  
Have you tested also USB backup ?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 6:45am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/5 "2023-06-03T06:45:27Z")

</div>

> [@Chris\_nl](#):
>
> See what happens after you update Homey (suggestion) 😉

> [@Dijker](#):
>
> After Restarting I got a Update notification as there is a new Firmware for Homey (at this writing only in AATP)

Already Updated from rc111 to rc112

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 7:07am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/6 "2023-06-03T07:07:53Z")

</div>

> [@Sharkys](#):
>
> Have you tested also USB backup ?

Not yet, good point.

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 3, 2023, 11:17am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/7 "2023-06-03T11:17:10Z")

</div>

Wow, really nice! Is the backup option (read from USB) Also working until 100%?

Many thanks for sharing!

Ps. The **CM4008032** (as described) will not work in homey as far as I know. You need the WiFi option if I am right!

Edit; if the backup reading will get stuck between 90-100%, it is possible to try to rename the swap file and restore that. But… when 8-32 GB storage is unused. That will not be a problem. But if we include that storage to the user partition, it can be a problem ☺

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 12:51pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/8 "2023-06-03T12:51:30Z")

</div>

> [@Ranney](#):
>
> Ps. The **CM4008032** (as described) will not work in homey as far as I know. You need the WiFi option if I am right!

Sorry, typo in the late evening, you are right, it needs to be a CM4108032 ( so 4 **1** as with wifi and ending 008 or higer for the eMMC Flash)

---

<div class="post-metadata">

**Author:** ![Robin\_De\_Lange](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_de_lange/32/25173_2.png) [@Robin\_De\_Lange](https://community.homey.app/u/Robin_De_Lange)\
**Post date:** [June 3, 2023, 5:28pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/9 "2023-06-03T17:28:48Z")

</div>

can this also be done before restoring homey’s back up on it? so first this part and that the homey part

and firmware for AATP??? never heard of 🤣

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 6:09pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/10 "2023-06-03T18:09:02Z")

</div>

> [@Robin\_De\_Lange](#):
>
> firmware for AATP??? never heard of 🤣

Like here

> [@\[Links\] Athom websites and user accounts](https://community.homey.app/t/links-athom-websites-and-user-accounts/43/1):
>
> **Athom Alpha Tester Program**  
> The purpose of this program is to give developers a chance to adjust their Apps to the latest firmware, before the firmware is released. It is important to be aware of the fact that the updates you will be receiving are very experimental, receive very limited QA testing and can possibly brick your Homey. Therefore it is not recommended to use the AATP updates on a Homey that you are heavily dependent on. It is always possible to unsubscribe from this channel and revert back to the Experimental channel.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 6:31pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/11 "2023-06-03T18:31:03Z")

</div>

> [@Robin\_De\_Lange](#):
>
> can this also be done before restoring homey’s back up on it?

Probably not as the restore is a restore of a disk with partitions afaik. The new CM4 didn’t have these partitions afaik.

---

<div class="post-metadata">

**Author:** ![Wout-1976](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout-1976/32/175413_2.png) [@Wout-1976](https://community.homey.app/u/Wout-1976)\
**Post date:** [June 3, 2023, 7:49pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/12 "2023-06-03T19:49:12Z")

</div>

Any tips where to buy the:

**CM4108032** Raspberry Pi Compute Module 4, BCM2711, ARM Cortex-A72, 8GB RAM, 32GB EMMC with Wifi?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 8:24pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/13 "2023-06-03T20:24:06Z")

</div>

> [@Wout-1976](#):
>
> Any tips where to buy

> **[Google Search](https://www.google.com/search?q=CM4108032&tbm=shop)**

Always check that you order the correct model (and not one Without WiFi , with Less RAM or with Less Flash)  
And I guess not many people can say: This shop/supplier is both Fast, Cheap and trustworthy.

Mine was send ~15 days after order (Therefore not recommended by me now. ) … and I received it ~31 days after placing order. (14 days from China, That’s OK.) and had to pay 9,51€ for Import-Handling-cost (No 3,21 Tax was requested 😂 + 6€ for PostNL )

Now (today) it is in same shop Same part is 130 Euro higher than what I payed and they want 6 euro extra for sending.

---

<div class="post-metadata">

**Author:** ![Wout-1976](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout-1976/32/175413_2.png) [@Wout-1976](https://community.homey.app/u/Wout-1976)\
**Post date:** [June 3, 2023, 8:30pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/14 "2023-06-03T20:30:48Z")

</div>

Thanks! But i think i will wait till the prices drop.  
Very expensive at this moment or not in stock.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 3, 2023, 9:32pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/15 "2023-06-03T21:32:40Z")

</div>

> [@Dijker](#):
>
> Additional testing:
> 
> - ✅ Tested a Firmaware upgrade (See Above): OK
> - ✅ Tested a (online) Backup of Homey and that also worked OK,
> - ✅ Reset this Modded Homey Pro (Early 2023) - CM4108032 [to Factory Defaults.](https://support.homey.app/hc/en-us/articles/7261843930396-Resetting-Homey-Pro-Early-2023-to-Factory-Settings) Still 24.57GB Total Storage!
> - ✅ I tested Resetting with Restoring an Modded-Backup (Post Resize.) Works OK.
> - ✅ I tested Resetting with Restoring an Original-Backup (Pre Resize.) Works OK.

Edit: Updated 20230603-23u31 with extra Tests.

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 4, 2023, 5:49am UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/16 "2023-06-04T05:49:35Z")

</div>

Really nice and looking forward to try this om my homey too!

3 questions;

1. Is there an easy way to make a backup/restore on this way too? (With a computer). Not talking about the default USB\<\>website tool because this is never completing successfully and my homey is in ‘production’ ☺. Maybe an ‘read to ISO’ or ‘read to IMG’ option?
2. Is this also possible on MacOS?
3. Is it possible to make a list of the exact commands you use to complete the operation? For me Linux is something I use only for my 3D printers 🙈

Many thanks for help and this great mod!!

---

<div class="post-metadata">

**Author:** ![Robin\_De\_Lange](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_de_lange/32/25173_2.png) [@Robin\_De\_Lange](https://community.homey.app/u/Robin_De_Lange)\
**Post date:** [June 4, 2023, 2:16pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/17 "2023-06-04T14:16:51Z")

</div>

> [@Ranney](#):
>
> - Is this also possible on MacOS?
> - Is it possible to make a list of the exact commands you use to complete the operation?

Like to see this also 🙏

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 4, 2023, 2:28pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/18 "2023-06-04T14:28:01Z")

</div>

> [@Ranney](#):
>
> Is there an easy way to make a backup/restore on this way too? (With a computer). Not talking about the default USB\<\>website tool because this is never completing successfully and my homey is in ‘production’ ☺. Maybe an ‘read to ISO’ or ‘read to IMG’ option?

I guess not,  
You ask easy… Athom made it easy with the website but is depending on 100s of different os installations wit different drivers. If you want it done using tooling it is still depending on that os and the installed driver’s.

You also need to restart Homey connecting it to a  
PC so in my opinion this is just disaster recovery.  
If it doesn’t finish because if issues on your pc you probably need to fix it on your pc. (Alreadytried another PC?)

For normal backups You probably are better off with the cloud backup.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 4, 2023, 2:35pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/19 "2023-06-04T14:35:06Z")

</div>

> [@Ranney](#):
>
> Is this also possible on MacOS?

Probably Yes,

1. VMware Workstation is on a mac VMware fusion. So i guess you would be able to run the Raspberry Desktop in a VM like I did.
2. afaik macOS is also a sort of linux, so find the correct drivers and figure out the device names it gets on MacOS to execute the above commands to extend the partitions and filesystem.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 4, 2023, 3:00pm UTC](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591/20 "2023-06-04T15:00:36Z")

</div>

> [@Dijker](#):
>
> afaik macOS is also a sort of linux

Just like a Fiat Panda is a “sort of Tesla” just because they are both cars 😛

[Next page](https://community.homey.app/t/howto-modding-homey-pro-early-2023-resize-user-partition-on-emmc/81591.md?page=2)
