Orange Pi resize file system

Check partition name

$ sudo fdisk -l

Print partition information and Check first sector of second partition

$ sudo fdisk -c /dev/mmcblk0

input “p”

Delete target partition and Create partition based on before partition information

input “d” – input “2” – input “n” – Input “p” – input “p” – input “2” – input “first sector” – input “enter”


$ sudo shutdown -r now

Resize file system

$ sudo resize2fs /dev/mmcblk0p2

$ df -h


Leave a Reply

Your email address will not be published. Required fields are marked *