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
-
Now reboot. Once rebooted:
resize2fs /dev/mmcblk0p2
resize_rootfs_raspberrypi.txt · Last modified: 2021/10/09 15:14 (external edit)