I am running Debian 12 fulled updated. I keep getting a message saying
that my /var is almost full. What can I safely delete to make more room
for it.
I am running Debian 12 fulled updated. I keep getting a message saying that my /var is almost full. What can I safely delete to make more room for it. It is an HP Desktop Mo1-F3xxx, 8gb ram, Realtec Audio, AMD Ryzen 5 5600G. I also have a 2TB Seagate HD plugged in for backups.
Any help will be greatly appreciated.
There are 15 files in Var and the biggest one is the cache file. Is
it safe to get rid of the contents of the whole file. It takes up 57%
of the drive.
There are 15 files in Var and the biggest one is the cache file. Is it safe to get rid of the contents of the whole file. It takes up 57% of the
drive.
This is what I got
root@debian:/home/maureen# apt-get clean
root@debian:/home/maureen# cd /var
root@debian:/var# du -sh*
du: invalid option -- '*'
root@debian:/var# du sh
du: cannot access 'sh': No such file or directory
root@debian:/var# du -sh
3.7G .
On Thu, Mar 06, 2025 at 09:33:40PM -0500, Maureen Thomas wrote:
root@debian:/home/maureen# cd /var
root@debian:/var# du -sh*
du: invalid option -- '*'
Missing space between 'h' and '*' so the '*' was treated as an option,
which is invalid. The '*' is unnecessary anyway.
I am running Debian 12 fulled updated. I keep getting a message saying
that my /var is almost full. What can I safely delete to make more room
for it. It is an HP Desktop Mo1-F3xxx, 8gb ram, Realtec Audio, AMD
Ryzen 5 5600G. I also have a 2TB Seagate HD plugged in for backups.
Any help will be greatly appreciated.
Moe
I am running Debian 12 fulled updated. I keep getting a message saying that my /var is almost full. What can I safely delete to make more room for it.
I prefer:[...]
# du -d 2 -m /var | sort -rn | head
On Fri, Mar 07, 2025 at 02:41:33 +0000, Andy Smith wrote:
On Thu, Mar 06, 2025 at 09:33:40PM -0500, Maureen Thomas wrote:
root@debian:/home/maureen# cd /var
root@debian:/var# du -sh*
du: invalid option -- '*'
Missing space between 'h' and '*' so the '*' was treated as an option,
which is invalid. The '*' is unnecessary anyway.
It's totally necessary.
root@hobbit:/var# du -sh
2.1G .
root@hobbit:/var# du -sh *
4.0M backups
124M cache
40K games
209M lib
4.0K local
0 lock
1.8G log
8.0K mail
4.0K opt
2.3M qmail
0 run
3.6M spool
32K tmp
There are 15 files in Var and the biggest one is the cache file. Is it
safe to get rid of the contents of the whole file. It takes up 57% of
the drive.
On 3/6/25 20:24, Maureen Thomas wrote:
I am running Debian 12 fulled updated. I keep getting a message saying
that my /var is almost full. What can I safely delete to make more room for it.
First, find out where the space is being used. Something like baobab
might be useful. It might the apt cache directory, or some gigantic log file, or some file you placed there and forgot.
David Christensen [2025-03-06 18:58:12] wrote:
I prefer:[...]
# du -d 2 -m /var | sort -rn | head
Agreed. I personally use just `du | sort -n` (I can't see the benefit
of the `-d2` and I rely on the terminal's scrolling to filter out the
small fry instead of using `-r` and `head`).
But indeed, the `-m` is a good idea, thanks (never bothered to look for
such a thing).
I am running Debian 12 fulled updated. I keep getting a message saying
that my /var is almost full. What can I safely delete to make more room
for it. It is an HP Desktop Mo1-F3xxx, 8gb ram, Realtec Audio, AMD
Ryzen 5 5600G. I also have a 2TB Seagate HD plugged in for backups.
Any help will be greatly appreciated.
Moe
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:22:06 |
Calls: | 10,389 |
Calls today: | 4 |
Files: | 14,061 |
Messages: | 6,416,875 |
Posted today: | 1 |