• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • The forum software that supports hummy.tv has been upgraded to XenForo 2.0!

    This is a major upgrade which changes the look and feel of the forum somewhat but brings a host of improvements too. Please bear with us as we continue to tweak things and report any issues or suggestions in Site/Forum Issues.

Beta [vbigdisk] Very large disk size spoof

af123

Administrator
Staff member
#1
This is an experimental package which should convince the Humax firmware that an internal disk is no larger than 4TB in size and has no more than 4TB of free space.

Assuming you have opkg-beta installed, just opkg install vbigdisk and reboot...

If your internal disk is 4TB or under, you won't notice any change.
 

Black Hole

May contain traces of nut
#2
Out of curiosity, how does that help? It's not much use having a (say) 6TB drive in there if the Humax decides it's full with 4TB of content. Might just as well limit the formatting at 4TB.
 
OP
OP
af123

af123

Administrator
Staff member
#3
To the Humax software, it will appear to be a 4TB disk with 4TB of free space until there is less than 4TB of free space. Then it will still appear as a 4TB disk but with decreasing free space which will at this point match the real free space on the disk.

I did think of scaling the free space so it was mapped onto the available 4TB space, but there's an advantage in having that last 4TB represented properly I think..
 
Last edited:
OP
OP
af123

af123

Administrator
Staff member
#4
Apart from the interposition stuff, the code is effectively just:

C:
        if (st->f_blocks > 973568443)
                st->f_blocks = 973568443;
        if (st->f_bfree > 973568443)
                st->f_bfree = 973568443;
 
OP
OP
af123

af123

Administrator
Staff member
#6
How did you derive that magic number?
It's the total number of blocks on the media partition of a 4TB drive formatted with gptf..

Bash:
humax# stat -f /mnt/hd2
  File: "/mnt/hd2"
    ID: 0        Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 973568443  Free: 488623555  Available: 488623555
Inodes: Total: 3804288    Free: 3767726
We know this works and makes the standard interface report a 4TB disk
 

peterworks

Ye Olde Bowler
#9
As an initial observation I get the attached (which shows a blank segment) when first opening WebIf. It resolves itself within a second or two.
Capture30-03-2018-14.44.28.jpg
 

peterworks

Ye Olde Bowler
#11
Would you like someone (me) to install it on a 1tb machine to check that it has no impact ?
It has had no obvious impact that I could discern. However today the disk had 8 Current_Pending_Sectors and 8 Offline_Uncorrectables. Fixdisk sorted them out but is it possible that vbigdisk may have somehow caused this ?
I will remove the package anyway as I have no need of it.