You are not logged in.

#1 2023-09-01 06:45:29

d1msk1y
Member
Registered: 2023-09-01
Posts: 3

Almost no free space, but the disk must be empty

The fdisk -l otuput:

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: KBG40ZNS256G TOSHIBA MEMORY             
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9C2AD130-8B7B-4F65-B540-B5EBD8944452

Device           Start       End   Sectors   Size Type
/dev/nvme0n1p1    2048   1955839   1953792   954M EFI System
/dev/nvme0n1p2 1955840 500117503 498161664 237.5G Linux filesystem

The df -h output:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.6G     0  7.6G   0% /dev
run             7.7G  1.6M  7.7G   1% /run
/dev/nvme0n1p2  233G  218G  3.3G  99% /
tmpfs           7.7G   39M  7.6G   1% /dev/shm
tmpfs           7.7G  331M  7.3G   5% /tmp
/dev/nvme0n1p1  953M  113M  840M  12% /boot
tmpfs           1.6G   76K  1.6G   1% /run/user/1000

What can it be, I have arch installed on two more machines, but never faced that problem? It's pretty much fresh btw

UPDATE:
Forgot to mention, ncdu i used as well, still pointless tho

--- / ----------------------------------------------------------------------------------------------------------
.  12.6 GiB [################] /home                                                                            
.   6.9 GiB [########        ] /usr                                                                             
.   2.6 GiB [###             ] /var                                                                             
.   2.5 GiB [###             ] /opt                                                                             
. 424.9 MiB [                ] /tmp                                                                             
  112.3 MiB [                ] /boot                                                                            
.   9.1 MiB [                ] /etc                                                                             
.   1.5 MiB [                ] /run                                                                             
.   1.0 MiB [                ] /dev                                                                             
   12.0 KiB [                ] /srv                                                                             
e   4.0 KiB [                ] /mnt                                                                             
e   4.0 KiB [                ] /efi                                                                             
.   0.0   B [                ] /proc                                                                            
.   0.0   B [                ] /sys                                                                             
@   0.0   B [                ]  sbin                                                                            
@   0.0   B [                ]  lib64                                                                           
@   0.0   B [                ]  lib                                                                             
@   0.0   B [                ]  bin                                                                             
!   0.0   B [                ]  root                                                                            
!   0.0   B [                ]  lost+found      

Last edited by d1msk1y (2023-09-01 08:09:48)

Offline

#2 2023-09-01 06:57:17

kermit63
Member
Registered: 2018-07-04
Posts: 371

Re: Almost no free space, but the disk must be empty

man du

Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.

Offline

#3 2023-09-01 07:04:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,104

Re: Almost no free space, but the disk must be empty

Better, even: https://archlinux.org/packages/extra/x86_64/ncdu/

@d1msk1y, please use [code][/code] tags. Edit your post in this regard.
(You'll see, why)

Offline

#4 2023-09-01 08:10:06

d1msk1y
Member
Registered: 2023-09-01
Posts: 3

Re: Almost no free space, but the disk must be empty

Updated my post, nothing helped

Offline

#5 2023-09-01 08:49:03

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,557
Website

Re: Almost no free space, but the disk must be empty

Mount your root partition into, e.g. /mnt and run du (or ncdu) against that mount point. If this is a btrfs partition then mount the top level subvolume.

My guess is you either have old data hidden under /home, or a btrfs subvol that isn't exposed is taking up space.

Last edited by WorMzy (2023-09-01 09:23:34)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2023-09-01 09:05:28

d1msk1y
Member
Registered: 2023-09-01
Posts: 3

Re: Almost no free space, but the disk must be empty

Well it was docker who took 162 gb of space!

sudo docker system df
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          0         0         0B        0B
Containers      0         0         0B        0B
Local Volumes   24        0         1.284GB   1.284GB (100%)
Build Cache     910       0         162.6GB   162.6GB

Offline

#7 2023-09-01 09:20:10

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,388

Re: Almost no free space, but the disk must be empty

ncdu says ~25G
df says ~218G
fishy.

googling gave me this:
https://serverfault.com/questions/27520 … nvestigate

edit: too slow!
remember to mark your thread as solved.

Last edited by jl2 (2023-09-01 11:43:50)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB