Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save peterhellberg/5570144 to your computer and use it in GitHub Desktop.

Select an option

Save peterhellberg/5570144 to your computer and use it in GitHub Desktop.
Tips and tricks for running Arch Linux on the Raspberry Pi

Expand rootfs (to use full SD card capacity)

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 partition that fills the disk
n
p
2
enter
enter
# Save and exit fdisk:
w

Now reboot

reboot

Once rebooted

resize2fs /dev/mmcblk0p2

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

Source: http://sourceforge.net/p/domoticz/wiki/Preparing%20a%20Raspberry%20PI%20(Arch%20Linux)%20for%20Domoticz/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment