Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
picore:resize [2025/05/05 16:38] – created rhermsenpicore:resize [2025/06/28 08:18] (current) rhermsen
Line 17: Line 17:
   * Delete the second partition with 'd'   * Delete the second partition with 'd'
  
-  * Create a new second partition with 'n' with same starting sector and higher ending sector+  * Create a new second partition with 'n' with same starting sector (StartLBA) and higher ending sector 
 +      * You might want to reserve some space (e.g. 1 or 2 GB) for swap space on devices with low amount of memory.\\ This is only needed if you expect to run out of memory e.g. during compiling a large program.\\ Normally this is not needed.
  
   * Below the old and new second partition below each other.   * Below the old and new second partition below each other.
Line 24: Line 25:
    /dev/mmcblk0p2   1023,3,16   1023,3,16    172032     204799       32768      16.0M   83   Linux    /dev/mmcblk0p2   1023,3,16   1023,3,16    172032     204799       32768      16.0M   83   Linux
    /dev/mmcblk0p2   1023,3,16   1023,3,16    172032     249737215    249565184  119G    83   Linux    /dev/mmcblk0p2   1023,3,16   1023,3,16    172032     249737215    249565184  119G    83   Linux
-   </code>+   </code>\\ You can delete (d) and re-create (n) the partition at this point if needed. 
    
  
   * Write the new created second partition with 'w'   * Write the new created second partition with 'w'
  
-  * sudo reboot+  * Reboot to use the new partition table. 
 +      * sudo reboot
  
-  * sudo resize2fs /dev/mmcblk0p2+  * Enlarge the second partition to the new size with: 
 +      * sudo resize2fs /dev/mmcblk0p2
  
-  * free +  * Verify the result with: 
- +      df -hT\\ To actually configure and use the swap partition a few additional steps are needed. Current swap size can be verified with: 
-  * df -hT+      - free
Print/export
QR Code
QR Code picore:resize (generated for current page)