Answer the question
In order to leave comments, you need to log in
Arduino IDE won't save sketch to disk, "Media is write-protected"?
When you try to save the code "File" -> "Save" an error pops up, the file is not saved.
Everything is successfully uploaded to the board, but it refuses to save the sketch on the computer.
I reinstalled java and ran it with admin rights.
Error message
Arduino: 1.8.2 (Windows 8.1), Плата:"Arduino/Genuino Uno"
java.io.IOException: Носитель защищен от записи
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at processing.app.BaseNoGui.saveFile(BaseNoGui.java:912)
at processing.app.SketchFile.save(SketchFile.java:287)
at processing.app.Sketch.save(Sketch.java:138)
at processing.app.SketchController.save(SketchController.java:344)
at processing.app.Editor.handleSave2(Editor.java:1987)
at processing.app.Editor.access$1900(Editor.java:78)
at processing.app.Editor$54.run(Editor.java:1972)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Носитель защищен от записи
Answer the question
In order to leave comments, you need to log in
Yes, actually try the most primitive way, open the arduino as administrator, and if it doesn’t help, reinstall.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question