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.

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

See original GitHub issue
  • 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

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:55 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
jhermsmeiercommented, Apr 21, 2018

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 😃

1reaction
cymplecycommented, Feb 28, 2018

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Couldn't clean the drive, Command failed: diskpart /s
I opened the console to see what was happening and looked at the flash results object. It had one error (see title), then...
Read more >
Fix Diskpart Clean Not Working on Disk/USB/SD Card [5+ Fixes]
Run Diskpart Clean Command to Clean Drive/USB/SD Card ... clean not working, cannot clean disk in Diskpart error in Windows 10/8.1/8/7, etc.
Read more >
Fixed: Diskpart Clean Errors in Windows 11, 10, 8, 7
Get Diskpart clean errors like “Access is denied”? This paper shows how to fix these Diskpart clean errors in Windows 11/10/8/7 at length....
Read more >
7 Ways to Fix Error - DiskPart Failed to Clear Disk Attributes
Error DiskPart Failed to Clear Disk Attributes · Fix 1. Turn off the Physical Write Protection Switch · Fix 2. Check the Drive...
Read more >
DISKPART CLEAN - Microsoft Community
You will get this error when you are using diskpart clean command on system disk. The system disk contains the Windows operating system ......
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