General questions that do not fit in the above categories

Moderators: ongoto, slax

Re: Whats eating my disc space?

Postby melodie » Mon May 25, 2009 12:04 am

Catshed wrote:but i was to chicken to run it :oops: (to many options not enough brains)


Instead of running apps where you don't know what to erase and what not to, you may want to use rpmorphans (don't remember if its with "s" at the end or without). You install it, then run as root from konsole or terminal with command line and option -gui : this way : rpmorphan -gui

This won't hurt, and it will clean away the orphaned libraries : you can erase them all, no harm. (Even several times in a row : orphans of the orphans once the first list will have been removed, and so on... )

For the leftovers in the rest of the system : you can start mc in console as user in your /home/yourself then go to all hidden dir's and files, inside .thumbnail/normal etc... there are the thumbnails of all the images you have viewed in the past : you can erase all, and look at the name of the .directories, if ou see some that belong to applications you have got rid of, you can erase them. You can do same (but this time as root) inside /usr/share/doc about applications that are not in your system anymore, and same for application names in /usr/share, and in /usr/share/applications (there are the desktop files, that code for menu entries)... you can search for some more by yourself, in /etc for example, and other places in /usr/local, /var/ , just watch out, mc is very powerful : no Trash, all is deleted directly.
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: Whats eating my disc space?

Postby gb5uqx » Fri May 29, 2009 10:06 am

melodie wrote:This won't hurt, and it will clean away the orphaned libraries : you can erase them all, no harm. (Even several times in a row : orphans of the orphans once the first list will have been removed, and so on... )



Unfortunately this is not entirely accurate. I ran rpmorphan and of 710 packages 112 were reported as orphaned so I removed them. Some critical system files were wiped rendering it all unusable so I had to reintroduce them through the live CD. All ok now but no joy at all on the / space problem. rpmorphan only recovered a few MB of space so not accounting for the hundreds of MB that continue to be eaten up in my / directory
Linux Registered user #483019 ..... Yeahh baby.

Deja Vu is a glitch in the kernel, it happens when they change something.. ( Morpheus: The Matrix )
gb5uqx
User avatar
Full Member
Full Member
 
Posts: 126
Joined: Fri Jun 27, 2008 4:41 pm

Re: Whats eating my disc space?

Postby melodie » Tue Jun 30, 2009 5:04 am

gb5uqx wrote:All ok now but no joy at all on the / space problem. rpmorphan only recovered a few MB of space so not accounting for the hundreds of MB that continue to be eaten up in my / directory


Ok, so what's for now ? Have you been in the system directories with mc ? Do you know you can start it as root if needed, and if you know what you are doing, you can use it to erase files.

I usually start with the /usr/share/locale directory and there, I leave only one english language, my language, and the file locale.alias.

the command "$ du -csh fr*" gives : 7,1M but the same on the whole directory: "$ du -csh locale/
88M locale/
88M total"

as thought it's an empty system, just meant to make remasters, with almost no applications in it !

Then, in /var/log ...
Code: Select all
[guest@localhost log]$ pwd
/var/log
[guest@localhost log]$ ls
acpid          explanations.1.gz  prcsys.log         sudo.log.1.gz
acpid.1.gz     explanations.2.gz  rpmorphan.log      sudo.log.2.gz
auth.log       explanations.3.gz  rpmpkgs            sudo.log.3.gz
auth.log.1.gz  explanations.4.gz  rpmpkgs.1.gz       syslog
auth.log.2.gz  explanations.5.gz  rpmpkgs.2.gz       syslog.1.gz
auth.log.3.gz  gdm/               rpmpkgs.3.gz       syslog.2.gz
auth.log.4.gz  kernel/            rpmpkgs.4.gz       syslog.3.gz
auth.log.5.gz  lastlog            samba/             syslog.4.gz
boot.log       lastlog.1.gz       secure             syslog.5.gz
boot.log.1.gz  lpr/               secure.1.gz        user.log
boot.log.2.gz  mail/              secure.2.gz        user.log.1.gz
boot.log.3.gz  messages           secure.3.gz        user.log.2.gz
boot.log.4.gz  messages.1.gz      secure.4.gz        user.log.3.gz
boot.log.5.gz  messages.2.gz      secure.5.gz        user.log.4.gz
btmp           messages.3.gz      security/          user.log.5.gz
ConsoleKit/    messages.4.gz      security.log       wtmp
cron/          messages.5.gz      security.log.1.gz  wtmp.1.gz
cups/          msec.log           security.log.2.gz  Xorg.0.log
daemons/       news/              security.log.3.gz  Xorg.0.log.old
dmesg          pm-powersave.log   spooler            Xorg.20.log
dmesg.old      pm-suspend.log     statistics*
explanations   ppp/               sudo.log
[guest@localhost log]$





