Page 1 of 1

Change size of root partition

Posted: Wed May 27, 2015 2:51 pm
by Preator
Hello,

I would like to increase the size of my root partition of my Raspbian OS, because it is full (~8GB). In order to do that, I would like to decrease the size of my storage partition in openelec. I tried with gparted but gparted doesn't want to move the boot partition which is in the middle of the both other partitions. What should I do?

Could I reinstall the whole thing and change the size in the configuration when I install openelec or is there a simpler way?

Re: Change size of root partition

Posted: Thu May 28, 2015 12:57 am
by elatllat
Using another computer you should be able to shuffle it around with gparted and dd if needed.

Re: Change size of root partition

Posted: Thu May 28, 2015 5:51 pm
by anita2r
Hi,

Have you looked to see why the partition is full.

The find command can search for large files:
sudo find / -mount -type f -size +50M -ls

This will find all files of 50MB and larger. Adjust size parameter as required.
('-mount' stops find from descending into directories on other filesystems)

Also try sudo apt-get autoclean to remove unneeded files.

Regards

anita2R

Re: Change size of root partition

Posted: Thu May 28, 2015 7:08 pm
by Preator
Thanks for the replies.

I gave up with gparted. So I did sudo apt-get autoclean and it removed enough space so I don't have to change size of my root partition. Thanks !