# Why is my 1TB SSD showing only 890GB of usable space in Nextcloud?

**URL:** <https://help.nextcloud.com/t/why-is-my-1tb-ssd-showing-only-890gb-of-usable-space-in-nextcloud/202375>\
**Category:** ℹ️ Support\
**Tags:** nc29\
**Created:** [September 2, 2024, 2:54pm UTC](https://help.nextcloud.com/t/why-is-my-1tb-ssd-showing-only-890gb-of-usable-space-in-nextcloud/202375 "2024-09-02T14:54:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [September 2, 2024, 8:37pm UTC](https://help.nextcloud.com/t/why-is-my-1tb-ssd-showing-only-890gb-of-usable-space-in-nextcloud/202375/4 "2024-09-02T20:37:36Z")

</div>

> [@Agustin\_Berguecio](#):
>
> Running df -h on my server shows that the SSD (/dev/sda1) is 953.9GB.  
> Nextcloud reports 890.11GB of usable space for this partition.

The Nextcloud _`serverinfo`_ app does not use the total disk size as listed in the _`size`_ column of the _`df -h`_ command. Instead, it uses the _`df -TPk`_ output to determine “Used” and “Available” space and calculates the file system size based on the sum of these two values.

> [@Agustin\_Berguecio](#):
>
> Filesystem: ext4

The ext4 file system reserves a portion of disk space for administrative purposes, which is not included in the ‘used’ and ‘available’ space reported by `df`. This reserved space is intended to prevent file system fragmentation and ensure that critical system operations can continue even when the disk is nearly full.

To calculate the size of the reserved blocks and convert it into human-readable formats (KB, MB, and GB), you can use the following script:

```sh
device="/dev/sda1"

# Extract block size and reserved block count
blocksize=$(tune2fs -l $device | awk '/Block size:/ {print $NF}')
reserved=$(tune2fs -l $device | awk '/Reserved block count:/ {print $NF}')

# Calculate reserved space in KB, MB, and GB
reserved_kb=$((reserved * blocksize / 1024))
reserved_mb=$((reserved_kb / 1024))
reserved_gb=$((reserved_mb / 1024))

# Display results
echo "Reserved space: $reserved_kb KB"
echo "Reserved space: $reserved_mb MB"
echo "Reserved space: $reserved_gb GB"

```

* * *

Much and good luck,  
ernolf

---

_[View the full topic](https://help.nextcloud.com/t/why-is-my-1tb-ssd-showing-only-890gb-of-usable-space-in-nextcloud/202375)._
