Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ajaeger opened this issue Apr 30, 2013 · 5 comments
Open

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

ajaeger opened this issue Apr 30, 2013 · 5 comments

Comments

@ajaeger
Copy link
Member

ajaeger commented Apr 30, 2013

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
Copy link
Member

Interesting. Which version of Windows was this tested on?

@ajaeger
Copy link
Member Author

ajaeger commented Apr 30, 2013

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

@mbarringer
Copy link
Member

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
Copy link
Member

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants