"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:
- Created 6 years ago
- Comments:9 (8 by maintainers)
Top 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 >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
Yes, I used the
remount
option to make /tmp executable but onlyroot
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 inexec
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 withnoexec
, thank you for the tip.Closing, as drivelist in Etcher has been upgraded.