You are not logged in.

#1 2024-06-21 22:18:38

bobheart
Member
Registered: 2023-03-15
Posts: 25

[Solved] Disk Space Discrepancy

I have some confusion about my disk space something doesn't seem to add up. I'm looking at partition /dev/nvme0n1p1 there seems to be 47 GB missing. The df command basically says 47 GB is unusable but when I look at gparted it says it's there somewhere unused. Any ideas on what's happening here?

math:
Size-(Used+Available)~=0. 
938G - (806G+85G) = ?
echo "938-(806+85)" | bc
47(G)
df -h
Filesystem             Size  Used Avail Use% Mounted on
dev                          16G     0   16G   0% /dev
run                          16G  1.4M   16G   1% /run
efivarfs                   128K   51K   73K  41% /sys/firmware/efi/efivars
/dev/nvme0n1p1  938G  806G   85G  91% /
tmpfs                      16G   93M   16G   1% /dev/shm
tmpfs                      16G   13M   16G   1% /tmp
/dev/sdb1              1.9T  1.8T   67G  97% /mnt/videodisk
tmpfs                      3.2G   48K  3.2G   1% /run/user/1000
 lsblk /dev/nvme0n1
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 953.9G  0 disk 
└─nvme0n1p1 259:1    0 953.9G  0 part /
data in gparted:
Partition                File-System        Mount-Point Size        Size       Used            Unused       Flags
/dev/nvme0n1p1           ext4               /                       953.87GiB  821.39GiB       132.47GiB     boot, esp

Last edited by bobheart (2024-06-22 16:22:38)

Offline

#2 2024-06-21 22:43:47

seth
Member
Registered: 2012-09-03
Posts: 54,482

Offline

#3 2024-06-22 06:29:02

bobheart
Member
Registered: 2023-03-15
Posts: 25

Re: [Solved] Disk Space Discrepancy

Thanks that was exactly what it was reserving disk space for root partition. I can change the amount of reserved blocks with is great,
but I can't get this command that is supposed to check the amount of blocks reserved to work.
How do I know the proper name of my mapper?

arch wiki tutorial 
"To query the current number of reserved blocks:
# tune2fs -l /dev/mapper/proxima-root | grep 'Reserved block count:'
Reserved block count:     2975334"
When I run the command:
sudo tune2fs -l /dev/mapper/proxima-root 
tune2fs 1.47.1 (20-May-2024)
tune2fs: No such file or directory while trying to open /dev/mapper/proxima-root
Couldn't find valid filesystem superblock.

Offline

#4 2024-06-22 06:50:48

seth
Member
Registered: 2012-09-03
Posts: 54,482

Re: [Solved] Disk Space Discrepancy

/dev/mapper/proxima-root is a placeholder in the wiki - you want to check /dev/nvme0n1p1

Offline

#5 2024-06-22 16:21:51

bobheart
Member
Registered: 2023-03-15
Posts: 25

Re: [Solved] Disk Space Discrepancy

Got it thanks it works perfectly I did that but it wasn't working last night. I think you have to restart your computer to see it update or something. Thanks for the help.

Last edited by bobheart (2024-06-22 16:23:02)

Offline

Board footer

Powered by FluxBB