etcher: Couldn't clean the drive, Command Failed: diskpart /s --- WIn 8.1

  • Etcher version: 1.1.2

  • Operating system and architecture: WIn 8.1 on bootcamp using no-name external reader

  • Image flashed: Beagle bone black Ubuntu image

  • Note, in Windows Explorer, the drive icon & lebel “boot (e:)” on left appeared and disappeared several times before error message. Also Viper anti-virus scanned with each cycle.

  • 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

image

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 55 (19 by maintainers)

Most upvoted comments

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

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 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 join+etcher@resin.io

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