-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to Extend Data Partition After Resizing RootFS #35
Comments
I actually like your idea with the fifth partition. AFAIK the Raspberry Pi bootloader does support an MBR/GPT hybrid partition table setup. With a GPT partition table you can go beyond 4 partitions. The Home Assistant community also shared some obstacles they encountered with the GPT setup (along with how they removed those obstacles). Another possibility would be to boot into an initial ramdisk and do the partition resizing and moving from there. However, I personally prefer your approach of using 5 partitions. |
I have now developed a new approach. Initial layout:
Final layout:
To implement this approach, I need to:
Currently, this approach appears to be working well. I will share it soon in a fork. |
…so cm5 does boot - removed unused file from list in generate-archives - copy a modified boot.spec.rpi5.arm64 to image, which includes all necessary dtbo files Related-to: lueschem#35
The rootfs partitions are now shifted from p3/p4 to p2/p3 and the data partition is created on the first boot and allocating the remaining space. Related to lueschem#35 **Changed from:** +------------+----------+--------+---------------------+ | p1 | p2 | p3 | (unallocated) | +------------+----------+--------+---------------------+ ^ Boot ^ /data ^ RootFS --> first boot +-------------+-----------------------+---------------+--------+ | p1 | p2 (extended) | p3 | p4 | +-------------+-----------------------+---------------+--------+ ^ Boot ^ /data ^ RootFS_A ^ RootFS_B **to:** +------------+--------+---------------------+ | p1 | p2 | (unallocated) | +------------+--------+---------------------+ ^ Boot ^ RootFS --> first boot +-------------+------------------+---------------+--------------+ | p1 | p2 | p3 |p4 (extended) | +-------------+------------------+---------------+--------------+ ^ Boot ^ RootFS_A ^ RootFS_B ^ /data
Hey there,
I need a modification to the resizing script for my application. Specifically, I want the data partition (p2) to occupy the unallocated space after:
Here is the initial layout:
And here is the desired layout:
My initial idea was to create a fifth primary partition, but that isn’t possible due to the partition limit. Directly extending p2 also appears non-trivial, since it currently overlaps with p3.
Does anyone have a suggestion for how to solve this?
Thank you in advance for any help!
Best regards,
Georg
The text was updated successfully, but these errors were encountered: