Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what can i delete to save disk space?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Tue Aug 17, 2010 12:43 pm    Post subject: what can i delete to save disk space? Reply with quote

hi all
i'm installing gentoo on a eeepc 900p
is working fine, save for looooong emerging time (my goal is to emerge all i need then don't emerge anymore :) )

but today i got first serious problem: no space left on device
(i already checked inodes and i got enought inode left)

the problem is: my eeepc got 2 SSD, a 4 GB one and a 16 GB one
i mounted / on /dev/sda1 (4 GB)
and /home on /dev/sdb1 (16 GB)
then today morning /dev/sda1 was full, no space left on device

i had to say "ouch".
i deleted /var/tmp/portage/* and /usr/portage/distfiles/* and now i got over 1 GB free so i hope i could start again installing

btw the problem is...
there is some files/directory i could freely delete?
and some files/directory i should keep clean to save disk space (like regularly keeping clean /usr/portage/distfiles/ ...)

thank you for helping :)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Aug 17, 2010 1:52 pm    Post subject: Reply with quote

I'd put portage to sdb.
Back to top
View user's profile Send private message
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Tue Aug 17, 2010 2:13 pm    Post subject: Re: what can i delete to save disk space? Reply with quote

divago wrote:
my goal is to emerge all i need then don't emerge anymore :)


Best idea ever. For netbooks, just go with a distcc-host or use a binary distro (maybe try arch if you like something gentooish). The way you intend to use your System Gentoo just makes little sense.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Tue Aug 17, 2010 2:17 pm    Post subject: Reply with quote

I've found a root partition of 4G makes it very unpleasant to install Gentoo on. This was for my eeePC 900a

As stated before, it's best to put portage and its distfiles on another, larger disk.
in make.conf:
PORTAGE_TMPDIR=/some/bigger/disk/to/stick/compilation/temporaries
PORTDIR=/some/bigger/disk/to/store/portage/tree
DISTDIR=/some/bigger/disk/to/store/distfiles

Other things that you can try:

in make.conf: FEATURES=nodoc noinfo

Another thing I found helpful was app-admin/localepurge to delete unused locales.
Also make sure /etc/locale.gen contains only the locales you need.

Currently I've got a full Gnome install, firefox, etc. but only have 747MB free on the 4G partition. This is with portage/distfiles on another disk.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Aug 17, 2010 2:44 pm    Post subject: Reply with quote

You can use this at least :
Code:

# eclean-dist -id
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Aug 17, 2010 3:19 pm    Post subject: Reply with quote

Actually, if you have some other Gentoo box around just mount /usr/portage over NFS.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Aug 17, 2010 3:34 pm    Post subject: Re: what can i delete to save disk space? Reply with quote

XQYZ wrote:
divago wrote:
my goal is to emerge all i need then don't emerge anymore :)


Best idea ever. For netbooks, just go with a distcc-host or use a binary distro (maybe try arch if you like something gentooish). The way you intend to use your System Gentoo just makes little sense.


I would certainly hope that's what he means to do, as opposed to "install and forget." (forget updates, that is)

Assuming he is talking of using another system as a binhost, the contents of /var/tmp/portage and /usr/portage/distfiles are certainly surplus.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Tue Aug 17, 2010 4:04 pm    Post subject: Reply with quote

eccerr0r wrote:
I've found a root partition of 4G makes it very unpleasant to install Gentoo on. This was for my eeePC 900a

As stated before, it's best to put portage and its distfiles on another, larger disk.
Oohhh very good :)
i tried also using a 8 gb sdhc mounting it into /var/tmp/portage... but does'nt work (portage need permission afaik xD )

changing tmpdir to a bigger disc is way a better idea :)
tyvm

ps the i don't mean "install then forgot"
i mean "install then you don'nt need to format your drive and reinstall again all every 6 months" like some other distro with african name è_é

pps: now i changed directory to
Code:

PORTAGE_TMPDIR=/home/portage/tmp
PORTDIR=/home/portage/tree
DISTDIR=/home/portage/distfile

where /home is where i mounted /dev/sdb1
i need/can delete older portage tree/distfile/tmp directory?
they are:
/usr/portage/
/usr/portage/distfile
/var/tmp/portage

right? can i safely remove them?
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 319

PostPosted: Tue Aug 17, 2010 4:28 pm    Post subject: Reply with quote

Disk space is so cheap these days they're practically giving it away. Go grab a 2 TB disk for ~ $100

Someone write an abstraction for gmail on a FUSE filesystem... then Google would be literally giving it away. Hell, sign up for 2-3 accounts and merge em together transparently.
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Tue Aug 17, 2010 6:08 pm    Post subject: Reply with quote

I would mount /usr and /home on sdb - 16 gigs should be really enough for everyday-use. If not, just get a small ssd (40 gigs or so) and replace sdb.

Best regards,
Jimini

P.S.: I would rather buy more diskspace than changing the distro :D
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Tue Aug 17, 2010 10:33 pm    Post subject: Reply with quote

I still keep my old 4G SSD though I replaced it with a 32G. However due to trying to keep as little as possible on my SSD, I currently keep portage, portagetmp, and distfiles on different disks (external USB and SDHC). Also in case I want to move back to the 4G SSD (or if I want to perhaps distribute my 4GB Gentoo install to people having problems installing onto their eee's...)

divago wrote:
i need/can delete older portage tree/distfile/tmp directory?
they are:
/usr/portage/
/usr/portage/distfile
/var/tmp/portage

right? can i safely remove them?

Yes, they can be deleted. With them redirected to the bigger disk, the old ones aren't needed anymore. I just cleared them but didn't delete the actual directories...

Ormaaj wrote:
Disk space is so cheap these days they're practically giving it away. Go grab a 2 TB disk for ~ $100

Someone write an abstraction for gmail on a FUSE filesystem... then Google would be literally giving it away. Hell, sign up for 2-3 accounts and merge em together transparently.


Try fitting a 2TB disk into an eeePC... (at least my 900A has no space for even a 2.5" HDD. It has only a mini pcie SSD.)

I wish I could. Absolutely no space for one :( External ones would virtually double a poor eee's travel weight and volume...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Aug 17, 2010 11:36 pm    Post subject: Reply with quote

Install localepurge, and make sure locale.gen is set correctly. That should save a few MB more. You might want to uninstall python 3.1 too, you only need 2.6 to use emerge & co.

Also use squashfs + unionfs, like the eee's default distro does. Compressing /usr/ is the easiest way to gain from it, any more and you'll probably end up needing a custom initramfs.
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Wed Aug 18, 2010 9:55 am    Post subject: Reply with quote

Jimini wrote:
I would mount /usr and /home on sdb - 16 gigs should be really enough for everyday-use.
mmmhhh
mounting two different directory to same physical disk? never tried...
it's easy like a
# mount /dev/sdb1/home /home
# mount /dev/sdb1/usr /usr
right?
i go trying then :)

otherwise, i could even use SDHC for standard /usr...

eccerr0r wrote:
divago wrote:
i need/can delete older portage tree/distfile/tmp directory?
they are:
/usr/portage/
/usr/portage/distfile
/var/tmp/portage

right? can i safely remove them?

Yes, they can be deleted. With them redirected to the bigger disk, the old ones aren't needed anymore. I just cleared them but didn't delete the actual directories...
Ok so i'll do then :)

ty everyone :)
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Wed Aug 18, 2010 9:57 am    Post subject: Reply with quote

divago wrote:
Jimini wrote:
I would mount /usr and /home on sdb - 16 gigs should be really enough for everyday-use.
mmmhhh
mounting two different directory to same physical disk? never tried...
it's easy like a
# mount /dev/sdb1/home /home
# mount /dev/sdb1/usr /usr
right?
i go trying then :)


No no, just create two partitions - /dev/sdb1 and /dev/sdb2. Then you mount /home and /usr as usual.

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Wed Aug 18, 2010 10:43 am    Post subject: Reply with quote

Jimini wrote:
No no, just create two partitions - /dev/sdb1 and /dev/sdb2. Then you mount /home and /usr as usual.
ouch ok fine :)
for a little while i hoped i could do it without partitioning :)

(mmmhhh how much bigger /usr i'll need? and /home? suggestions? :) )
Back to top
View user's profile Send private message
Jimini
l33t
l33t


Joined: 31 Oct 2006
Posts: 601
Location: Germany

PostPosted: Wed Aug 18, 2010 11:02 am    Post subject: Reply with quote

divago wrote:
(mmmhhh how much bigger /usr i'll need? and /home? suggestions? :) )


That depends on how you plan to use your pc. Do you want to store many (big) files in your home directory? Which desktop environment are you going to use?
You could also think about putting /, /boot and swap on /dev/sdb (the bigger drive) and /home on /dev/sda (the smaller drive).
The reason is, that with that solution you are more flexible - the more seperate mountpoints you have, the more flexibility you lose. It can be very annoying to use the machine for a few weeks or months and have no free diskspace left on /usr.
But that is only my personal opinion :)

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Wed Aug 18, 2010 2:09 pm    Post subject: Reply with quote

Jimini wrote:
divago wrote:
(mmmhhh how much bigger /usr i'll need? and /home? suggestions? :) )


That depends on how you plan to use your pc. Do you want to store many (big) files in your home directory? Which desktop environment are you going to use?
You could also think about putting /, /boot and swap on /dev/sdb (the bigger drive) and /home on /dev/sda (the smaller drive).
The reason is, that with that solution you are more flexible - the more seperate mountpoints you have, the more flexibility you lose. It can be very annoying to use the machine for a few weeks or months and have no free diskspace left on /usr.
mmmhhh ok
i got fluxbox installed;
planning to install some other useful programs like openoffice (maybe i'll emerge openoffice-bin or i'll need a full week vacation to install openoffice :) ), a pdf reader, maybe thunderbird (maybe) and/or pidgin
i'd use a lot of pdf and/or documents so /home could be big

my concern is:
my /usr directory actually wear 2,1 GB (after i moved portage dir to /home/portage) and that's 99% of /dev/sda1 disk usage
i got 1,3+ GiB (according to conky's monitoring)
at the moment, don't seems to me a need
if/when i'll need it, i could always move /usr to another disk/partition
Back to top
View user's profile Send private message
aderesch
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2010
Posts: 123
Location: Hamburg, Germany

PostPosted: Wed Aug 18, 2010 5:31 pm    Post subject: Reply with quote

divago wrote:
for a little while i hoped i could do it without partitioning :)

Sure you can. Just mount the actual partition somewhere else (/media/sdb1 or whatever), then use
Code:
mount -o bind <srcdir> <dstdir>
(or rather put the bind option into fstab)

ad
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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