question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 7 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
stefan-mihailacommented, Dec 8, 2016

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…

1reaction
lurchcommented, Dec 8, 2016

Also, Etcher shouldn’t auto-select a drive that is smaller than the selected image.

I’ve just checked, and it doesn’t. Phew!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found