need to clean out root

Running 11.3. In the past few months the root partition has gone from 40% full to 97% full. Is there a program that can clean out the excess garbage? If not, can someone tell me how to do it by hand? Please keep it simple. The root partition is 27 G which seemed like a lot at the time.

Try this
http://forums.opensuse.org/forums/blogs/caf4926/clear-temp-files-boot-91/

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

First, find it. The ‘du’ command will tell you where your space is
used, though it’s not fun to run on big subtrees of stuff. Something in
the UI could probably do this more-easily like the ‘baobab’ utility on
my Gnome system. It may end up involving all of the old excess in the
/tmp directory.

Good luck.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPEJlWAAoJEF+XTK08PnB5W8kQALQnXhfEAYsWh+wyV2gQj4Uu
baLDf9GADv/+mf1iNPSSeXlksn0DMBjp3OsZPj9flCDpIU5YAgrXoO56Lyo/1CSG
tTt1DL6PdUYtGLVL11LSJCHF3hT25aNDpco23MJdUgDmJ4Wx35R7LER4ke0JM5Gg
xSpC21yIv9n1YzZj99RBIdQRpSYF2LkDv39TGhc/FN5kl33/vebogf9bYjCbzbXx
cxuslGTd7g6PvbBqWG8WNWTDTSL164oepukkaxybf3eckIDpuI9KdggtE+JQFDql
H1GxhCKnJFGFiBJ8HqZZlUMp/irCjMhR56AGy7gLnfN6J7hVYI7nXjV+vhHo38md
EyK+r9uJdspeCGAJgpUYVqpldoLft/I4iA915O/xaIdIZG7/nY0YWyaBVVftgEGN
OihsUj7KPGJu5JBKdGL7Blxn0vWR0sVXOu6wefjqPp0m5w4kwq6QSvl63m4BjR6U
IgUN7vHZCBRufCitXqZjoEEZTjBFJKEWGqqWIizBeaWG1l9rMgiyG90pv0JVHlWh
YRSS7VPH6XaGgrZfsjV7AXrGsQGzQCGx0F9NcJCI9dzSrt137GrOdm1x0S/+GSOU
9ZPSWe04+FBrqBiaYaAFsvEZP0tRHCPGyRftZX3A28cG0nvpqxINBzNMfygYpOK6
AVpqWbDCvwuaKTJXKbzc
=J+1n
-----END PGP SIGNATURE-----

Thanks for answering so quickly. du is denied access, even as root. Will see if I can load baobab.

On 01/13/2012 09:56 PM, caf4926 wrote:
>
> Try this
> http://tinyurl.com/78l56to

and, if that doesn’t help a lot i would then guess you have some pretty
HUGE log files in /var/log/…and, maybe some runaway process or error
message posting thousands of instances of the same minor nit…look in
/var/log/messages and/or /var/log/firewall for massive repeaters…

also, if you have installed lots and lots of stuff: just go though your
main menu and note those application you never use and wish you had not
installed…then use YaST > Software Management to search for them and
then mark to uninstall/delete… (but do this step last–because i’m
pretty sure you either have a FULL /tmp or runaway (and not routinely
packed down and rotating out) logs…)


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

Look for large files in “/tmp” and “/var/log”.

It is safe to delete the compressed older log files in “/var/log”. They perhaps have names ending in “.bz2” indicating bzip2 compression. You lose old logs, but you won’t disrupt anything.

Thanks for the link. It helped, but not enough. Only about 5G. Another source suggested the command “du -ah | sort -nr > /root/list” which would not work at 97% full. After cleaning out 5G it gave this result to root:
orca:/ # du -ah | sort -nr > /root/list
du: cannot access ./home/mlmack/.gvfs': Permission denied du: cannot access ./proc/8429/task/8429/fd/4’: No such file or directory
du: cannot access ./proc/8429/task/8429/fdinfo/4': No such file or directory du: cannot access ./proc/8429/fd/4’: No such file or directory
du: cannot access ./proc/8429/fdinfo/4': No such file or directory du: cannot access ./var/lib/ntp/proc/8429/task/8429/fd/4’: No such file or directory
du: cannot access ./var/lib/ntp/proc/8429/task/8429/fdinfo/4': No such file or directory du: cannot access ./var/lib/ntp/proc/8429/fd/4’: No such file or directory
du: cannot access `./var/lib/ntp/proc/8429/fdinfo/4’: No such file or directory

I think there’s more cleaning up to be done but what should I do?

Cleaning out var and tmp freed up about 5G. How can I remove old kernels?

On 2012-01-13 23:36, misophist0 wrote:

> orca:/ # du -ah | sort -nr > /root/list
> du: cannot access `./home/mlmack/.gvfs’: Permission denied

Notice that the interesting text is in the file “list”, not in the
irrelevant errors you posted.

> I think there’s more cleaning up to be done but what should I do?

baobab is a nice application to discover that.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-01-14 00:16, misophist0 wrote:
>
> Cleaning out var and tmp freed up about 5G. How can I remove old
> kernels?

With yast package manager.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

How can I use yast to remove old kernels? I can’t even find them.

Yast-Software Management then search for kernel. Note you really should not have any old kernels unless you set it up to keep them or installed them manually. Does your boot menu show multiple kernels?

Look in
/usr/src
/lib/modules
but they will not be taking up a lot of space, unlike* /var/logs* and /var/tmp and possibly /tmp

find /var/tmp -mtime +15 -delete
might be useful, and can also be applied to */tmp *and /var/logs

If you have not yet done so, then reboot.

It might not help. But people sometimes run into the problem of a large file that is in use by a program. Removing the file does not free up the space as long as the program is running.

On 2012-01-14 02:16, misophist0 wrote:
>
> How can I use yast to remove old kernels? I can’t even find them.

Just type “kernel” in the search box. You may have different flavours of
kernels, and different version for each one (version tab).

That’s assuming you use the qt flavour of yast (kde). If not, I can’t guide
you. You can run “yast2 --gtk sw_single &”


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Removing the kernel rpms does not clean up /usr/src or /lib/modules.

There was a thread about this a while ago. There is a script that can be invoked to “reverse” installing multiple kernels, and someone wanted it to also clean out modules etc.,and be an automated default. I remember arguing against the proposal.

Yast seems to show that I have only one kernel. (Yes, I use kde) So the whole thing seems moot. Thank you all for your trouble.

On 2012-01-14 14:26, eng-int wrote:
>
> Removing the kernel rpms does not clean up /usr/src or /lib/modules.

It does if they were installed from the rpms. If there are things there
installed by nvidia, for example, then those will not be removed.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)