Skip to content

Instantly share code, notes, and snippets.

@dejanr
Last active December 14, 2015 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dejanr/5009036 to your computer and use it in GitHub Desktop.
Save dejanr/5009036 to your computer and use it in GitHub Desktop.
Rasspery pi resize openelec storage partition
cd /
touch /var/lock/xbmc.disabled
killall -9 xbmc.bin (XBMC will Close)
umount /storage
parted /dev/mmcblk0
unit s
p (make note of starting sector of partition 2)
rm 2
mkpart primary 258048 -1 (258048 is the starting sector of partition 2 you noted down earlier, add a space and -1)
quit parted
e2fsck -f /dev/mmcblk0p2
resize2fs /dev/mmcblk0p2
mount /dev/mmcblk0p2 /storage
df -h
rm /var/lock/xbmc.disabled (XBMC will restart)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment