piCore Resize Partition

For reference: http://www.tinycorelinux.net/12.x/aarch64/releases/RPi/README

  • sudo fdisk -u /dev/mmcblk0
  • Print the current partitions with 'p'
  • Make note of the starting and ending sectors of the second partition
  •    Device            StartCHS    EndCHS      StartLBA   EndLBA      Sectors   Size    Id   Type
       /dev/mmcblk0p2    1023,3,16   1023,3,16   172032     204799      32768     16.0M   83   Linux
       
  • Delete the second partition with 'd'
  • Create a new second partition with 'n' with same starting sector and higher ending sector
  • Below the old and new second partition below each other.
   Device           StartCHS    EndCHS       StartLBA   EndLBA       Sectors    Size    Id   Type
   /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
   
  • Write the new created second partition with 'w'
  • sudo reboot
  • sudo resize2fs /dev/mmcblk0p2
  • free
  • df -hT
Print/export
QR Code
QR Code picore:resize (generated for current page)