Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on RPi3 very hungry
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
Mouski
n00b
n00b


Joined: 25 Jun 2016
Posts: 21

PostPosted: Sun Jun 04, 2017 12:19 pm    Post subject: Gentoo on RPi3 very hungry Reply with quote

Hi,

I have a Gentoo on SDcard for ma RPi3. But for now i can't compile anything because it is full for / :

Code:
/dev/root            8689792 8210648      14692 100% /

When i do an eclean-dist, i have this :
Code:
/dev/root            8689792 6748488    1476852  83% /

Also, i rm all in /tmp/portage/.
My / is partionned to be around 8 Gb i was thinking it wil be sufficient.
I saved ~ 2 Gb but it is not sufficient !
My question is hy gentoo is so hungry and how to retrieve some space ?

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 12:39 pm    Post subject: Reply with quote

Mouski,

8G is very tight for a desktop.

Code:
Pi3 64bit ~ # df
Filesystem                    1K-blocks     Used Available Use% Mounted on
/dev/root                      14351816  9199424   4403644  68% /
devtmpfs                          10240        0     10240   0% /dev
tmpfs                             98660      476     98184   1% /run
shm                              493284        0    493284   0% /dev/shm
cgroup_root                       10240        0     10240   0% /sys/fs/cgroup
/dev/mapper/Pi3_64-buildspace  20642384  3982344  15595080  21% /var/tmp/portage
/dev/mapper/Pi3_64-portage      3144274   837095   2093368  29% /usr/portage
/dev/mapper/Pi3_64-distfiles   41284832 19049664  20121632  49% /var/cache/distfiles
/dev/mapper/Pi3_64-home        51343840 34636592  14069424  72% /home
/dev/mapper/Pi3_64-packages    41284832 10145928  29025368  26% /packages
/dev/mapper/Pi3_64-src         20511312  9088132  10358220  47% /usr/src
/dev/mapper/Pi3_64-opt          1998672   168528   1708904   9% /opt
/dev/mapper/Pi3_64-tmp          4128448    16396   3885956   1% /tmp

You can remove kernels that you no longer need from /usr/src.
/var/log can be cleaned of old logs. Do not remove /var/log/emerge.log as its a source of valuable information.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Sun Jun 04, 2017 2:17 pm    Post subject: Reply with quote

You can keep distfiles and portage on a server common for ALL your gentoo systems! :D
This way I save several gigabytes of diskspace.
Back to top
View user's profile Send private message
Mouski
n00b
n00b


Joined: 25 Jun 2016
Posts: 21

PostPosted: Sun Jun 04, 2017 2:49 pm    Post subject: Reply with quote

I keep only one kernel sources (i always test before i delete the older). It seems for me so curious that anyone of complete distro can be tight in less to 2 Gb. Why Gentoo takes so big ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 2:51 pm    Post subject: Reply with quote

Irre,

Indeed you can. I choose not to as I run a number of installs on several different ARCHs and I like to keep the installs self consistent.
I use http-replicator and my own rsync server to minimise the load on the servers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sun Jun 04, 2017 2:51 pm    Post subject: Reply with quote

Irre wrote:
You can keep distfiles and portage on a server common for ALL your gentoo systems! :D
This way I save several gigabytes of diskspace.


If I did this on my central server I could junk http:replicater and not worry about internal syncs.

Do you have a link to a How To?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 2:57 pm    Post subject: Reply with quote

Mouski,

A Gentoo install with easy stripping of sources, packages, the portage repository, distfiles, cleaned build space and logs, just about fits into 6GB.
That's how I install to my netbook 8G SSD.
I could remove the tool chain and make it smaller still.

You can save about 2G for your portage repository by using squashfs for it.
squashfs is a read only filesystem in a file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Mouski
n00b
n00b


Joined: 25 Jun 2016
Posts: 21

PostPosted: Sun Jun 04, 2017 2:57 pm    Post subject: Reply with quote

Ah some idiot... it's because portage tree. It uses ~ 4 Gb. Maybe i'll try squashfs...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jun 04, 2017 4:16 pm    Post subject: Reply with quote

Mouski,

There is the squashfs wiki guide
Unfortunately, you need to download the repository to squash it yourself.

The good news is that Gentoo provides the squashfs for you.

You still need kernel support for squashfs. That's covered in the wiki,
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum