LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2022, 01:36 PM   #1
todovvox
LQ Newbie
 
Registered: Apr 2022
Distribution: Debian, Manjaro
Posts: 7

Rep: Reputation: 1
Something took a lot of space out of nowhere (?)


Hey, my distribution is Debian. I'm using i3wm. Just seconds ago - I was using youtube, bluetooth manager and discord, while listening to music and reading a book. I saw something changing on my i3 bar, so I checked it and it was my disk's space going down. It was around 100GB, and it got down to 84GB. I couldn't find what was causing it, so I've rebooted my system - I was curious if some task used my disk as some sort of temporary storage, but no. The memory stays at 84GB right now. If I didn't stop that back then, it would go even further.


When I have opened htop back then, it showed two tasks of rsyslogd taking up like 70% of CPU, and on top of that was systemd-journald, which was taking 100%.

After the reboot everything is below 10% on htop. What caused this? How can I check where the space went?

Last edited by todovvox; 04-17-2022 at 01:38 PM.
 
Old 04-17-2022, 02:04 PM   #2
todovvox
LQ Newbie
 
Registered: Apr 2022
Distribution: Debian, Manjaro
Posts: 7

Original Poster
Rep: Reputation: 1
Okay, I think I know the reason - something was not stable with my USB port. I'm using headphones on bluetooth, and just seconds before the disk space was being taken over it was pinging with a lot of logs into logfiles in my /var/log dir. After using cat on the logfiles, it showed a lot of pulseaudio logs writing to them. Same message, over and over.

After truncating the logfiles - 21GBs of space got freed.
 
Old 04-18-2022, 04:56 AM   #3
killerhippy
LQ Newbie
 
Registered: Jan 2021
Location: Germany
Distribution: debian
Posts: 22

Rep: Reputation: Disabled
Hello Todovvox,

the necessity of finding big files occurred from time to time here, too.
So I googled and wrote a script that should help me in these cases.

Here it is:

Quote:
#!/bin/sh
usage () {
echo "$0 [OPTIONS]"
echo "OPTIONS ARE:"
echo "<path>"
}
# check given option
if [ "$#" -lt 1 ]; then
echo "Need path"
usage
exit 1
fi

find "$1" -mount -size +10M -exec ls -hs {} \; | sort -nr
 
1 members found this post helpful.
Old 04-19-2022, 11:55 AM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,804

Rep: Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203
Another quick helper
Code:
du -akx | sort -n
If open files are deleted then they still occupy disk space (so don't do that). You can still find them with
Code:
lsof | grep "(deleted)"
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a way to show only ACTUAL normal mounted devices? Lot of distros seem to put lot of stuff in there Red Squirrel Linux - Software 14 05-25-2020 02:16 AM
Space disk "used" in df is nowhere to be found with du Suyiko Linux - Newbie 5 05-20-2015 10:07 AM
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 02:50 PM
Something depends on something else but something else is to be installed javascriptninja Linux - Newbie 3 02-05-2012 04:22 PM
Lilo Screwed Up Out Of Nowhere sovietpower Linux - Software 8 12-26-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration