New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid "not large enough" checks for Windows drives that report themselves as 0.0 GB #1483
Comments
Umm nope, this is in fact opposite to what @alexandrosm was suggesting in gitter! |
Yeah, my bad, I totally mixed things up. I'll rephrase the issue. |
basically we should set a "minimum plausible drive size" and ignore any responses that are below that, simply reporting them as "unknown size", and as a result, not applying any size checks |
...and there's then a nice symmetry between drives who's size we don't know, with images who's size we don't know ;-) |
We were using WMI to get the size of a physical drive, however turns out that is number is not very accurate (since its based on CHS), and even plain wrong in some cases. As a solution, we now use the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX ioctl to get the size of a physical drive. See: balena-io/etcher#995 See: balena-io/etcher#1483 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
We were using WMI to get the size of a physical drive, however turns out that is number is not very accurate (since its based on CHS), and even plain wrong in some cases. As a solution, we now use the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX ioctl to get the size of a physical drive. See: balena-io/etcher#995 See: balena-io/etcher#1483 Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
We were using WMI to get the size of a physical drive, however turns out that is number is not very accurate (since its based on CHS), and even plain wrong in some cases. As a solution, we now use the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX ioctl to get the size of a physical drive. See: balena-io/etcher#995 See: balena-io/etcher#1483 Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
We were using WMI to get the size of a physical drive, however turns out that is number is not very accurate (since its based on CHS), and even plain wrong in some cases. As a solution, we now use the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX ioctl to get the size of a physical drive. See: balena-io/etcher#995 See: balena-io/etcher#1483 Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) - Cleanup temporary scripts after execution Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Fixes: #1571 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) - Cleanup temporary scripts after execution Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Fixes: #1571 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) - Cleanup temporary scripts after execution Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Fixes: #1571 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) - Cleanup temporary scripts after execution This PR also sets the DRIVELIST_DEBUG environment variable to enable debug information from Windows' drivelist implementation. Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Fixes: #1571 See: https://github.com/resin-io-modules/drivelist/blob/master/CHANGELOG.md Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This version contains various improvements on the drive detection system mainly on Windows. The improvements can be summarized as follows: - Drivelist no longer spawns a .bat script to perform its job. This means that a lot of spawning related issues are now fixed - Drivelist doesn't fetch drive sizes from WMI anymore, which was known to incorrectly report a very small size for certain drives, causing the famous "0.0 GB" Windows issues (see balena-io-modules/drivelist#142) - Cleanup temporary scripts after execution This PR also sets the DRIVELIST_DEBUG environment variable to enable debug information from Windows' drivelist implementation. Change-Type: patch Changelog-Entry: Implement Windows drive detection using C++ Changelog-Entry: Fix various Windows `.bat` spawning issues Changelog-Entry: Fix 0.0 GB Windows drive detection issues Changelog-Entry: Cleanup drive detection temporary scripts created for other operating systems Fixes: #1108 Fixes: #1054 Fixes: #995 Fixes: #1483 Fixes: #1142 Fixes: #1571 See: https://github.com/resin-io-modules/drivelist/blob/master/CHANGELOG.md Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Please see #1574 (comment) |
See balena-io-modules/drivelist#142
In summary, WMI sometimes fails to detect the real size of the drive, and detects a unreasonably small drive size (e.g. 8 MB) that gets coerced into 0.0 GB by the Etcher UI.
We have a real fix for this (which involves to re-write drivelist on C++), but let's make Etcher not take the size of these problematic drives into consideration for now.
The text was updated successfully, but these errors were encountered: