View previous topic :: View next topic |
Author |
Message |
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sat Dec 31, 2005 2:19 pm Post subject: Which files to remove |
|
|
hi this is the output of du Code: | du -hs bin boot C dev etc home lib mnt opt proc root sbin sys tmp usr var | sort -n
0 C
0 sys
2.4G var
2.7M root
3.6M boot
5.4M sbin
5.9M bin
6.8G usr
7.2M lib
11M etc
11M opt
14M tmp
19G mnt
81M home
296K dev
899M proc | what files could i safely remove to gain space on the hard disk?? and is there a way to force du to use a general unit for displaying?? say i want everything to show in my terminal in MB or GB... |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 31, 2005 2:29 pm Post subject: |
|
|
Look here for suggestions on cleaning file systems.
And
man du wrote: | -m, --megabytes
Print sizes in MiB (binary megabytes, 1048576 bytes). |
_________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Dec 31, 2005 2:45 pm Post subject: Re: Which files to remove |
|
|
dpetka2001 wrote: | hi this is the output of du Code: | du -hs bin boot C dev etc home lib mnt opt proc root sbin sys tmp usr var | sort -n
0 C
0 sys
2.4G var
2.7M root
3.6M boot
5.4M sbin
5.9M bin
6.8G usr
7.2M lib
11M etc
11M opt
14M tmp
19G mnt
81M home
296K dev
899M proc | what files could i safely remove to gain space on the hard disk?? and is there a way to force du to use a general unit for displaying?? say i want everything to show in my terminal in MB or GB... |
Dont count /proc (not really there, its size is cause there is a memory map from the kernel)
DOnt count /mnt since they are yr partitions you have mounted (maybe some windows, some DVD's...)
The two I would look at are
/usr : Biggest culpret is prooly /usr/portage/distfiles
What is the "du" on /use/portage/distfiles
THAT directory can be emptied (it is a dir where the sourcecode is downloaded, it never empties unless you empty it)
Also yr /Home seems quite big, look through it _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sat Dec 31, 2005 6:34 pm Post subject: |
|
|
/home is not too big i think.../var and /usr are the biggest...i will take a look at /distfiles and /packages...but what about /var?? i think maybe /tmp/portage can be emptied safely right?? and maybe the whole /tmp directory...what do you think?? |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 31, 2005 6:47 pm Post subject: |
|
|
Again, did you look at this thread? Don't delete all distfiles, or you will eat up a lot of bandwith when updating. You may safely remove anything under /var/tmp/portage. And check for log files. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sat Dec 31, 2005 7:03 pm Post subject: |
|
|
i am taking a look at it right now...i see the point about not erasing entirely the distfiles...i am also taking a look at another post where there are scripts for cleaning out stale distfiles...do you have any suggestion about a script you trust it does its job without problems?? thanks... |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Sat Dec 31, 2005 7:13 pm Post subject: |
|
|
personally I just do a
rm -rf /usr/portage/distfiles/
rm -rf /var/tmp/portage/
Why? because the files in /var/tmp are just that. They should be cleared after a susseccful emerge, but if something causes the emerge to fail (error or somethging) then files remain so all of it can go
I am not to bothered abt any files in /usr/portage/distfiles since they are but a download away. The only one of any interest to me is my wireless card driver (since it is not in the kernel) I have that stored in /root just incase I update my kernel and it goes wrong, but then again I always have a gold kernel that is known to work and I dont mess with _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 31, 2005 7:50 pm Post subject: |
|
|
dpetka2001 wrote: | i am taking a look at it right now...i see the point about not erasing entirely the distfiles...i am also taking a look at another post where there are scripts for cleaning out stale distfiles...do you have any suggestion about a script you trust it does its job without problems?? thanks... |
I use distclean, check here for a list of useful scripts (some outdated).
And have a nice new year. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
|