Preator
Posts: 21
Joined: Sat Jun 21, 2014 11:48 am

Change size of root partition

Wed May 27, 2015 2:51 pm

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?

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Change size of root partition

Thu May 28, 2015 12:57 am

Using another computer you should be able to shuffle it around with gparted and dd if needed.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

anita2r
Posts: 226
Joined: Sun Dec 23, 2012 6:55 pm
Location: Ottawa, Canada

Re: Change size of root partition

Thu May 28, 2015 5:51 pm

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

Preator
Posts: 21
Joined: Sat Jun 21, 2014 11:48 am

Re: Change size of root partition

Thu May 28, 2015 7:08 pm

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 !

Return to “Advanced users”