How to locate a folder that may be filling up with tempfiles

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

How to locate a folder that may be filling up with tempfiles

Postby Linares » Oct 21st, '22, 15:42

In the root folder I have only 3 Gb free, thanks to the help I received in viewtopic.php?f=7&t=14715, since previously it was less.

However, I have observed that (only sometimes, not always) after a few hours working those 3 free Gb are reduced to 0, the equipment begins to malfunction, and I am forced to restart. After that restart, those 3 Gb have been released and everything returns to normal.

I think if it's temporary files of some kind, maybe I could just go into that folder and delete them without the hassle of rebooting.

How can I find out which folder that 3 Gb is taking up?
Linares
 
Posts: 145
Joined: Nov 25th, '19, 20:24
Location: Aizarna, Euskal Herria

Re: How to locate a folder that may be filling up with tempf

Postby doktor5000 » Oct 21st, '22, 16:09

As root:
Code: Select all
du -mx / | sort -rn | head -50

Then look for the biggest folders, or post the output here if you don't know what to look for.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to locate a folder that may be filling up with tempf

Postby Linares » Nov 5th, '22, 21:27

Thank you.
The output:

Code: Select all
11472   /
6998    /usr
3243    /var
3162    /usr/lib64
1697    /var/lib
1663    /usr/share
1464    /usr/lib
1447    /var/lib/flatpak
1253    /var/lib/flatpak/runtime
1036    /var/log
1017    /var/log/journal/22a48eb6ff104496891bf0a79ab7d578
1017    /var/log/journal
853     /root
666     /root/.wine
664     /root/.wine/drive_c
645     /usr/lib/firmware
567     /root/.wine/drive_c/windows
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64
503     /var/lib/flatpak/runtime/org.freedesktop.Platform
492     /var/cache
445     /var/cache/dnf
383     /usr/lib64/nvidia-current
381     /usr/lib64/libreoffice
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae/files
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80
368     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae/files/extra
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a/files
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default
355     /usr/bin
299     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files/lib
288     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a/files/lib
273     /opt/google/chrome
273     /opt/google
273     /opt
265     /usr/share/skypeforlinux
248     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files/lib/x86_64-linux-gnu
240     /usr/src
227     /usr/lib64/libreoffice/program
225     /usr/lib64/opera-developer
220     /usr/share/icons
201     /usr/lib64/firefox
Linares
 
Posts: 145
Joined: Nov 25th, '19, 20:24
Location: Aizarna, Euskal Herria

Re: How to locate a folder that may be filling up with tempf

Postby doktor5000 » Nov 6th, '22, 16:50

The following could be cleaned up

1447 /var/lib/flatpak
1017 /var/log/journal/22a48eb6ff104496891bf0a79ab7d578
666 /root/.wine

At least the latter two should be cleaned up, that's 1.7GB. You can remove /var/log/journal, although then you only have journal logs for the current boot.
And /root/.wine should definitely be removed, why did you start wine as root in the first place?

As root run the following:
Code: Select all
systemctl stop systemd-journald; rm -rf /var/log/journal/; systemctl restart systemd-journald
rm -rf /root/.wine

Not sure about flatpak, as you mentioned you still use that.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18045
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to locate a folder that may be filling up with tempf

Postby Linares » Nov 26th, '22, 18:48

Thank you very much. After that, it looks like this:

Code: Select all
du -mx / | sort -rn | head -50
9796    /
6998    /usr
3162    /usr/lib64
2233    /var
1696    /var/lib
1663    /usr/share
1464    /usr/lib
1447    /var/lib/flatpak
1253    /var/lib/flatpak/runtime
645     /usr/lib/firmware
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08
503     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64
503     /var/lib/flatpak/runtime/org.freedesktop.Platform
492     /var/cache
445     /var/cache/dnf
383     /usr/lib64/nvidia-current
381     /usr/lib64/libreoffice
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae/files
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64
369     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80
368     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-460-80/x86_64/1.4/f44ac41ae0de3c8a92f0768d60598883cc06269fac6539f8918c084630b778ae/files/extra
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a/files
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64
365     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default
355     /usr/bin
299     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files/lib
288     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/71b235f9bcc488535725056d2ad8e76638188d1f8faf3e45ec3cc82324c86a5a/files/lib
273     /opt/google/chrome
273     /opt/google
273     /opt
265     /usr/share/skypeforlinux
248     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files/lib/x86_64-linux-gnu
240     /usr/src
227     /usr/lib64/libreoffice/program
225     /usr/lib64/opera-developer
220     /usr/share/icons
201     /usr/lib64/firefox
194     /usr/lib/modules
187     /root
177     /usr/lib/nvidia-current
166     /root/.cache
162     /usr/lib64/virtualbox
147     /usr/share/doc
142     /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/21.08/c7252386179c4c1ecf5d93bdaec6ca82852dddfdae7112b5c3177f7424c4a928/files/share
Linares
 
Posts: 145
Joined: Nov 25th, '19, 20:24
Location: Aizarna, Euskal Herria


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron