Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not-Needed Directories and Files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
palmer
Guru
Guru


Joined: 17 Nov 2004
Posts: 322
Location: Berkeley, CA

PostPosted: Fri Jan 05, 2007 3:54 am    Post subject: Not-Needed Directories and Files Reply with quote

I am building gentoo for a USB stick and am wondering what files I can safely leave off the stick without harming anything

I am starting with the gentoo livecd, which is ~450mb after decompression
I plan on squashfs-ing the entire distro while on the USB stick
I have a 128mb USB stick that I would love to fit this on, but I realize that it might not be possible

I am now re-merging the entire system with -Os to further reduce the size of the directories
I plan on switching to busybox to save even more space, if possible
I will install a very minimal kernel, and I'm planning on removing all the sources (/usr/src/)

All the stick will have to do is boot and run X (KDE will definitely push it over the size limit)
There will be no compiling or such (so no gcc is needed)

Does anyone know what files I can safely remove from the system?
I think the big things will be languages (perl, gcc, python, ruby), does anyone know where their non-runtime libraries and executables live?
Even better, is there any package I can completely remove?
Right now I have

TMP Files:
Code:
/tmp
/usr/portage
/usr/src
/usr/tmp
/var/tmp


Unneeded:
Code:
/var/log/
/var/cache/
/var/spool/
/var/db/


I can live without
Code:
/usr/share/locale/ (everything but en_US)
/usr/share/man/
/usr/share/zoneinfo/
/usr/share/autoconf/
/usr/share/automake-*/
/usr/share/doc/
/usr/share/i18n/ (everything but my charmap and locale)
/usr/lib/libexec/


Unknown:
Code:
The rest of /usr/share/
/usr/lib/gcc/
/usr/lib/python/
/usr/lib/portage/
/usr/lib/perl5/


-palmer
Back to top
View user's profile Send private message
mose
Guru
Guru


Joined: 04 Jun 2005
Posts: 313
Location: Piacenza

PostPosted: Fri Jan 05, 2007 11:38 am    Post subject: Reply with quote

Maybe you have joust found this page http://gentoo-wiki.com/HOWTO_Small_Footprint_Gentoo_on_USB
If not I think it could help you
Back to top
View user's profile Send private message
palmer
Guru
Guru


Joined: 17 Nov 2004
Posts: 322
Location: Berkeley, CA

PostPosted: Fri Jan 05, 2007 9:36 pm    Post subject: Reply with quote

I had already found that page, and it is basicly what I am using to make my system

I was wondering, are there any directories that I can remove from that?
I know I can at least remove the compiling part of GCC, because that disk was designed for install and I won't need to compile...

-palmer
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Sun Jan 07, 2007 7:57 am    Post subject: Reply with quote

palmem wrote:
I had already found that page, and it is basicly what I am using to make my system

I was wondering, are there any directories that I can remove from that?
I know I can at least remove the compiling part of GCC, because that disk was designed for install and I won't need to compile...

-palmer

It's probably easier to build the system with ROOT="/whatever" so you don't have GCC and similar things on there to begin with.
_________________
What are you, stupid?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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