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.

"No removable drive detected." when /tmp is mounted as noexec

See original GitHub issue
  • Etcher version: 1.1.2
  • Operating system and architecture: openSUSE Leap 42.3, x64

Mount /tmp as noexec (many people and some distros do that by default) and click on “Select drive” after you chose an image. It will show “No removable drive detected”.

Console log:

Uncaught Error: spawn EACCES
    at exports._errnoException (util.js:1022:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at exports.spawn (child_process.js:399:9)
    at Object.exports.execFile (child_process.js:160:15)
    at Object.module.(anonymous function) [as execFile] (ELECTRON_ASAR.js:200:20)
    at executeScript (/tmp/.mount_npruyq/usr/bin/resources/app.asar/node_modules/drivelist/lib/execute.js:87:16)
    at createTemporaryScriptFile (/tmp/.mount_npruyq/usr/bin/resources/app.asar/node_modules/drivelist/lib/execute.js:153:5)
    at fs.writeFile (/tmp/.mount_npruyq/usr/bin/resources/app.asar/node_modules/drivelist/lib/execute.js:67:5)
    at FSReqWrap.oncomplete (fs.js:112:15)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
szotsakicommented, Aug 22, 2017

Yes, I used the remount option to make /tmp executable but only root can do that, so I think it’s not a good solution. Modifying it in a program and knowing that that program can accidentally crash leaving /tmp in exec state may have awful consequences.

Directory selection idea: I recommend to adhere to Freedesktop specification, specifically $XDG_RUNTIME_DIR or maybe $XDG_CACHE_HOME.

Running ethcher with TMPDIR=$XDG_RUNTIME_DIR ./etcher-1.1.2-x86_64.AppImage made it work with noexec, thank you for the tip.

0reactions
lurchcommented, Oct 10, 2017

Closing, as drivelist in Etcher has been upgraded.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I check if "noexec" flag exists on a Linux OS?
Essentially, the noexec flag will not allow any direct execution of binaries from the mounted filesystem/folder. In essence, if this flag exists, MetaDefender ......
Read more >
Linux Security: Mount /tmp With nodev, nosuid, and noexec ...
You can mount $jail/tmp as a separate filesystem using a file called /images/tmpfile. bin with the noexec,nosuid, nodev options under Linux ...
Read more >
The noexec option must be added to removable media ...
The "noexec" mount option prevents the direct execution of binaries on the mounted filesystem. Users should not be allowed to execute binaries ...
Read more >
Pre / Post Commands with /tmp mounted noexec - Linux
We are running version 7.4.1 appserver and agents on RedHat EL 3 systems that have separate disk partitions for /tmp.
Read more >
Filesystems mount options and side effects on APM v8.1.x - IBM
From previous experience, I knew this message can be issued when the /tmp filesystem is mounted with flag "noexec", but it was not...
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