Not enough space on disk error

Bug #786060 reported by Tony Beville
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Image Writer
Fix Released
Medium
Tobin Davis

Bug Description

Running windows 7 pro, with different SD cards, 512MB and 8GB, both get a report saying not enough space for a 250MB file.

I recommend using IOCTL_DISK_GET_DRIVE_GEOMETRY_EX (instead of IOCTL_DISK_GET_DRIVE_GEOMETRY) which will give an explicit (and on my system ) correct size of the disk in bytes.

Revision history for this message
Jeff L (jll544) wrote :

Attached patch uses IOCTL_GET_LENGTH_INFORMATION to determine device size and leaves the old CHS calculation as fallback if the ioctl fails (supposedly for floppy disks, although I have not tested that scenario).

Revision history for this message
Jeff L (jll544) wrote :

Forgot to upload this earlier. This patch also is required to fix the device size bug. Simply adds read access to the raw device, so that IOCTL_DISK_GET_LENGTH_INFO can succeed.

Revision history for this message
Tony Beville (beville) wrote :

Cool, your patches worked for me! More than one way to skin a cat :-)

Revision history for this message
Mitch Dyer (dyer-mitch) wrote :

I applied the patches listed here as I was receiving the same error on a 16 GB SD card, after compiling and moving the newly compiled Win32DiskImager.exe into a recently extracted win32diskimager-RELEASE-0.3-r27-binary.zip folder I receive the error:

"The procedure entry point _ZN7QWidget4showEv could not be located in the dynamic link library QtGui4.dll."

Any thoughts?

Revision history for this message
Bob Bell (k-bos-w) wrote :

Silly me, I have been using two systems with Win7Pro and got the same error so I bought more cards. Now I find a patch but don't know how to go about applying patch. Is a compiled version available?

Revision history for this message
John Blossom (jblossom) wrote :

Likewise, I need a compiled version, please.

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

I'm technically on vacation, but will test this (along with a lot of other patches) and hopefully get a new release out before end-of-year (UTC-8).

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

I just released v0.4. I did not include the patches attached to this bug report, but I also did not experience this bug during my testing. I am marking this bug as incomplete. If anyone still experiences this issue, please let me know, along with specific info so I can try to reproduce it.

Tobin Davis (gruemaster)
Changed in win32-image-writer:
status: In Progress → Incomplete
Revision history for this message
35mmslr (35mmslr) wrote :

I am using a 16GB class 10 microSD in a SDHC converter. I can read, write, create partitions and format the card in DISKPART and Windows 7 Disk Management without any problems. However, I still get this error when trying to write an img file via v0.4

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

Now that I am back from work travel, I can focus some time on this. No promises that it will be fixed for 0.5 (targeted for January 20).

Changed in win32-image-writer:
milestone: 0.4 → 0.5
status: Incomplete → Confirmed
Revision history for this message
Tobin Davis (gruemaster) wrote :

Pushing 0.5 now with a fix for this. Please test. If it is still a problem, please change the status of bug 932321 to new.

Changed in win32-image-writer:
status: Confirmed → 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.