You are not logged in.

#1 2023-06-07 09:36:57

sswybd
Member
Registered: 2023-06-07
Posts: 13

[SOLVED]software "filelight" shows different free space from that show

My arch system has 190GB total disk space. I have installed filelight. Recently I deleted the virtual windows 10 in my arch. The windows 10 is about 40GB. I checked the available space by the command "df -h" and it still shows the same available space as before, which is about 80GB. However when I used filelight, it showed about 140GB available after summing up the scanning result from root folder and home folder. I searched online about "deleting files in Linux and the space is not released" but I didn't find useful information for my situation. Now I'm not sure whether filelight or df -h is correct. "Dolphin" shows the same free space as df -h. And filelight just shows the used space of root folder and home folder respectively. I manually added them and subtracted it from 190G. And how can I make the available space right?

Last edited by sswybd (2023-06-08 02:31:14)

Offline

#2 2023-06-07 10:16:19

mukl
Member
From: Vienna, Austria
Registered: 2008-01-30
Posts: 54

Re: [SOLVED]software "filelight" shows different free space from that show

Are you using btrfs?

Offline

#3 2023-06-07 11:03:51

sswybd
Member
Registered: 2023-06-07
Posts: 13

Re: [SOLVED]software "filelight" shows different free space from that show

Yes, btrfs.

Offline

#4 2023-06-07 11:31:07

sswybd
Member
Registered: 2023-06-07
Posts: 13

Re: [SOLVED]software "filelight" shows different free space from that show

Yes it's btrfs

mukl wrote:

Are you using btrfs?

Offline

#5 2023-06-07 12:37:29

just4arch
Member
Registered: 2023-01-07
Posts: 97

Re: [SOLVED]software "filelight" shows different free space from that show

btrfs filesystem usage /mountpoint

Do you use snapshots?

Offline

#6 2023-06-07 12:42:31

sswybd
Member
Registered: 2023-06-07
Posts: 13

Re: [SOLVED]software "filelight" shows different free space from that show

Yes, I used snapshot that can only apply to btrfs, not the older type of snapshot. ( I forgot the name)

just4arch wrote:
btrfs filesystem usage /mountpoint

Do you use snapshots?

Offline

#7 2023-06-07 13:20:04

just4arch
Member
Registered: 2023-01-07
Posts: 97

Re: [SOLVED]software "filelight" shows different free space from that show

sswybd wrote:

Yes, I used snapshot that can only apply to btrfs, not the older type of snapshot. ( I forgot the name)

So you'll have to make sure the file you deleted doesn't exist in any snapshot, otherwise the space isn't freed.

Does the command I gave you tell you more about the discrepancy you're observing?

Offline

#8 2023-06-07 13:41:16

sswybd
Member
Registered: 2023-06-07
Posts: 13

Re: [SOLVED]software "filelight" shows different free space from that show

sudo btrfs filesystem usage /
[sudo] password for sswybd:
Overall:
    Device size:                 190.00GiB
    Device allocated:            117.02GiB
    Device unallocated:           72.98GiB
    Device missing:                  0.00B
    Device slack:                    0.00B
    Used:                        111.62GiB
    Free (estimated):             77.40GiB      (min: 40.91GiB)
    Free (statfs, df):            77.40GiB
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:              224.59MiB      (used: 0.00B)
    Multiple profiles:                  no

Data,single: Size:113.01GiB, Used:108.58GiB (96.09%)
   /dev/nvme0n1p7        113.01GiB

Metadata,DUP: Size:2.00GiB, Used:1.52GiB (75.93%)
   /dev/nvme0n1p7          4.00GiB

System,DUP: Size:8.00MiB, Used:16.00KiB (0.20%)
   /dev/nvme0n1p7         16.00MiB

Unallocated:
   /dev/nvme0n1p7         72.98GiB

I used the command and it agreed with df -h.

just4arch wrote:
sswybd wrote:

Yes, I used snapshot that can only apply to btrfs, not the older type of snapshot. ( I forgot the name)

So you'll have to make sure the file you deleted doesn't exist in any snapshot, otherwise the space isn't freed.

Does the command I gave you tell you more about the discrepancy you're observing?

Offline

#9 2023-06-07 13:46:33

sswybd
Member
Registered: 2023-06-07
Posts: 13

Re: [SOLVED]software "filelight" shows different free space from that show

I deleted all my previous snapshots, and it is normal now (with much more extra free space), except for that the filelight shows less free space than that of df -h now. And since very long time ago, I can't delete one exact snapshot. I don't know why. But never mind.

just4arch wrote:
sswybd wrote:

Yes, I used snapshot that can only apply to btrfs, not the older type of snapshot. ( I forgot the name)

So you'll have to make sure the file you deleted doesn't exist in any snapshot, otherwise the space isn't freed.

Does the command I gave you tell you more about the discrepancy you're observing?

Offline

#10 2023-06-07 14:38:58

just4arch
Member
Registered: 2023-01-07
Posts: 97

Re: [SOLVED]software "filelight" shows different free space from that show

If your issue is solved, please mark your thread as such by prepending [SOLVED] to the title of the first post.

Offline

Board footer

Powered by FluxBB