Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


resize_rootfs_raspberrypi

Raspbian - resize rootfs

  • As root.
    fdisk /dev/mmcblk0
  • Delete the second partition /dev/mmcblk0p2
    d
    2
  • Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk
    n
    p
    2
    enter
    enter
  • Save and exit fdisk.
    w
  • Now reboot. Once rebooted:
    resize2fs /dev/mmcblk0p2
resize_rootfs_raspberrypi.txt · Last modified: 2014/08/27 19:41 by admin