Ben's notes

Linux, Unix, network, radio...

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: 2021/10/09 15:14 by 127.0.0.1