Actually you can resize the disk while active in arch linux. might work for ubuntu, raspbian, debian and other linux based ones

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.

another method with parted
http://elinux.org/RPiResizeFlash_Partitions

sources: http://archlinuxarm.org/forum/viewtopic.php?f=31&t=3119

Easily deploy an SSD cloud server on @DigitalOcean in 55 seconds. Sign up using my link and receive $10 in credit
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence