{"id":14316,"date":"2026-02-19T16:00:59","date_gmt":"2026-02-19T07:00:59","guid":{"rendered":"https:\/\/pilink.jp\/?p=14316"},"modified":"2026-02-19T16:00:59","modified_gmt":"2026-02-19T07:00:59","slug":"r5-partitioning","status":"publish","type":"post","link":"https:\/\/pilink.jp\/en\/r5-partitioning\/","title":{"rendered":"How to split the partition where the OS is installed"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>Partitions on external media can be modified while the system is running.<br\/>However, the partition that the OS is currently running from cannot be modified directly.<br\/>You must access it from another system.<\/p>\n\n\n\n<p>Here, the OS is written in Raspberry Pi Imager for use with Raspberry Pi devices such as Raspberry Pi 5 and CM5.<br\/>The same partitioning procedure can be used for the Raspberry Pi OS as well as Ubuntu Desktop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Split into partitions<\/h2>\n\n\n\n<p>Instead of partitioning from scratch, write the OS as usual with the Raspberry Pi Imager.<br\/>Another partition is created after startup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Raspberry Pi OS Write<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"594\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios.webp\" alt=\"\" class=\"wp-image-14269\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios.webp 792w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios-300x225.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios-768x576.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios-370x278.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios-540x405.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/rpi-imager-install-pios-600x450.webp 600w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<p>Activate the written microSD card or other device as usual.<br\/>Once activated on the Raspberry Pi, it internally expands the area and the initial setup runs.<br\/>It doesn&#8217;t change anything visually, but it is important.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Update after startup<\/h3>\n\n\n\n<p>Once activated, you will see an update notice on your desktop to update &amp; upgrade.<\/p>\n\n\n\n<p>Then, exit and remove the microSD card.<br\/>This is because we will be working on creating partitions on another machine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(2) Resizing and creating new partitions<\/h3>\n\n\n\n<p><strong>*This section must be worked on a separate machine.<\/strong><\/p>\n\n\n\n<p>Why? The reason for reconnecting to another machine is that the area containing the running OS cannot be resized or edited. Therefore, another boot path must be secured, such as USB booting, either on a different machine or on the same machine.<\/p>\n\n\n\n<p>As you can see, when I try to manipulate the partition on the Raspberry Pi 5 side, it is grayed out and cannot be changed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-1024x576.webp\" alt=\"\" class=\"wp-image-14273\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-1024x576.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-300x169.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-768x432.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-370x208.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-540x304.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own-600x338.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-dont-change-own.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The following four patterns can be assumed as examples of environments for different machines to operate partitions.<\/p>\n\n\n\n<p>Example of partitioning operation: <br\/>1. Boot GParted Live from the USB memory installed on your computer (Windows \/ Intel Mac) 2. (Windows \/ Intel Mac) <br\/>2. Install GParted Live on a PC with Linux installed (Linux native). (Linux) <br\/>3. Install Ubuntu using virtual software (UTM, etc.) and work with the standard Disks application, etc. (Windows\/Linux) <br\/>4. Write another Raspberry Pi OS to a USB memory stick, boot it, insert a microSD card, and work. (Raspberry Pi)<\/p>\n\n\n\n<p>Apple Silicon Macs are not eligible because GParted Live cannot be activated.<br\/>*Only methods 2 or 4 are supported for partition operation of eMMC-equipped models such as CM4\/CM5.<\/p>\n\n\n\n<p>The third one may seem a bit complicated. <br\/>Since the Raspberry Pi is USB bootable, you can write another Raspberry Pi OS to a USB flash drive and boot from that. Gparted is not Live.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MicroSD card with Raspberry Pi OS on it (the side to be partitioned)<\/li>\n\n\n\n<li>USB flash drive with Raspberry Pi OS (Gparted installed)<\/li>\n<\/ul>\n\n\n\n<p>We also tried UTM, and Gparted was unable to do so due to a glitch in timing, but we were able to do so with the standard tool, Disks.<br\/>(macOS 26 + UTM + Ubuntu 25.10 environment)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"700\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-1024x700.webp\" alt=\"\" class=\"wp-image-14277\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-1024x700.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-300x205.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-768x525.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-370x253.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-540x369.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks-600x410.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/utm-ubuntu2510-disks.webp 1392w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Since virtualization is less reliable, we would like to have a separate Linux-based PC.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Partitioning<\/h3>\n\n\n\n<p>The partitions initially look like this<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-1024x576.webp\" alt=\"\" class=\"wp-image-14281\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-1024x576.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-300x169.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-768x432.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-370x208.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-540x304.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout-600x338.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-1st-layout.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Divide this \/rootfs into two parts.<br\/>In fact, it is divided by shrinking the existing partition from the beginning to create free space and then creating a new partition on it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"404\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-1024x404.webp\" alt=\"\" class=\"wp-image-14285\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-1024x404.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-300x118.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-768x303.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-370x146.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-540x213.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new-600x237.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-resize-new.webp 1347w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>&#8211; Shrink 10GB backward from rootfs(p2) <br\/>&#8211; Create data(p3) in the free space<\/p>\n\n\n\n<p>Here is a screen shot of the Ubuntu tool Disks.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"394\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4.webp\" alt=\"\" class=\"wp-image-14289\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4.webp 701w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4-300x169.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4-370x208.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4-540x304.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-4-600x337.webp 600w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/figure>\n\n\n\n<p>I set it at 10,240 MiB since it is 10 GB.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"364\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-1024x364.webp\" alt=\"\" class=\"wp-image-14293\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-1024x364.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-300x107.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-768x273.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-370x132.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-540x192.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions-600x214.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/gparted-split-partitions.webp 1495w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"700\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-1024x700.webp\" alt=\"\" class=\"wp-image-14297\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-1024x700.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-300x205.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-768x525.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-370x253.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-540x369.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2-600x410.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2026\/02\/ubuntu-disks-2.webp 1392w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The newly divided partition should be prepared in ext4 for Linux.<\/p>\n\n\n\n<p>The division is now complete.<br\/>Put it back into the Raspberry Pi again, boot it up and check it.<\/p>\n\n\n\n<p><code>lsblk<\/code>command, <code>df -h<\/code>command, etc. are easy to understand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Raspberry Pi Compute Module system<\/h3>\n\n\n\n<p>The eMMC of the Raspberry Pi Compute Module system, which is used in the industrial Raspberry Pi, runs rpiboot and recognizes it as must storage.<\/p>\n\n\n\n<p>However, the eMMC cannot be mounted in a Gparted Live environment because rpiboot cannot be performed.<br\/>Therefore, a separate device for the Linux environment is prepared and operated.<\/p>\n\n\n\n<p>In this case, we worked on a PC with Linux Mint and Ubuntu 25.10 on UTM on macOS.<br\/>A native Linux environment is required, either on a real machine or virtualized.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium is-resized\"><a href=\"https:\/\/raspida.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-300x300.png\" alt=\"\" class=\"wp-image-6246\" style=\"width:150px\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-300x300.png 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-600x600.png 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-100x100.png 100w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-150x150.png 150w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-370x370.png 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-540x540.png 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile.png 759w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:70%\">\n<p>Article contributed by Raspida<\/p>\n\n\n\n<p>Raspberry Pi information site that even non-engineers can enjoy using <a href=\"https:\/\/raspida.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong> raspida.com<\/strong><\/a> a Raspberry Pi information site that even non-engineers can enjoy and handle. He also contributes <a href=\"https:\/\/pilink.jp\/en\/technical-blog\/\" data-type=\"page\" data-id=\"4315\">technical blog articles<\/a> to the PiLink site on the Raspberry Pi for industrial use.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n<\/div>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Partitions on external media can be modified while the system is running.However, the partition that the OS is currently running from cannot be modified directly.You must access it from another system. Here, the OS is written in Raspberry Pi Imager for use with Raspberry Pi devices such as Raspberry Pi 5 and CM5.The same partitioning procedure can be used for the Raspberry Pi OS as well as Ubuntu Desktop. Split into partitions Instead of partitioning from scratch, write the OS as usual with the Raspberry Pi Imager.Another partition is created after startup. Raspberry Pi OS Write Activate the written microSD card or other device as usual.Once activated on the Raspberry&hellip;<\/p>\n","protected":false},"author":6,"featured_media":14309,"comment_status":"closed","ping_status":"closed","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[87],"tags":[249,384],"class_list":["post-14316","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","tag-cm5-en","tag-os-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/14316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/comments?post=14316"}],"version-history":[{"count":2,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/14316\/revisions"}],"predecessor-version":[{"id":14318,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/14316\/revisions\/14318"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/media\/14309"}],"wp:attachment":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/media?parent=14316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/categories?post=14316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/tags?post=14316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}