I noticed that after I gotten up that I have
Zero disk space left. Had a bit over 170 GB before going to bed. So what happen to to this? How do I fix this?
Do recall having to deal with a file that kept getting larger and larger unit a poster showed how to write a script to delete it every boot. I long forgotten what that is named.
How do I find the largest file or folder anyway?
This is likely due to using btrfs - btrfs is nice but it is not a set-and-forget - it requires regular maintenance.
Welcome to Manjaro!
Please read the information behind this link.
It will help you to post necessary information. [HowTo] Provide System Information
Please press the three dots
below your post and then press the …
If you give us information about your system, we can see what we’re talking about and make better suggestions.
You can do this by using
in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
Copy the output from inxi (including the command) and paste it into your post.
To make it more readable, add 3 backticks
``` on an extra line before and after the pasted text.
(Wisdom lies in reading )
This article show my how find the largest files and folders in Linux. Just had read and type in the commands in the Terminal. The file is .xsession-errors.old. I actually had this issue long before.
Strange but never had to deal with this file with other Distros I’ve used before. Now I have to write a script to delete this file on boot.
Any reason this file exist?
There is the log file
As the name suggests, errors get logged there.
When you log out and back in, a new X session starts and the file
gets renamed to:
and a fresh
~/.xsession-errors is created
You don’t need to remove it, no point in doing that as it will be replaced with what was
each time you log in.
If that file is large, huge even, as you say, then you have problems that you should address.
Start by actually looking into the contents of that file.
Found my previous post about this:
A few days my free space was like 130 gig left, yesterday it was ~100 GB. Now that I rebooted it is 70 GB. What is going on? I haven’t been downloading any very large files at all. In fact I have deleting old large large files
How do I check to see what my free space left actually is?
Couldn’t remember the file name. That is the only reason I started this thread. How can one file eat up that much space anyway?
… when many errors get logged - it is a log file
a lot of errors → large log file
It is there so you can find out that there was or is a problem -
ignoring it and deleting it is like putting tape over the check engine light and pretend that there is no problem anymore because you can’t see the light
February 2, 2023, 3:51am
This major Issue should fixed by Distro Developers, not the Users. Geez I used to be able to have Manjaro and other Distros running for days w/o the problem.
I try to run thunar as root and making the file unwritable but VLC wouldn’t run at all.
it is a file where errors are logged
You complain and blame it on anyone and anything but you, yet did not to this day take the time to actually look what the errors are.
To fix something, you need to know what the problem is, you know?
Everyone running xorg has got that file and has got no problems with it’s size.
Quit ignoring and ranting and start looking!?
I’d like to just look to know and tell you where a possible problem is.
But that is something only you can do.
and scroll trough
watch tail ~/.xsession-errors
to literally watch the file growing in real time
If this yields nothing worth that huge amount of entries, start pursuing what
February 3, 2023, 12:47pm
Thanks. But after I deleted the .xsession-error file, thunar is not updating the missing space.
I looked with Mousepad and don’t know what do from there.
I have no idea what that means.
There is no point in deleting it - it will be recreated the next time you start an X session (next time you log in).
… every time, it’s totally futile
You achieve the same with:
no need for an editor - you just want to look at what may be there
will get you “live view” on what is added to the file
If it is such a huge file then I’d expect that there is a lot of activity there.
Normally, that file is very small - with a few entries that are not really problematic, my file gets to about 20 - 30 kB
If your filesystem is BTRFS, you may have a very different and possibly serious problem
that is just manifesting itself in the form of problems with this file.
But I can’t help you with that at all.
February 3, 2023, 7:59pm
It is VLC causing the .xsession-errors to increase in size. So I have to use some other media player or prevent vlc from writing errors to the file.
… or change something in your (vlc) setup so that it
DOESN’T constantly produce these log entries/messages/errors
Like, you know, actually fix the problem?
The errors tell you something …
or us, if you share
But there are other media players that IMO are equally as good or better - I never use
February 3, 2023, 11:48pm
I found out from this guy:
The .xsession-errors file is where the X Window system logs all errors that occur within the Linux graphical environment. All desktop environments, whether Gnome, KDE, Cinnamon, XFCE, LXDE, etc., and all lighter window managers like FVWM, IceWM or...
Est. reading time: 4 minutes
# If the .xsession-errors file is not a symbolic link, delete it and create it as such
if [ ! -h $HOME/.xsession-errors ]; then
ln -s /dev/null $HOME/.xsession-errors
Wrote the above in my .bashrc file and rebooted. Sorry if I was a hardcase about this.
Well - may it work for you!
I’m sceptical that it will
because that file gets renamed to ~/.xsession-errors.old every time a new session starts
or maybe it’s contents get copied - in which case it might work
If it does work:
You have now put tape over the check engine light in the dash of your car so that you can’t see it anymore.
the symptom is hidden - like with pain killers
the cause of the problem has not been addressed at all
… what could possibly go wrong?
February 4, 2023, 3:46am
Well it seems to work. I’ve been using VLC a long time and so far it plays every media file I open. Also easy to configure.