Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Which files to remove
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sat Dec 31, 2005 2:19 pm    Post subject: Which files to remove Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 31, 2005 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Sat Dec 31, 2005 2:45 pm    Post subject: Re: Which files to remove Reply with quote

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
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sat Dec 31, 2005 6:34 pm    Post subject: Reply with quote

/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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 31, 2005 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sat Dec 31, 2005 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Sat Dec 31, 2005 7:13 pm    Post subject: Reply with quote

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
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 31, 2005 7:50 pm    Post subject: Reply with quote

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