-
Commads: Why df -h and lsblk show different sizes of my one and only certain drive?
good day dear Community
hope this goes into the right sub-forum
well the thing i am struggling at the moment:
okay - the commands work differently.
lsblk: normally i am using the lsblk command to view the available disk devices and their mount points (if applicable)
df-h: well in general i use df -h command to verify the size of the file system for each volume.
Teh Question is : Why df -h and lsblk show - in all most every case a different sizes of my one and only certain drive
-
The reference of the output of lsblk is GiB. If you purchased a 1 TB disk the number is based on 1000 but in reference to Gib (1024) is 931 GB. The partition size versus filesystem sizes are different because a filesystem contains overhead called metadata of which ext4 is about 2.3%. filesystem size does not include metadata. In addition ext4 has 5% reserved space not necessarily counted. All adds up to be the size of the partition.
df -h displays size in powers of 1024.
-
The difference in drive size reported by df -h and lsblk is normal - df -h shows the usable file system space, while lsblk reports the raw device size. This explains the slight discrepancy you're seeing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|