Skip to content

Instantly share code, notes, and snippets.

@dejanr dejanr/gist:5009036

Last active Dec 14, 2015
What would you like to do?
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
You can’t perform that action at this time.