Last active
December 14, 2015 01:49
-
-
Save dejanr/5009036 to your computer and use it in GitHub Desktop.
Rasspery pi resize openelec storage partition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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