I'm trying to find the full disk space of my whole disk. I used the df
command and typed df -h
and I saw my disk which is called sda
however df
only shows me the first partition for my sda
disk which is sda1
,
It shows the the available space and used space for sda1
but it does not show the unused/free disk space, why is this the case, why does it not show me my unused space and only my used primary partition from where my Debian machine is installed (sda1)?
However when i used a command such as cfdisk
it showed me that I had '356GB' free but on df
it does not show, so I'm pretty confused as to why it only shows sda1
and not the full information for my whole disk and not just one partition.
df
will only ever show you free/used space on mounted partitions/filesystems.fdisk -l
and post the output. df will only show disk usage of mounted partitions as said by @Kusalananda.