Note, Attempted several times, including as admin with same results. Also tried with anti-virus turned off with no success. Also tried in unsafe mode with no success
Do you see any meaningful error information in the DevTools?
Couldn't clean the drive, Command Failed: diskpart

Ref #1054
Thanks for the additional info on the issue – we thought we'd squashed it already
@jhermsmeier It looks like #989 is a better duplicate for this than #1054 ;-)
.bat file failing, whereas this PR and #989 are specifically about diskpart /s failing. But I guess this is another one of those problems that'll be fixed when we manage to get native drive-locking into place?Hmm, yeah, maybe – this doesn't fail due to a timeout or running out of retries – might be entirely new thing. But yes, this could potentially be fixed by drive-locking.
I am getting the "Couldn't clean the drive..." (code: 2147942401) on two different drives. The only difference between when this used to work and now is that I installed the latest patches to Windows10 (KB4043901). Is there an issue with this MS update?
FWIW, I started to notice that Windows kept asking with a pop-up to format the drive and just before I saw the pop-up, is when I got the error in etcher. Also saw an generic write error when using Win32DiskImager and Rufus. Eventually, I kept thrashing and was able to get it flashed with Win32DiskImager. Not sure how.
FYI - I had the exact same problem
In my case - this is what happened and how I fixed it.
In my case I am using FULL SIZED sd card adapter
With a small micro sd card installed in the adapter.
The etcher tool is creating a TEMP file with commands for "diskpart"
then executing the "diskpart" tool telling it to read from the file
If you run the same command and manually the the commands
you discover that the DISK WRITE protect tab is done
What Etcher needs is some means read the WRITE PROTECT status of the SD CARD
And stop/halt or give an error before proceeding.
Or maybe it has a means but that no longer works.
Moving the Write Protect switch solves the problem.
I also solved this issue by using a different full size SD adapter .
Keep in mind that some sd card adapters have a small switch that locks the card from being written to
What Etcher needs is some means read the WRITE PROTECT status of the SD CARD
Etcher should display a "LOCKED" warning for read-only SD cards https://github.com/resin-io/etcher/pull/475
Had the same error, the TF card to SD card adapter had locked without me noticing. It didn't display locked or anything like it.
Was flashing latest raspbian on 32gb samsung evo TFsd card with the included adapter on a non administrator account. had to give administrative privileges in compatibility tab for it to display this message otherwise it would've been stuck on starting without giving any clue whats going on. With privilege it resulted in an error popup same as OP had.
Looks like Windows is accessing the existing file systems, at least in my case. Removing all partitions from the SD card and retrying works fine after this error.
Same error - caused by SD Card adaptor lock switch - all OK after unlocking
@cymplecy What SD Card reader and OS are you using? I wonder if it's possible that drivelist (used by Etcher to list drives) isn't detecting that the SD card is locked, even though the OS _does_ still prevent writing to it?
This on win10 with the adaptor that came with the micro sd
On 9 Jan 2018 17:40, "Andrew Scheller" notifications@github.com wrote:
@cymplecy https://github.com/cymplecy What SD Card reader and OS are you
using? I wonder if it's possible that drivelist (used by Etcher to list
drives) isn't detecting that the SD card is locked, even though the OS
does still prevent writing to it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/resin-io/etcher/issues/1793#issuecomment-356358689,
or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACP4tD6pnjnV7uFaiBxnQqJ0UYH3mBXjks5tI6SfgaJpZM4P-hmI
.
In my case it is a 'micro-usb' to 'standard-size-adapter'
the standardsized interface is built into my dell E7450 laptop on the side there is a slot to insert a standard sized sd card
That interface is not an USB controller, if you follow the device manager "view by connection" it connects via the PCI interface.
The reader is built into the computer
On 9 Jan 2018 17:40, "Andrew Scheller" notifications@github.com wrote:
@cymplecy https://github.com/cymplecy What SD Card reader and OS are
you using? I wonder if it's possible that drivelist (used by Etcher to
list drives) isn't detecting that the SD card is locked, even though the OS
does still prevent writing to it?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/resin-io/etcher/issues/1793#issuecomment-356358689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACP4tD6pnjnV7uFaiBxnQqJ0UYH3mBXjks5tI6SfgaJpZM4P-hmI
.
Thanks for the info @DuaneEllis-TI and @cymplecy I'll do some investigating to see if I can reproduce.
FYI - the following works just fine on my windows machine
I get this output:
#include "stdafx.h"
#include "windows.h"
int main()
{
char drive[] = "d:\\";
BOOL success;
char vol_name[1024];
DWORD serialnumber;
DWORD maxlength;
DWORD flags;
char sysnamebuf[1024];
success = GetVolumeInformationA(
drive,
vol_name,
sizeof(vol_name),
&serialnumber,
&maxlength,
&flags,
sysnamebuf,
sizeof(sysnamebuf));
char *wp = (flags & FILE_READ_ONLY_VOLUME) ? "Yes" : "No";
printf("Success: %d, Flags: 0x%08x WP=%s\n", success, flags, wp);
return 0;
}
@lurch I just brought my first raspberry pi 3 today, and i had the same problem when i tried to flash the Raspbian OS on to my newly purchased min SD card with a adapter that has a lock switch. I just found out that even if the locked switch is off, the computer is still think the SD card is locked. therefore, i saw this error. But when i purchased a new mini SD card adapter, and everything was ok.
So sometime the SD card adapter hardware malfunctions, check if the lock is really off but try to copy sample file to it.
Could the people who've commented in this issue please test this version of Etcher to see if it fixes your problems? Thanks :)
https://resin-nightly-downloads.s3.amazonaws.com/etcher/2018-02-20/1.3.1%2B5be64e1/Etcher-Portable-1.3.1%2B5be64e1-x64.exe
Tried it - enabled lock switch - got an error msgs that starts off "operation timed out...."
Oh dear - doesn't work even though I've taken lock switch off! Going to try old version just to make sure its a software issue
Old version 1.3.1-x64 working fine
@cymplecy I've now tested this build on both Windows 7 and Windows 10 (unfortunately I do not have Windows 8.1 at my disposal atm), and cannot reproduce this – can you post screenshots of those errors? And can you open the DevTools (Ctrl+Shift+I), and post what the console shows?

