Formatting SD card does not cause free space to be recalculated
Closed this issue · 3 comments
evilC commented
Seen on: 9.3.0-09eef33 rx:74 va:191
If the SD card is full, and you reformat the SD card, the SD card still shows as being full.
Rebooting causes free space to be recalculated, but this should not be required.
AFAIK a similar issue also applies if you delete recordings via the playback menu
evilC commented
Repro'd on this build: https://github.com/hd-zero/hdzero-goggle/actions/runs/9382157957
Test method:
- FILL your SD card - on a windows system, for an SD card
F:
, in powershell:
cd F:
$space = $(get-WmiObject win32_logicaldisk | where-object -Property DeviceID -EQ "F:" | select -ExpandProperty FreeSpace) ; fsutil file createNew emptyFile $space
- Put card in goggles - status bar shows "SD Card Full"
- Storage menu > Format
- Status bar still shows "SD Card Full"
Master92 commented
Can you please try the artifact of this build?
I don't have my goggles at hand and therefore can't try it myself at the moment.
evilC commented
I just tried, but I cannot get the bloody SD card full :(
When I use the command I posted above, I get Error: There is not enough space on the disk.
Even if I format it and it's completely empty :(