openSUSE / imagewriter

Utility for writing raw disk images & hybrid isos to USB keys
GNU General Public License v2.0
178 stars 164 forks source link

Writing of images to 32 GB USB stick fails under Windows #4

Open ajaeger opened 11 years ago

ajaeger commented 11 years ago

Imagewriter for windows is used to burn Studio appliance raw files to USB flash drives. We have experimented with larger drives and have found imagewriter will not see anything larger than 16GB.

Steps to Reproduce: 1.open any version of windows 2.insert USB flash drive larger than 16GB 3.Imagewriter will not see the drive Actual Results:
cannot burn usb stick

Expected Results:
usb drive should show up and imagewriter should burn the raw file.

mbarringer commented 11 years ago

Interesting. Which version of Windows was this tested on?

ajaeger commented 11 years ago

Apparently with any version that was tried, so seems to be a 32 GB limit somewhere...

mbarringer commented 11 years ago

Yes, I had forgotten that the 16GB limit is hardcoded. When I wrote it originally, 16GB was a pretty clear sign that the device was a hard drive rather than a USB stick and I couldn't find another way to distinguish them. I'll remove the limit.

cornelius commented 11 years ago

I actually wouldn't completely remove it, but maybe show a hint for bigger disks. It's very helpful that ImageWriter is protecting the user to not overwrite harddisks. It would be a pity to complete remove this protection.

ZakDanger commented 9 years ago

you can hex edit the exe file to remove or change this limit. search for the 16bit unicode string around offset 0x5ed9: "SELECT * FROM Win32_DiskDrive WHERE InterfaceType = "USB" AND Size <= 17179869184"

Then alter the value "17179869184" (ie 16GB) to be a larger value. Out of simplicity I just changed it to be 97179869184 which easily allowed me to use my 32gb sd card.