ctrl+shift+l doesn nothing (is it one or i or little L?)
I'm on Win10 - this is with USB adaptor - with SD Adaptor - with 32GB microSD inside that
Oh sorry, it's a capital i; Ctrl+Shift+I
Thanks for the screenshot, I now have a rough idea of what might be going on there – still, some console logs from the DevTools could help
I had to close the error before the console came up :)
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner scanner:init +0ms Scanner
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner subscribe +1ms BlockDeviceAdapter
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner subscribe +1ms USBBootAdapter
gui.js:65102 _____ _ _
| ___| | | |
| |__ | |_ ___| |__ ___ _ __
| __|| __/ __| '_ \ / _ \ '__|
| |___| || (__| | | | __/ |
\____/ \__\___|_| |_|\___|_|
Interested in joining the Etcher team?
Drop us a line at [email protected]
Version = 1.3.1, Type = local
gui.js:113926 Wed Feb 28 2018 17:40:24 GMT+0000 (GMT Standard Time) Application start ({"packageType":"local","version":"1.3.1"})
gui.js:113926 Wed Feb 28 2018 17:40:24 GMT+0000 (GMT Standard Time) Checking for updates ({"currentVersion":"1.3.1","stable":true,"updateSemverRange":"<2.0.0","includeUnstableChannel":false})
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner start +125ms true
gui.js:113926 Wed Feb 28 2018 17:40:25 GMT+0000 (GMT Standard Time) [object Event]
gui.js:113926 Wed Feb 28 2018 17:40:26 GMT+0000 (GMT Standard Time) Update notification skipped ({"reason":"Latest version"})
gui.js:113926 Wed Feb 28 2018 17:40:26 GMT+0000 (GMT Standard Time) Open image selector
gui.js:113926 Wed Feb 28 2018 17:40:33 GMT+0000 (GMT Standard Time) Select image ({"path":"C:\\Users\\Simon\\Downloads\\2017-11-29-raspbian-stretch.zip","size":{"original":4919918592,"final":{"estimation":false,"value":4919918592}},"extension":"img","archiveExtension":"zip","hasMBR":true,"hasGPT":false,"partitions":[{"type":12,"id":null,"name":null,"firstLBA":8192,"lastLBA":93237,"extended":false},{"type":131,"id":null,"name":null,"firstLBA":94208,"lastLBA":9609216,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false}],"logo":false,"bmap":false})
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner stop +12s true
gui.js:113926 Wed Feb 28 2018 17:40:36 GMT+0000 (GMT Standard Time) Progress (undefined): 0% at 0 MB/s (eta undefineds)
gui.js:113926 Wed Feb 28 2018 17:40:36 GMT+0000 (GMT Standard Time) Flash ({"image":"C:\\Users\\Simon\\Downloads\\2017-11-29-raspbian-stretch.zip","drive":{"size":32026656768,"isVirtual":false,"enumerator":"USBSTOR","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"H:\\","blockSize":512,"adapter":"blockdevice","isSCSI":false,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"USB","isCard":false,"isUSB":true,"mountpoints":[{"path":"H:\\"}],"description":"Mass Storage Device USB Device","isUAS":false},"uuid":"3c7e8c92-2b56-437f-b7fc-9f1d00fdaadb","unmountOnSuccess":true,"validateWriteOnSuccess":true})
gui.js:146348 Elevating command: C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\Etcher.exe C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar
gui.js:146315 Successfully connected to IPC server: etcher-server-8756, socket root C:\Users\Simon\AppData\Local\Temp\
gui.js:146315 Image: C:\Users\Simon\Downloads\2017-11-29-raspbian-stretch.zip
gui.js:146315 Device: \\.\PhysicalDrive1
gui.js:146315 Umount on success: true
gui.js:146315 Validate on success: true
gui.js:113926 Wed Feb 28 2018 17:40:42 GMT+0000 (GMT Standard Time) Flash error ({"error":{"message":"operation timed out after 4006 ms, 5 tries with error: EPIPE, Couldn't open handle to device '\\\\.\\PhysicalDrive1'","stack":"Error: operation timed out after 4006 ms, 5 tries with error: EPIPE, Couldn't open handle to device '\\\\.\\PhysicalDrive1'\n at n at tryCatcher (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at n at tryCatcher (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n at Promise._settlePromise (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n at Promise._settlePromise0 (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n at Promise._settlePromises (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n at Async._drainQueue (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n at Async._drainQueues (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n at Immediate.Async.drainQueues (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n at runCallback (timers.js:672:20)\n at tryOnImmediate (timers.js:645:5)\n at processImmediate [as _immediateCallback] (timers.js:617:5)","code":"ETIMEDOUT"},"image":"C:\\Users\\Simon\\Downloads\\2017-11-29-raspbian-stretch.zip","drive":{"size":32026656768,"isVirtual":false,"enumerator":"USBSTOR","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"H:\\","blockSize":512,"adapter":"blockdevice","isSCSI":false,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"USB","isCard":false,"isUSB":true,"mountpoints":[{"path":"H:\\"}],"description":"Mass Storage Device USB Device","isUAS":false},"uuid":"3c7e8c92-2b56-437f-b7fc-9f1d00fdaadb","unmountOnSuccess":true,"validateWriteOnSuccess":true})
gui.js:113926 Wed Feb 28 2018 17:40:42 GMT+0000 (GMT Standard Time) Open modal ({"name":"warning"})
gui.js:114115 {"stack":"Error: operation timed out after 4006 ms, 5 tries with error: EPIPE, Couldn't open handle to device '\\\\.\\PhysicalDrive1'\n at C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird-retry\\lib\\bluebird-retry.js:109:35\n at tryCatcher (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\catch_filter.js:24:41\n at tryCatcher (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n at Promise._settlePromise (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n at Promise._settlePromise0 (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n at Promise._settlePromises (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n at Async._drainQueue (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n at Async._drainQueues (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n at Immediate.Async.drainQueues (C:\\Users\\Simon\\AppData\\Local\\Temp\\nsh7692.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n at runCallback (timers.js:672:20)\n at tryOnImmediate (timers.js:645:5)\n at processImmediate [as _immediateCallback] (timers.js:617:5)","message":"operation timed out after 4006 ms, 5 tries with error: EPIPE, Couldn't open handle to device '\\\\.\\PhysicalDrive1'","code":"ETIMEDOUT"}
logException @ gui.js:114115
C:\Users\Simon\AppData\Local\Temp\nsh7692.tmp\app\resources\app.asar\node_modules\debug\src\browser…:133 sdk:scanner start +26m true
gui.js:146373 Flash results Object
gui.js:146394 Terminating IPC server
This is great, thanks! Looks like we have a lead on the rather elusive ETIMEDOUT bug (https://github.com/resin-io/etcher/issues/1908) here :)
PS: Edited your comment to display the preformatted output correctly
JFI - this is without the adaptor being locked - this is just trying to use it normally
Below is log for the same issue:
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk scanner:init +0ms Scanner
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk subscribe +2ms StandardAdapter
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk subscribe +1ms USBBootAdapter
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 _____ _ _
| ___| | | |
| |__ | |_ ___| |__ ___ _ __
| __|| __/ __| '_ \ / _ \ '__|
| |___| || (__| | | | __/ |
\____/ \__\___|_| |_|\___|_|
Interested in joining the Etcher team?
Drop us a line at [email protected]
Version = 1.3.1, Type = portable
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:06 GMT+0800 (Malay Peninsula Standard Time) Application start ({"packageType":"portable","version":"1.3.1"})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:06 GMT+0800 (Malay Peninsula Standard Time) Checking for updates ({"currentVersion":"1.3.1","stable":true,"updateSemverRange":"<2.0.0","includeUnstableChannel":false})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk start +538ms true
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:12 GMT+0800 (Malay Peninsula Standard Time) Update notification skipped ({"reason":"Latest version"})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:20 GMT+0800 (Malay Peninsula Standard Time) Open image selector
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:22 GMT+0800 (Malay Peninsula Standard Time) Select image ({"path":"D:\\KBS\\Raspberry_Pi\\Bin\\2017-11-29-raspbian-stretch.img","extension":"img","size":{"original":4919918592,"final":{"estimation":false,"value":4919918592}},"hasMBR":true,"hasGPT":false,"partitions":[{"type":12,"id":null,"name":null,"firstLBA":8192,"lastLBA":93237,"extended":false},{"type":131,"id":null,"name":null,"firstLBA":94208,"lastLBA":9609216,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false}],"logo":false,"bmap":false})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:24 GMT+0800 (Malay Peninsula Standard Time) Open modal ({"template":"./components/drive-selector/templates/drive-selector-modal.tpl.html"})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:24 GMT+0800 (Malay Peninsula Standard Time) Reselect drive
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:25 GMT+0800 (Malay Peninsula Standard Time) Toggle drive ({"drive":{"size":15987638272,"isVirtual":false,"enumerator":"USBSTOR","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\, "}],"description":"SDHC Card","isUAS":false},"previouslySelected":true})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:27 GMT+0800 (Malay Peninsula Standard Time) Modal accepted ({})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk stop +21s true
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:28 GMT+0800 (Malay Peninsula Standard Time) Progress (undefined): 0% at 0 MB/s (eta undefineds)
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:28 GMT+0800 (Malay Peninsula Standard Time) Flash ({"image":"D:\\KBS\\Raspberry_Pi\\Bin\\2017-11-29-raspbian-stretch.img","drive":{"size":15987638272,"isVirtual":false,"enumerator":"USBSTOR","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\, "}],"description":"SDHC Card","isUAS":false},"uuid":"d83aa419-04c9-4c4b-a941-6ed54e82ad20","unmountOnSuccess":true,"validateWriteOnSuccess":true})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Elevating command: C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\Etcher.exe C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Successfully connected to IPC server: etcher-server-1476, socket root C:\Users\yhm2\AppData\Local\Temp\
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Image: D:\KBS\Raspberry_Pi\Bin\2017-11-29-raspbian-stretch.img
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Device: \\.\PhysicalDrive1
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Umount on success: true
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Validate on success: true
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:41 GMT+0800 (Malay Peninsula Standard Time) Flash error ({"error":{"message":"Couldn't clean the drive, Command failed: diskpart s n (code 2147942405)","stack":"Error: Couldn't clean the drive, Command failed: diskpart s n (code 2147942405)\n at retry.catch (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\lib\\cli\\diskpart.js:117:15)\n at tryCatcher (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n at Promise._settlePromise (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n at Promise._settlePromise0 (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n at Promise._settlePromises (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n at Async._drainQueue (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n at Async._drainQueues (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n at Immediate.Async.drainQueues (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n at runCallback (timers.js:672:20)\n at tryOnImmediate (timers.js:645:5)\n at processImmediate [as _immediateCallback] (timers.js:617:5)"},"image":"D:\\KBS\\Raspberry_Pi\\Bin\\2017-11-29-raspbian-stretch.img","drive":{"size":15987638272,"isVirtual":false,"enumerator":"USBSTOR","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\, "}],"description":"SDHC Card","isUAS":false},"uuid":"d83aa419-04c9-4c4b-a941-6ed54e82ad20","unmountOnSuccess":true,"validateWriteOnSuccess":true})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 15:58:41 GMT+0800 (Malay Peninsula Standard Time) Open modal ({"template":"./components/warning-modal/templates/warning-modal.tpl.html"})
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 {"stack":"Error: Couldn't clean the drive, Command failed: diskpart /s C:\\Users\\yhm2\\AppData\\Local\\Temp\\etcher-diskpart-a2f42b9b55c5\n (code 2147942405)\n at retry.catch (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\lib\\cli\\diskpart.js:117:15)\n at tryCatcher (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n at Promise._settlePromise (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n at Promise._settlePromise0 (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n at Promise._settlePromises (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n at Async._drainQueue (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n at Async._drainQueues (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n at Immediate.Async.drainQueues (C:\\Users\\yhm2\\AppData\\Local\\Temp\\nsyFB27.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n at runCallback (timers.js:672:20)\n at tryOnImmediate (timers.js:645:5)\n at processImmediate [as _immediateCallback] (timers.js:617:5)","message":"Couldn't clean the drive, Command failed: diskpart /s C:\\Users\\yhm2\\AppData\\Local\\Temp\\etcher-diskpart-a2f42b9b55c5\n (code 2147942405)"}
console.(anonymous function) @ C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 sdk start +2m true
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Flash results Object
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Terminating IPC server
C:\Users\yhm2\AppData\Local\Temp\nsyFB27.tmp\app\resources\app.asar\node_modules\raven-js\dist\rave…:55 Fri Mar 02 2018 16:00:54 GMT+0800 (Malay Peninsula Standard Time) Modal accepted ({"value":false})
Looks like we have a lead on the rather elusive ETIMEDOUT bug
IIRC this is the first time that we've had the ETIMEDOUT error on an image that _isn't_ one of the bz2 Hassio images?
Version = 1.3.1, Type = localgui.js:113926 Fri Mar 02 2018 16:27:51 GMT-0800 (Pacific Standard Time) Application start ({"packageType":"local","version":"1.3.1"})gui.js:113926 Fri Mar 02 2018 16:27:51 GMT-0800 (Pacific Standard Time) Checking for updates ({"currentVersion":"1.3.1","stable":true,"updateSemverRange":"<2.0.0","includeUnstableChannel":false})C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asar\node_modules\debug\src\browser.js:133 sdk:scanner start +251ms truegui.js:113926 Fri Mar 02 2018 16:27:54 GMT-0800 (Pacific Standard Time) Update notification skipped ({"reason":"Latest version"})gui.js:113926 Fri Mar 02 2018 16:27:55 GMT-0800 (Pacific Standard Time) [object Event]gui.js:113926 Fri Mar 02 2018 16:28:00 GMT-0800 (Pacific Standard Time) Open image selectorgui.js:113926 Fri Mar 02 2018 16:45:47 GMT-0800 (Pacific Standard Time) Image selector closedgui.js:113926 Fri Mar 02 2018 16:46:03 GMT-0800 (Pacific Standard Time) Open image selectorgui.js:113926 Fri Mar 02 2018 16:46:09 GMT-0800 (Pacific Standard Time) Select image ({"path":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","size":{"original":1858076672,"final":{"estimation":false,"value":1858076672}},"extension":"img","archiveExtension":"zip","hasMBR":true,"hasGPT":false,"partitions":[{"type":12,"id":null,"name":null,"firstLBA":8192,"lastLBA":93237,"extended":false},{"type":131,"id":null,"name":null,"firstLBA":94208,"lastLBA":3629056,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false}],"logo":false,"bmap":false})C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asar\node_modules\debug\src\browser.js:133 sdk:scanner stop +18m truegui.js:113926 Fri Mar 02 2018 16:46:13 GMT-0800 (Pacific Standard Time) Progress (undefined): 0% at 0 MB/s (eta undefineds)gui.js:113926 Fri Mar 02 2018 16:46:13 GMT-0800 (Pacific Standard Time) Flash ({"image":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","drive":{"size":15833497600,"isVirtual":false,"enumerator":"SCSI","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\","blockSize":512,"adapter":"blockdevice","isSCSI":true,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"INVALID","isCard":false,"isUSB":false,"mountpoints":[{"path":"E:\\"}],"description":"O2Micro SD SCSI Disk Device","isUAS":false},"uuid":"d2c90b4c-f147-4d5b-b9c4-3378785d4c77","unmountOnSuccess":false,"validateWriteOnSuccess":true})gui.js:146348 Elevating command: C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\Etcher.exe C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asargui.js:146315 Successfully connected to IPC server: etcher-server-5620, socket root C:\Users\egk\AppData\Local\Temp\gui.js:146315 Image: C:\Users\egk\Downloads\2017-11-29-raspbian-stretch-lite.zipgui.js:146315 Device: \\.\PhysicalDrive1gui.js:146315 Umount on success: falsegui.js:146315 Validate on success: truegui.js:113926 Fri Mar 02 2018 16:46:23 GMT-0800 (Pacific Standard Time) Flash error ({"error":{"message":"operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'","stack":"Error: operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'\n  at n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at Promise._settlePromiseFromHandler (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n  at Promise._settlePromise (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n  at Promise._settlePromise0 (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n  at Promise._settlePromises (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n  at Async._drainQueue (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n  at Async._drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n  at Immediate.Async.drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n  at runCallback (timers.js:672:20)\n  at tryOnImmediate (timers.js:645:5)\n  at processImmediate [as _immediateCallback] (timers.js:617:5)","code":"ETIMEDOUT"},"image":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","drive":{"size":15833497600,"isVirtual":false,"enumerator":"SCSI","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\","blockSize":512,"adapter":"blockdevice","isSCSI":true,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"INVALID","isCard":false,"isUSB":false,"mountpoints":[{"path":"E:\\"}],"description":"O2Micro SD SCSI Disk Device","isUAS":false},"uuid":"d2c90b4c-f147-4d5b-b9c4-3378785d4c77","unmountOnSuccess":false,"validateWriteOnSuccess":true})gui.js:113926 Fri Mar 02 2018 16:46:23 GMT-0800 (Pacific Standard Time) Open modal ({"name":"warning"})gui.js:114115 {"stack":"Error: operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'\n  at C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird-retry\\lib\\bluebird-retry.js:109:35\n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\catch_filter.js:24:41\n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at Promise._settlePromiseFromHandler (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n  at Promise._settlePromise (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n  at Promise._settlePromise0 (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n  at Promise._settlePromises (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n  at Async._drainQueue (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n  at Async._drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n  at Immediate.Async.drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n  at runCallback (timers.js:672:20)\n  at tryOnImmediate (timers.js:645:5)\n  at processImmediate [as _immediateCallback] (timers.js:617:5)","message":"operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'","code":"ETIMEDOUT"}logException @ gui.js:114115C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asar\node_modules\debug\src\browser.js:133 sdk:scanner start +7m truegui.js:146373 Flash results Objectgui.js:146394 Terminating IPC servergui.js:113926 Fri Mar 02 2018 16:52:48 GMT-0800 (Pacific Standard Time) Modal accepted ({"name":"warning","value":false})gui.js:113926 Fri Mar 02 2018 16:53:12 GMT-0800 (Pacific Standard Time) Open image selectorgui.js:113926 Fri Mar 02 2018 16:53:17 GMT-0800 (Pacific Standard Time) Select image ({"path":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","size":{"original":1858076672,"final":{"estimation":false,"value":1858076672}},"extension":"img","archiveExtension":"zip","hasMBR":true,"hasGPT":false,"partitions":[{"type":12,"id":null,"name":null,"firstLBA":8192,"lastLBA":93237,"extended":false},{"type":131,"id":null,"name":null,"firstLBA":94208,"lastLBA":3629056,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false},{"type":0,"id":null,"name":null,"firstLBA":0,"lastLBA":0,"extended":false}],"logo":false,"bmap":false})C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asar\node_modules\debug\src\browser.js:133 sdk:scanner stop +35s truegui.js:113926 Fri Mar 02 2018 16:53:20 GMT-0800 (Pacific Standard Time) Progress (undefined): 0% at 0 MB/s (eta undefineds)gui.js:113926 Fri Mar 02 2018 16:53:20 GMT-0800 (Pacific Standard Time) Flash ({"image":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","drive":{"size":15833497600,"isVirtual":false,"enumerator":"SCSI","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\","blockSize":512,"adapter":"blockdevice","isSCSI":true,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"INVALID","isCard":false,"isUSB":false,"mountpoints":[{"path":"E:\\"}],"description":"O2Micro SD SCSI Disk Device","isUAS":false},"uuid":"23934876-9a4d-4aca-84f8-db48512f646e","unmountOnSuccess":false,"validateWriteOnSuccess":true})gui.js:146348 Elevating command: C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\Etcher.exe C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asargui.js:146315 Successfully connected to IPC server: etcher-server-5620, socket root C:\Users\egk\AppData\Local\Temp\gui.js:146315 Image: C:\Users\egk\Downloads\2017-11-29-raspbian-stretch-lite.zipgui.js:146315 Device: \\.\PhysicalDrive1gui.js:146315 Umount on success: falsegui.js:146315 Validate on success: truegui.js:113926 Fri Mar 02 2018 16:53:25 GMT-0800 (Pacific Standard Time) Flash error ({"error":{"message":"operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'","stack":"Error: operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'\n  at n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at Promise._settlePromiseFromHandler (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n  at Promise._settlePromise (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n  at Promise._settlePromise0 (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n  at Promise._settlePromises (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n  at Async._drainQueue (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n  at Async._drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n  at Immediate.Async.drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n  at runCallback (timers.js:672:20)\n  at tryOnImmediate (timers.js:645:5)\n  at processImmediate [as _immediateCallback] (timers.js:617:5)","code":"ETIMEDOUT"},"image":"C:\\Users\\egk\\Downloads\\2017-11-29-raspbian-stretch-lite.zip","drive":{"size":15833497600,"isVirtual":false,"enumerator":"SCSI","logicalBlockSize":512,"raw":"\\\\.\\PhysicalDrive1","error":null,"isReadOnly":false,"displayName":"E:\\","blockSize":512,"adapter":"blockdevice","isSCSI":true,"isRemovable":true,"device":"\\\\.\\PhysicalDrive1","busVersion":"2.0","isSystem":false,"busType":"INVALID","isCard":false,"isUSB":false,"mountpoints":[{"path":"E:\\"}],"description":"O2Micro SD SCSI Disk Device","isUAS":false},"uuid":"23934876-9a4d-4aca-84f8-db48512f646e","unmountOnSuccess":false,"validateWriteOnSuccess":true})gui.js:113926 Fri Mar 02 2018 16:53:25 GMT-0800 (Pacific Standard Time) Open modal ({"name":"warning"})gui.js:114115 {"stack":"Error: operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'\n  at C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird-retry\\lib\\bluebird-retry.js:109:35\n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\catch_filter.js:24:41\n  at tryCatcher (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n  at Promise._settlePromiseFromHandler (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n  at Promise._settlePromise (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n  at Promise._settlePromise0 (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n  at Promise._settlePromises (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n  at Async._drainQueue (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n  at Async._drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n  at Immediate.Async.drainQueues (C:\\Users\\egk\\AppData\\Local\\Temp\\nsw5739.tmp\\app\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n  at runCallback (timers.js:672:20)\n  at tryOnImmediate (timers.js:645:5)\n  at processImmediate [as _immediateCallback] (timers.js:617:5)","message":"operation timed out after 4067 ms, 5 tries with error: EPERM, Couldn't delete drive layout '\\\\.\\PhysicalDrive1'","code":"ETIMEDOUT"}logException @ gui.js:114115C:\Users\egk\AppData\Local\Temp\nsw5739.tmp\app\resources\app.asar\node_modules\debug\src\browser.js:133 sdk:scanner start +15s truegui.js:146373 Flash results Objectgui.js:146394 Terminating IPC servergui.js:113926 Fri Mar 02 2018 16:53:44 GMT-0800 (Pacific Standard Time) Modal accepted ({"name":"warning","value":false})
From: Andrew Scheller notifications@github.com
To: resin-io/etcher etcher@noreply.github.com
Cc: Ed Kochanowski egk@att.net; Comment comment@noreply.github.com
Sent: Wednesday, February 28, 2018 7:31 AM
Subject: Re: [resin-io/etcher] Couldn't clean the drive, Command Failed: diskpart /s --- WIn 8.1 (#1793)
Could the people who've commented in this issue please test this version of Etcher to see if it fixes your problems? Thanks :)
https://resin-nightly-downloads.s3.amazonaws.com/etcher/2018-02-20/1.3.1%2B5be64e1/Etcher-Portable-1.3.1%2B5be64e1-x64.exe—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Windows Defender does not allow me to run this app. Something is wrong. Do you have alternatives?
@yoonghm you mean the snapshot build linked to above? That's probably because its not codesigned (we don't codesign snapshots) – you'll want to download the current stable release instead.
@jhermsmeier actually I was using the latest stable version when the problem occurred. The post above asked me to try the snapshot. Is it safe to run?
@yoonghm oh, right – well, what is Windows Defender saying? Can you post a screenshot?


I tried now. It was due to insufficient access rights to flash the SD card. My laptop was locked down with no administrator rights.
Yeah, that warning is just due to lack of code signing – glad it works for you now @yoonghm :)
Fixed in #2023
FWIW, I was getting this error message, but when I checked the status of the uSD card with Minitool Partition Wizard, it reported "Bad Disk". (Not a plug, I have no financial relation with that tool, just a user).
When I used an uSD card that passed the Partition Wizard scan, Etcher worked as well :-) .
Doah!
Should this be re-opened, given that #2023 has been reverted?
Yeah, as it turned out it's a bit more involved than initially thought, and didn't cover enough cases of disk formats / states in order to reliable "clean" them. This should be re-closed again soon-ish though :)
I originally had a USB hub on my card reader, I connected the card reader to the USB port on my PC and that fixed it.
epic bug still effin exist wtf
I was having the same error. Whatever the problem is, I know it isn't permission or sd reader related because Rufus was able to write the image to the card without any trouble at all.
Same issue. The portable Etcher worked for mine. Started writing straight away. Thanks for the help.
Just encountered this error. Managed to flash yesterday with Etcher and same USB-stick.
Image of error popup:

Backtrace from dev tools:
{"stack":"Error: Couldn't clean the drive, Command failed: diskpart /s C:\\Users\\kwedm\\AppData\\Local\\Temp\\etcher-diskpart-40953b54fa04\n (code 2147942405)\n at retry.catch (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\lib\\cli\\diskpart.js:117:15)\n at tryCatcher (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\util.js:16:23)\n at Promise._settlePromiseFromHandler (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:504:31)\n at Promise._settlePromise (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:561:18)\n at Promise._settlePromise0 (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:606:10)\n at Promise._settlePromises (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\promise.js:681:18)\n at Async._drainQueue (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:138:16)\n at Async._drainQueues (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:148:10)\n at Immediate.Async.drainQueues (C:\\Users\\kwedm\\AppData\\Local\\Programs\\etcher\\resources\\app.asar\\node_modules\\bluebird\\js\\release\\async.js:17:14)\n at runCallback (timers.js:672:20)\n at tryOnImmediate (timers.js:645:5)\n at processImmediate [as _immediateCallback] (timers.js:617:5)","message":"Couldn't clean the drive, Command failed: diskpart /s C:\\Users\\kwedm\\AppData\\Local\\Temp\\etcher-diskpart-40953b54fa04\n (code 2147942405)","name":"Error"}
console.(anonymous function) @ gui.js:105081
I'm getting a simmilar error with Etcher 1.4.4 on Win7, trying to flash a regualr 4GB usb stick, not a SD card

The small german part means essentially "command 'diskpart' not found"
Had all the same problems described here. Tried Win32diskmanager and it worked with no problems.
I found a solution that worked for me.
I had same problem. Same error message. SD micro card was plugged in to a USB adapter when it was formatted by SD formatter. Even when I moved it to SD card adapter for regular SD size it still failed. But after I reformatted in the SD adapter, I was able to install the image successfully with Etcher.
Something about formatting in a USB adapter?
Win 10 64. Etcher 1.4.4 SD_CardFormatter0500
FWIW, I think the issue is related to some type of compatibility problem with the O2Micro MMC/SD controller.