[ERROR] Failed opening drive for writing on Windows

edited September 2017 in OS installer

Hello, I tried different adapters, different computers and different sd cards, but I always get this message. This is the log.txt file:

+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:236:30 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::canRestart
+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:229:31 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::restartHint
+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:222:30 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::hasRestartHint
+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:215:27 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::superuserMessage
+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:197:22 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::isSuperuser
+00:01 (, 0) QQmlExpression: Expression qrc:/LoginForm.qml:131:21 depends on non-NOTIFYable properties:
+00:01 (, 0) ImageAdapter::defaultImageLocation
+00:01 (, 0) QQmlExpression: Expression qrc:/main.qml:61:22 depends on non-NOTIFYable properties:
+00:01 (, 0) PlatformAdapter::isSuperuser
+00:01 (qrc:/main.qml, 219) qrc:/main.qml:219:17: QML Rectangle: Binding loop detected for property "height"
+00:02 (qrc:/main.qml, 42) qrc:/main.qml:42: TypeError: Cannot read property 'identifier' of undefined
+00:02 (, 0) Failed parsing JSON file: "illegal value"
+00:05 (, 0) Failed parsing JSON file: "illegal value"
+00:06 (, 0) Refreshing drives
+00:07 (, 0) Found 1 drives
+00:09 (, 0) Adding "boot.zip"
+00:09 (, 0) Adding "system.zip"
+00:09 (, 0) Got 2 files to download
+00:09 (, 0) Downloading "package.json"
+00:09 (, 0) Using path "C:/Users/speedys/AppData/Local/Emteria/Installer/rpi3-v0.2.3/package.json"
+00:10 (, 0) Finished download of "package.json"
+00:10 (, 0) Already downloaded correct "boot.zip"
+00:16 (, 0) Already downloaded correct "system.zip"
+00:16 (, 0) Finished DownloadWorker
+00:16 (, 0) Flashing on raw "\\\\.\\PHYSICALDRIVE2"
+00:16 (, 0) Initializing PackageWriter
+00:16 (, 0) Package base path: "C:/Users/speedys/AppData/Local/Emteria/Installer/rpi3-v0.2.3"
+00:16 (, 0) Drive: "Mass Storage Device USB Device" with 7948206080 bytes
+00:16 (, 0) Raw at "\\\\.\\PHYSICALDRIVE2"
+00:16 (, 0) Mounted at "D:"
+00:16 (, 0) PackageWriter initialized successfully
+00:16 (, 0) Starting step 0 Reading package
+00:16 (, 0) Finished step 0 Reading package
+00:16 (, 0) Starting step 1 Verifying files
+00:18 (, 0) Finished step 1 Verifying files
+00:18 (, 0) Starting step 2 Preparing
+00:32 (, 0) Finished step 2 Preparing
+00:32 (, 0) Starting step 3 Opening to write
+00:32 (, 0) Failed CreateFile: 0
+00:32 (, 0) Failed to open drive for raw writing