hum... let's see how much disk space thoses .gz files take under /var/log ? (in a small minimal version not in production)

Code: Select all
[guest@localhost log]$ du -csh **/*.gz *.gz
4,0K   cron/errors.1.gz
4,0K   cron/errors.2.gz
4,0K   cron/errors.3.gz
4,0K   cron/errors.4.gz
4,0K   cron/errors.5.gz
4,0K   cron/info.1.gz
4,0K   cron/info.2.gz
4,0K   cron/info.3.gz
4,0K   cron/info.4.gz
12K   cron/info.5.gz
4,0K   cron/warnings.1.gz
4,0K   cron/warnings.2.gz
4,0K   cron/warnings.3.gz
4,0K   cron/warnings.4.gz
4,0K   cron/warnings.5.gz
4,0K   daemons/errors.1.gz
4,0K   daemons/errors.2.gz
4,0K   daemons/errors.3.gz
4,0K   daemons/errors.4.gz
4,0K   daemons/errors.5.gz
4,0K   daemons/info.1.gz
4,0K   daemons/info.2.gz
4,0K   daemons/info.3.gz
4,0K   daemons/info.4.gz
8,0K   daemons/info.5.gz
4,0K   daemons/warnings.1.gz
4,0K   daemons/warnings.2.gz
4,0K   daemons/warnings.3.gz
4,0K   daemons/warnings.4.gz
4,0K   daemons/warnings.5.gz
4,0K   kernel/errors.1.gz
4,0K   kernel/errors.2.gz
4,0K   kernel/errors.3.gz
4,0K   kernel/errors.4.gz
4,0K   kernel/errors.5.gz
8,0K   kernel/info.1.gz
8,0K   kernel/info.2.gz
8,0K   kernel/info.3.gz
16K   kernel/info.4.gz
24K   kernel/info.5.gz
4,0K   kernel/warnings.1.gz
4,0K   kernel/warnings.2.gz
4,0K   kernel/warnings.3.gz
4,0K   kernel/warnings.4.gz
8,0K   kernel/warnings.5.gz
4,0K   lpr/errors.1.gz
4,0K   lpr/errors.2.gz
4,0K   lpr/errors.3.gz
4,0K   lpr/errors.4.gz
4,0K   lpr/errors.5.gz
4,0K   lpr/info.1.gz
4,0K   lpr/info.2.gz
4,0K   lpr/info.3.gz
4,0K   lpr/info.4.gz
4,0K   lpr/info.5.gz
4,0K   lpr/warnings.1.gz
4,0K   lpr/warnings.2.gz
4,0K   lpr/warnings.3.gz
4,0K   lpr/warnings.4.gz
4,0K   lpr/warnings.5.gz
4,0K   mail/errors.1.gz
4,0K   mail/errors.2.gz
4,0K   mail/errors.3.gz
4,0K   mail/errors.4.gz
4,0K   mail/errors.5.gz
4,0K   mail/info.1.gz
4,0K   mail/info.2.gz
4,0K   mail/info.3.gz
4,0K   mail/info.4.gz
4,0K   mail/info.5.gz
4,0K   mail/warnings.1.gz
4,0K   mail/warnings.2.gz
4,0K   mail/warnings.3.gz
4,0K   mail/warnings.4.gz
4,0K   mail/warnings.5.gz
4,0K   news/news.crit.1.gz
4,0K   news/news.crit.2.gz
4,0K   news/news.crit.3.gz
4,0K   news/news.crit.4.gz
4,0K   news/news.crit.5.gz
4,0K   news/news.err.1.gz
4,0K   news/news.err.2.gz
4,0K   news/news.err.3.gz
4,0K   news/news.err.4.gz
4,0K   news/news.err.5.gz
4,0K   news/news.notice.1.gz
4,0K   news/news.notice.2.gz
4,0K   news/news.notice.3.gz
4,0K   news/news.notice.4.gz
4,0K   news/news.notice.5.gz
4,0K   acpid.1.gz
4,0K   auth.log.1.gz
4,0K   auth.log.2.gz
4,0K   auth.log.3.gz
4,0K   auth.log.4.gz
24K   auth.log.5.gz
4,0K   boot.log.1.gz
4,0K   boot.log.2.gz
4,0K   boot.log.3.gz
4,0K   boot.log.4.gz
4,0K   boot.log.5.gz
4,0K   explanations.1.gz
4,0K   explanations.2.gz
4,0K   explanations.3.gz
4,0K   explanations.4.gz
8,0K   explanations.5.gz
4,0K   lastlog.1.gz
20K   messages.1.gz
12K   messages.2.gz
12K   messages.3.gz
60K   messages.4.gz
136K   messages.5.gz
12K   rpmpkgs.1.gz
12K   rpmpkgs.2.gz
12K   rpmpkgs.3.gz
12K   rpmpkgs.4.gz
4,0K   secure.1.gz
4,0K   secure.2.gz
4,0K   secure.3.gz
4,0K   secure.4.gz
24K   secure.5.gz
8,0K   security.log.1.gz
4,0K   security.log.2.gz
4,0K   security.log.3.gz
4,0K   sudo.log.1.gz
4,0K   sudo.log.2.gz
4,0K   sudo.log.3.gz
24K   syslog.1.gz
16K   syslog.2.gz
16K   syslog.3.gz
64K   syslog.4.gz
144K   syslog.5.gz
8,0K   user.log.1.gz
4,0K   user.log.2.gz
4,0K   user.log.3.gz
8,0K   user.log.4.gz
20K   user.log.5.gz
12K   wtmp.1.gz
1,2M   total
[guest@localhost log]$


That's not small, and if you try the same command line in your /var/log would you tell us how much of this used space you find for the archived logs ?

If I remember of other places to check, I'll come back.
Last edited by melodie on Tue Jun 30, 2009 10:28 am, edited 1 time in total.
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: Whats eating my disc space?

Postby don_crissti » Tue Jun 30, 2009 8:47 am

off-topic:

melodie,

there's a post here:

http://linuxgator.org/forums/viewtopic.php?f=11&t=1565

explaining the use of code tags...
Those who cling to life, die; those who defy death, live.
Uesugi Kenshin
don_crissti
User avatar
Hero Member
Hero Member
 
Posts: 2261
Joined: Thu Nov 15, 2007 2:16 pm

Re: Whats eating my disc space?

Postby melodie » Tue Jun 30, 2009 10:30 am

don_crissti wrote:explaining the use of code tags...


Hi,

A bit strict ? :D

Is that better ?

Other directories where it's possible to gain place : /usr/share/doc, all except /usr/share/doc/HTML can be removed without harm (unless there is in there docs that one especially needs, obviously).
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Previous
Forum Statistics

Who is online

Users browsing this forum: No registered users and 1 guest

Options

Return to PCLinuxOS Gnome General

cron