Display warning if image is too big when using CLI
See original GitHub issue- Etcher version: 1.0.0-beta16
- Operating system and architecture: Linux x64
When using the Etcher CLI (see https://github.com/resin-io/etcher/blob/master/docs/CLI.md ) there’s no check that the image is smaller than the drive size, which means it “allows” you to attempt to write e.g. a 3GB image onto a 2GB USB stick. It then fails with ENOSPC: Not enough space on the drive
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
image is too big to fit in the screen (MATLAB) - Stack Overflow
It's not an error, just a warning that the resolution of the image you are showing is larger than the resolution of your...
Read more >Image is too big to fit on screen; displaying at 67% - MathWorks
This means that your image has more pixels, then your screen can fit. This is not an error, just a warning. You can...
Read more >Reduce File Size of Images in Linux - CLI and GUI methods
The file size of image can be reduced if we reduce the amount of pixels it holds. For this purpose, we need to...
Read more >How to easily resize images via command-line? - Ask Ubuntu
And if you want really fast JPEG image resizing - try epeg (as mentioned here and there) - which needs to be built...
Read more >Can I change the size of an image? - Codecademy
There is no command for changing an image size. Image dimensions are 'properties' which can be expressed in either the HTML <img> element,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll start by showing all drives, display a warning if it’s a system drive, and not let the user select disks smaller than images. @lurch has a point with multi-selection (I assume it will be required for parallel writing), we’ll see how that plays out…
I’ve just checked, and it doesn’t. Phew!