Raspberry Pi: Re-sizing Arch Linux SD Card Patition

Having recently searched and found the solution for re-sizing your root filesystem size on a Raspberry pi under Arch Linux I discovered the following instructions to work:

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

Your main / partition should be the full size of the disk now.

One thought on “Raspberry Pi: Re-sizing Arch Linux SD Card Patition”

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>