Comments

  • Did you try updating the installer?

  • I already run latest version

  • These lines show, that your installer can't read the package file:

    +00:02 (, 0) Failed parsing JSON file: "illegal value"
    +00:05 (, 0) Failed parsing JSON file: "illegal value"

    Since we have changed the package format a couple of days ago, updating your installer (even if you think it is the latest version) is the best guess I have.

  • edited January 2018

    same Problem here..

    +00:00 (qrc:/main.qml, 221) qrc:/main.qml:221:17: QML Rectangle: Binding loop detected for property "height"
    +00:09 (, 0) Refreshing drives
    +00:09 (, 0) Found 1 drives
    +00:13 (, 0) Downloading "package.json"
    +00:13 (, 0) Using path "C:/Users/JOSH/AppData/Local/Emteria/Installer/rpi3-v0.5.3/package.json"
    +00:13 (, 0) Finished download of "package.json"
    +00:13 (, 0) Checking for OEM config..
    +00:13 (, 0) Retrieved OEM config len = 0
    +00:13 (, 0) Already downloaded correct "boot.zip"
    +00:13 (, 0) Already downloaded correct "oem.zip"
    +00:14 (, 0) Already downloaded correct "system.zip"
    +00:14 (, 0) Finished DownloadWorker
    +00:14 (, 0) Flashing on raw "\\\\.\\PHYSICALDRIVE1"
    +00:14 (, 0) Initializing PackageWriter
    +00:14 (, 0) Package base path: "C:/Users/JOSH/AppData/Local/Emteria/Installer/rpi3-v0.5.3"
    +00:14 (, 0) Drive: "SDHC Card" with 15523119104 bytes
    +00:14 (, 0) Raw at "\\\\.\\PHYSICALDRIVE1"
    +00:14 (, 0) PackageWriter initialized successfully
    +00:14 (, 0) Starting step 0 Reading package
    +00:14 (, 0) Finished step 0 Reading package
    +00:14 (, 0) Starting step 1 Verifying files
    +00:14 (, 0) Skipping "ota.zip" as it isn't required for flashing
    +00:15 (, 0) Finished step 1 Verifying files
    +00:15 (, 0) Starting step 2 Preparing
    +00:17 (, 0) Diskpart output: "\r\nMicrosoft DiskPart-Version 10.0.16299.15\r\n\r\nCopyright (C) Microsoft Corporation.\r\nAuf Computer: JOSH\r\n\r\nDatentr\x84ger 1 ist jetzt der gew\x84hlte Datentr\x84ger.\r\n\r\nDer Datentr\x84ger wurde bereinigt.\r\n\r\nWarten Sie, w\x84hrend die Konfiguration \x81""berpr\x81""ft wird...\r\n\r\nDie \x9A""berpr\x81""fung der Konfiguration wurde abgeschlossen.\r\n"
    +00:17 (, 0) Diskpart error: ""
    +00:19 (, 0) Finished step 2 Preparing
    +00:19 (, 0) Starting step 3 Opening to write
    +00:19 (, 0) Failed CreateFile: 0
    +00:19 (, 0) Failed to open drive for raw writing

    ===================================

    Question: Can I run this OS on Pi 2 ??

  • Same Problem...
    Run on Windows 11 pro (64bit)

    +00:00 (, 0) Starting emteria installer v1.1-43-g68add26
    +00:00 (, 0) Detected SSL support: true
    - runtime version: "OpenSSL 1.1.1g 21 Apr 2020"
    - build version: "OpenSSL 1.1.1g 21 Apr 2020"
    +00:12 (, 0) Opening remote connection
    +00:12 (, 0) Using PackageData version: 1
    +00:18 (, 0) Using PackageData version: 1
    +00:21 (, 0) Using PackageData version: 1
    +00:22 (, 0) Refreshing drives
    +00:22 (, 0) Ignoring system drive "CT500P5PSSD8"
    +00:22 (, 0) Ignoring system drive "PNY CS3030 250GB SSD"
    +00:22 (, 0) Ignoring system drive "ADATA SX8200PNP"
    +00:22 (, 0) Ignoring system drive "ADATA SX8200PNP"
    +00:22 (, 0) Found 1 drive(s)
    +00:26 (, 0) Checking for OEM config
    +00:26 (, 0) No OEM config available
    +00:26 (, 0) Started downloading "package.json"
    +00:26 (, 0) Using path "C:/Users/jpw/AppData/Local/Emteria/Emteria.OS Installer/rpi4-v13.3.0/package.json"
    +00:26 (, 0) Finished downloading "package.json"
    +00:26 (, 0) Using PackageData version: 1
    +00:26 (, 0) Already downloaded correct "boot.zip"
    +00:26 (, 0) Already downloaded correct "bootloader.zip"
    +00:26 (, 0) Already downloaded correct "dtbo.zip"
    +00:30 (, 0) Already downloaded correct "super.zip"
    +00:30 (, 0) Already downloaded correct "oem.zip"
    +00:30 (, 0) Already downloaded correct "metadata.zip"
    +00:30 (, 0) Already downloaded correct "misc.zip"
    +00:30 (, 0) Already downloaded correct "vbmeta.zip"
    +00:30 (, 0) Already downloaded correct "vendor_boot.zip"
    +00:30 (, 0) Already downloaded correct "vbmeta_system.zip"
    +00:30 (, 0) Already downloaded correct "userdata-2147483648.zip"
    +00:30 (, 0) Already downloaded correct "userdata-4187593113.zip"
    +00:30 (, 0) Already downloaded correct "userdata-8589934592.zip"
    +00:30 (, 0) Finished DownloadWorker
    +00:30 (, 0) Using PackageData version: 1
    +00:30 (, 0) Flashing on raw "\\\\.\\PHYSICALDRIVE5"
    +00:30 (, 0) Initializing package base at "C:/Users/jpw/AppData/Local/Emteria/Emteria.OS Installer\rpi4-v13.3.0"
    +00:30 (, 0) Drive: "Generic- SD/MMC USB Device" with 31914983424 bytes
    +00:30 (, 0) Raw at "\\\\.\\PHYSICALDRIVE5"
    +00:30 (, 0) Starting step 0 : Reading package
    +00:30 (, 0) Using PackageData version: 1
    +00:30 (, 0) Finished step 0 : Reading package
    +00:30 (, 0) Starting step 1 : Verifying files
    +00:31 (, 0) Finished step 1 : Verifying files
    +00:31 (, 0) Starting step 2 : Preparing
    +00:34 (, 0) Diskpart output: "\r\nMicrosoft DiskPart version 10.0.22621.1\r\n\r\nCopyright (C) Microsoft Corporation.\r\nSur l'ordinateur : JPW-PC\r\n\r\nLe disque 5 est maintenant le disque s?lectionn?.\r\n\r\nDiskPart a r?ussi ? nettoyer le disque.\r\n\r\nVeuillez patienter pendant que DiskPart analyse votre configuration...\r\n\r\nDiskPart a fini d'analyser votre configuration.\r\n"
    +00:37 (, 0) Finished step 2 : Preparing
    +00:37 (, 0) Starting step 3 : Opening to write
    +00:37 (, 0) Failed CreateFile: 0
    +00:37 (, 0) Failed to open drive for raw writing

  • I found the SOLUTION: run emetria installer an admin

This discussion has been closed.