Linux New 2TB SSD but TvHeadend shows storage space: 1781GiB free/0 used/1876 GiB total ?
#1
Hello everyone,

I connected a new SSD hard drive via USB to my Raspi4 with LibreELEC 11.0.3 / Tvheadend 4.3-2091 and created an ext4 partition.
The result of the "parted -l" command is as expected (see log here). The result of the "df" command shows 0% usage, so theoretically 100% free (log)
In the web interface of TvHeadend, however, it is displayed that 1781 GiB are free and 0 GiB are used by TvHeadend (with a total storage space of 1876 GiB).
That's at least 95 GiB difference.
Anyone know why that is? Can I somehow use the full potential of the hard drive?
Thank you.
Reply
#2
(2023-08-01, 21:17)AstrixX Wrote: Hello everyone,

I connected a new SSD hard drive via USB to my Raspi4 with LibreELEC 11.0.3 / Tvheadend 4.3-2091 and created an ext4 partition.
The result of the "parted -l" command is as expected (see log here). The result of the "df" command shows 0% usage, so theoretically 100% free (log)
In the web interface of TvHeadend, however, it is displayed that 1781 GiB are free and 0 GiB are used by TvHeadend (with a total storage space of 1876 GiB).
That's at least 95 GiB difference.
Anyone know why that is? Can I somehow use the full potential of the hard drive?
Thank you.

i can see youve never used a computer before so try this - https://www.google.com/search?q=why+is+m...nly+1876GB

key results

https://www.nextofwindows.com/why-my-2-t...in-windows
https://osgamers.com/frequently-asked-qu...nly-1-8-tb
https://www.quora.com/Why-does-my-2TB-ha...B-of-space
https://www.reddit.com/r/DataHoarder/com...p_as_18tb/
https://forums.tomshardware.com/threads/...b.2945109/

------

basically
manufacturers are using a 1000 byte scheme when advertising 2TB but this is 24 bytes less than the 1024 bytes than a filesystem uses so it does not match up to "advertised"
Reply
#3
Hello jepsizofye,
maybe you should have read my question better, because your answer has absolutely nothing to do with it Wink
I know that 1 Kibibyte (KiB) = 1024 bytes, etc. but that's not what the topic is about.
TvHeadend shows me a total storage space of 1876 GiB, but only 1781GiB should be free, although 0 GiB are used.
Reply
#4
(2023-08-01, 21:48)AstrixX Wrote: Hello jepsizofye,
maybe you should have read my question better, because your answer has absolutely nothing to do with it Wink
I know that 1 Kibibyte (KiB) = 1024 bytes, etc. but that's not what the topic is about.
TvHeadend shows me a total storage space of 1876 GiB, but only 1781GiB should be free, although 0 GiB are used.


You are running 512B sectors. This is disk formatting file systen overhead. You could get some of it back with 4KB sectors but the SSD and OS must support it. 512B is universally supported.

I generally assume a 10% loss in capacity for the 1024/100 and file system formatting overhead. You are righr near this with 2000GB vs. 1781GB.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#5
That's right, but it doesn't matter here. I don't compare anything with the display of the operating system. What is certain is that 0% are used. That says both TvHeadend and the operating system.
I only did the story with "parted" and "df" to check.
However, the display from the web interface of TvHeadend alone is sufficient. It says 1781GiB free / 0 used / 1876 GiB total.
And that in itself is strange if there are 95 GiB missing.
With 1781 GiB free / 0 used / 1876 GiB total, nothing is converted. The units are identical.
Reply
#6
i still fail to see what this has to do with the kodi addon for tvheadend

did you need help setting up the addon or have an issue with it?
Reply
#7
Hi,

the reason for this discrepancy is primarily that:
- information about the total capacity is taken by Tvheadend from the information provided by the system
- but Tvheadend calculates the occupied capacity itself as the sum of the sizes of the individual files registered in its database

The difference in information between the system and Tvheadend can be caused by several factors at the same time:
1. the difference between the size of the file and the size of the disk space it takes up - here the size of the blocks plays a role
2. There may be files from old recordings on the disk, which Tvheadend no longer registers - this may be the result of some application crashes, Tvheadend suddenly ending during recording or some other errors. The information about the recording is no longer in the database, but there is still a file from it on the disk - check, if the amount of memory occupied in Tvheaded = 0, whether the recording directory is also empty in the system

However, even if you exclude all this and take it into account, there will always be some difference. The difference is also there with my Tvheadend. I have a 0.5 TB drive and the difference is about 23 GB. When I approximate it to a 2TB disk, it roughly corresponds to your information. So take it, like me, as probably some small error of Tvheadend and don't worry about it. It's a few GB and I don't think it's that important.
Reply

Logout Mark Read Team Forum Stats Members Help
New 2TB SSD but TvHeadend shows storage space: 1781GiB free/0 used/1876 GiB total ?0