You are not logged in.

#1 2019-02-24 00:14:50

Amaury
Member
Registered: 2019-02-12
Posts: 14

df says my disk is half-full, but du says otherwise (ssd maintenance)

I recently installed Arch on my laptop that has 1 HDD ans 1 SSD.
So I partitioned it like so :

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119,2G  0 disk 
├─sda1   8:1    0   512M  0 part /boot
└─sda2   8:2    0 118,8G  0 part /
sdb      8:16   0 465,8G  0 disk 
├─sdb1   8:17   0    32G  0 part /var
├─sdb2   8:18   0     8G  0 part /tmp
├─sdb3   8:19   0    16G  0 part [SWAP]
└─sdb4   8:20   0 409,8G  0 part /data

And my home dir has symbolic links to /data (on hdd) for directories like pictures etc

I noticed that Thunar said that my disk was half full, while I installed very few things since my installation (xfce, i3, firefox but not much more)
the command df -h / said the same thing :

Filesystem   Size    Used  Avail.  Used%   Mounted on
/dev/sda2    117G    64G   47G     58%     /

What bothers me even more is that in the span of an hour it went from 48% to 58% (without downloading/installing anything)

So I ran du -hx -d1 / to see what too space, and it shows only 4,1G :

12K	/srv
7,1M	/etc
116K	/root
1001M	/home
16K	/lost+found
4,0K	/opt
3,1G	/usr
4,1G	/

After rebooting my computer, df and Thunar show 4,1G like they're supposed to. But I'm still concerned with all these writes my SSD is having. I don't want to fill/unfill it just by installing a few packages.

If you have any idea on what may cause this, thanks in advance !

Offline

#2 2019-02-24 10:04:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: df says my disk is half-full, but du says otherwise (ssd maintenance)

What format?  As an aside, I think /tmp should be tmpfs not physical disk.

Offline

#3 2019-02-24 11:36:11

Amaury
Member
Registered: 2019-02-12
Posts: 14

Re: df says my disk is half-full, but du says otherwise (ssd maintenance)

Everything is un ext4.

Could it be temporary files that were written and then deleted, bit still seen as taking space ? Because I had done a few pacman installations before but 60G seems disproportionate...

Last edited by Amaury (2019-02-24 11:36:30)

Offline

#4 2019-02-24 11:40:30

frostschutz
Member
Registered: 2013-11-15
Posts: 1,653

Re: df says my disk is half-full, but du says otherwise (ssd maintenance)

you can use lsof to check for deleted-but-in-use files

Online

#5 2019-02-24 12:52:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: df says my disk is half-full, but du says otherwise (ssd maintenance)

Unmount and fsck yourself then report back:

# e2fsck -fv /dev/partition

Offline

Board footer

Powered by FluxBB