Cannot load images from network shares

Bug #1102608 reported by Nate
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Image Writer
Fix Released
Medium
Tobin Davis

Bug Description

When selecting an image from a network share (\\host\path\file.img) and clicking "Write", the tool reports "An error occurred when attempting to get a handle on the file. Error 3: The system cannot find the path specified."

This is due to the use of the "\\.\" location prefix in getHandleOnFile() in disk.cpp. A quick-and-dirty fix would be to check the incoming filelocation string for two leading backslashes. If they exists, don't prefix the filename with \\.\

Revision history for this message
Tobin Davis (gruemaster) wrote :

I'll look into this and see if I can come up with a complete solution for the next point release (coming soon).

Changed in win32-image-writer:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Tobin Davis (gruemaster)
Revision history for this message
Tobin Davis (gruemaster) wrote :

I would like to point out that in my own tests, I have had issues with flashing a device from an image stored remotely, and i have 1Gb network at home. This is all Linux based using dd which works in principle the same way as Win32Image Writer.

Have you tried mapping the network share as a drive (i.e. z:) and tested? If it works ok, then I will pursue this further. If you run in to write buffer issues, then it isn't worth pursuing.

Revision history for this message
Nate (nblythe) wrote :

I have no problems writing an image hosted on a mapped network drive. I'm only dealing with small (<1MB) images at the moment, though.

Revision history for this message
Nate (nblythe) wrote :

Just tested writing from a 512 MB image from a mapped network drive - worked fine. Write speed was reported at ~5.5 MB/s.

Also tested reading a 4GB flash drive into a mapped network drive - also worked fine. Read speed was reported at ~13.5 MB/s.

Tobin Davis (gruemaster)
Changed in win32-image-writer:
status: Triaged → In Progress
status: In Progress → Fix Committed
Tobin Davis (gruemaster)
Changed in win32-image-writer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.