Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

system disk partition almost full - not enough free space

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
carmima
Posts: 45
Joined: 2012-05-29 14:20

system disk partition almost full - not enough free space

#1 Post by carmima »

hello
I tought 16Go was sufficient for a clean / bullseye system.
My / file system is 99% full

E: You don't have enough free space in /var/cache/apt/archives/.
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.7G 0 7.7G 0% /dev
tmpfs 1.6G 1.8M 1.6G 1% /run
/dev/nvme0n1p2 17G 16G 162M 99% /

Is there a way to clean my system, and regain some disk space?
thank you

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: system disk partition almost full - not enough free spac

#2 Post by 4D696B65 »

As root

Code: Select all

apt clean

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: system disk partition almost full - not enough free spac

#3 Post by CwF »


p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: system disk partition almost full - not enough free spac

#4 Post by p.H »

carmima wrote:I tought 16Go was sufficient for a clean / bullseye system.
It depends on many things. Whether you install many/big packages, /home and /var are included in the / filesystem...
What do you mean by "clean" ?
carmima wrote:Is there a way to clean my system, and regain some disk space?
It depends on what takes the disk space. Install packages, cached data, logs, user data...

Code: Select all

du -hxd1 / | sort -h
(Edit: fixed mistake, thanks to sunrat for the correction)

and recursively with directories which appear to take most space.
/home -> user data
/usr -> packages
/var/log -> logs
/var/cache -> cached data
Last edited by p.H on 2021-06-17 14:33, edited 2 times in total.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: system disk partition almost full - not enough free spac

#5 Post by arochester »

What kind of computer is that? make and Model?

Are you using the whole drive or a part that is partitioned?

I have been using an HP Stream for a while now. It only has 16Gb. Maybe I should eventually install the system on the SDHC card and use the entire 16Gb as /Home.

I like some of the advice on the Easy Linux Tips Project. Ok it is principally about Linux Mint and Ubuntu but it is applicable to Debian. It particularly advises about the problems apps like Bleachbit can bring.
https://easylinuxtipsproject.blogspot.c ... -mint.html
https://easylinuxtipsproject.blogspot.c ... buntu.html

User avatar
sunrat
Administrator
Administrator
Posts: 6465
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 473 times

Re: system disk partition almost full - not enough free spac

#6 Post by sunrat »

p.H wrote:

Code: Select all

du -hxd1 / | grep sort -h
should be

Code: Select all

du -hxd1 / | sort -hr
Last edited by sunrat on 2021-06-17 13:38, edited 1 time in total.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: system disk partition almost full - not enough free spac

#7 Post by CwF »

Bleachbit as a wrecking ball? Humorous. It's as potentially damaging as a keyboard.

Perhaps if we tried it we'd know!

I've used it hundreds of times. It tells you specifically what's going to happen.

I've used it to compact an OS on a disk to be pulled into a image file, only to find it leaves lots of cruft in /home that needs manually deleted.
That reminds me, I've never tried cruft...
https://packages.debian.org/search?keyw ... lla-search

Also, all the languages we don't read...
https://packages.debian.org/search?suit ... ocalepurge

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: system disk partition almost full - not enough free spac

#8 Post by p.H »

CwF wrote:It tells you specifically what's going to happen.
What do you mean exactly by "what's going to happen" ? What it's going to do or the functional consequences of what it's going to do ?

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: system disk partition almost full - not enough free spac

#9 Post by CwF »

p.H wrote:What it's going to do or the functional consequences of what it's going to do ?
Yes, the consequences of the actions require the users common sense.
There are whitelist and blacklist. There are many options to sort through, you can select nothing...
Then with something selected it can do a practice run giving you a list of the proposed deletions.

Read it.

It has many plugins to handle programs with caches, temps, etc. in addition to standard OS cleaning like apt options. The only time I've seen it screw something up was a hacked into stable not in repository type deal - did I mention the whitelist...

There is 'as user' and 'as root' options and that's very different. Once set up for a given install, I simply click through, open, go, done, literally seconds. On a full 16G typically sloppy system I'd expect 2-3GB of obvious cruft. Lots more it will leave in home. If anything installed is out of repository, pay attention!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: system disk partition almost full - not enough free spac

#10 Post by p.H »

CwF wrote:Yes, the consequences of the actions require the users common sense.
That does not answer the question.
Besides, this sentence does not make any sense : consequences are just consequences, they do not require anything.

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: system disk partition almost full - not enough free spac

#11 Post by CwF »

p.H wrote:this sentence does not make any sense
Okidoki

paxmark1
Posts: 54
Joined: 2008-10-23 05:19
Has thanked: 1 time

Re: system disk partition almost full - not enough free spac

#12 Post by paxmark1 »

Almost a necropost - but what worked for me on old atoms was (on fluxbox, i3 and sway)

1. Add a SDHC - the atoms or keyboards or ... died before the SDHC's did
2. lvm was slicker than glycerin for install and manipulation if needed. Your mileage may vary (YMMV)
3. ncdu is a good addition to du, It is cli but aids seeing a larger picture.
4. Of course as above apt clean

I always appreciate posts that give system info via inxi.

Mark as Solved?

CwF
Global Moderator
Global Moderator
Posts: 2680
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

Re: system disk partition almost full - not enough free spac

#13 Post by CwF »

paxmark1 wrote:Mark as Solved?
post 1. OP
post 2-* establish forum egos quibble.
OP never returns....
typical, so who knows? Many silent readers maybe got something out of it.

Post Reply