Disk space calculation, Windows partition resizing, `Get-PartitionSupportedSize` interpretation.
Raw Developer Origin & Technical Request
GitHub Issue
Oct 31, 2026
### What happened?
# hop.exe patch — false "not enough free space" on C:
## Summary
`hop.exe` (v0.1.1.0, "Install Linux next to Windows without a USB stick") refused to start
with `Drive C: needs about {N} GB more free space`, even though C: had ~239 GB free.
The cause is that hop sized the install from the partition's *shrinkable* space
(`Get-PartitionSupportedSize`), which on this disk is only ~142 MB (1.1 GB after a
`defrag /X`) because of immovable files at the end of the volume — not from the
actual free space inside the NTFS volume.
## Extracted component
The logic lives in an embedded PowerShell script inside `hop.exe` (a .NET assembly).
It is stored as a plain-text run in the `.text` section (extracted run #3, 11,110 bytes,
offset `0x1930c`). The relevant function is `Get-SpaceInfo`.
## Original code
```powershell
function Get-SpaceInfo {
$c = Get-WindowsPartition
$supported = Get-PartitionSupportedSize -DiskNumber $c.DiskNumber -PartitionNumber $c.PartitionNumber
$tail = Get-TailFree
[pscustomobject]@{
Partition = $c
MinSize = [int64]$supported.SizeMin
TailFree = $tail
# GB Linux can get: free space after C:, plus what C: can give up while Windows keeps its reserve.
UsableGB = [int][math]::Floor(($tail + $c.Size - $supported.SizeMin - $WindowsReserve) / 1GB)
}
}
```
`$WindowsReserve` is `8GB` (defined in the same engine, run #2).
## Patched code
```powershell
UsableGB = [int](([IO.Driv...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from Arjun-Ingole/hop.
Frequently Asked Questions
Market intelligence mapped to Disk space calculation, Windows partition resizing, `Get-PartitionSupportedSize` interpretation..
What problem does Disk space calculation, Windows partition resizing, `Get-PartitionSupportedSize` interpretation. solve?
What is the general sentiment around Disk space calculation, Windows partition resizing, `Get-PartitionSupportedSize` interpretation.?
What architecture is tied to Disk space calculation, Windows partition resizing, `Get-PartitionSupportedSize` interpretation.?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like hop.exe patch and not enough free space in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- hop.exe patch: 1 records
- not enough free space: 1 records
- Get-PartitionSupportedSize: 1 records
- shrinkable space: 1 records
- immovable files: 1 records
- NTFS volume: 1 records
- Get-SpaceInfo: 1 records
- $WindowsReserve: 1 records
- UsableGB: 1 records
- defrag /X: 1 records
- [IO.Driv...: 1 records
SaaS Metrics