Just tried v0.5 of Win32 Disk Imager. Executable errors out at startup
indicating that libgcc_s_dw2-1.dll is missing. I located and downloaded
that DLL and installed it in the same directory as Win32 Disk Imager.exe.
Errors out again, but missing DLL is now reported to be libstdc++-6.dll. I
notice that another user has already reported this error, report number is
187903. Thanks.
----- Original Message -----
From: "Tobin Davis" <email address hidden>
To: <email address hidden>
Sent: Wednesday, February 15, 2012 5:43 PM
Subject: [Bug 932321] Re: getNumberOfSectors() returns incorrect number
Ah, yes. Will tag that bug as fixed as well. Thanks for remembering
this one.
Title:
getNumberOfSectors() returns incorrect number
Status in Image Writer for Windows:
New
Bug description:
The function getNumberOfSectors is not returning the actual sector
count. For example, on one of my 32 GB sd-cards with 64845824 sectors
the function returns 64838340. This means that the whole disk is not
read when doing an image read from the SD card.
Below is a version of getNumberOfSectors that returns the correct
number:
unsigned long long getNumberOfSectors(HANDLE handle, unsigned long long
*sectorsize)
{
DWORD junk;
DISK_GEOMETRY geometry;
PARTITION_INFORMATION part;
BOOL bResult;
bResult = DeviceIoControl(handle, IOCTL_DISK_GET_PARTITION_INFO, NULL, 0,
&part, sizeof(part), &junk, NULL) &
DeviceIoControl(handle, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0, &geometry,
sizeof(geometry), &junk, NULL);
if (!bResult)
{
char *errormessage=NULL;
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL, GetLastError(), 0, errormessage, 0, NULL);
QMessageBox::critical(NULL, "Device Error", QString("An error occurred
when attempting to get the device's geometry.\nError %1:
%2").arg(GetLastError()).arg(errormessage));
LocalFree(errormessage);
return 0;
}
if (sectorsize != NULL)
*sectorsize = (unsigned long long)geometry.BytesPerSector;
return (unsigned long long)part.PartitionLength.QuadPart / (unsigned long
long)geometry.BytesPerSector;
}
Greetings -
Just tried v0.5 of Win32 Disk Imager. Executable errors out at startup
indicating that libgcc_s_dw2-1.dll is missing. I located and downloaded
that DLL and installed it in the same directory as Win32 Disk Imager.exe.
Errors out again, but missing DLL is now reported to be libstdc++-6.dll. I
notice that another user has already reported this error, report number is
187903. Thanks.
----- Original Message ----- ors() returns incorrect number
From: "Tobin Davis" <email address hidden>
To: <email address hidden>
Sent: Wednesday, February 15, 2012 5:43 PM
Subject: [Bug 932321] Re: getNumberOfSect
Ah, yes. Will tag that bug as fixed as well. Thanks for remembering
this one.
-- /bugs.launchpad .net/bugs/ 932321
You received this bug notification because you are subscribed to a
duplicate bug report (912259).
https:/
Title: ctors() returns incorrect number
getNumberOfSe
Status in Image Writer for Windows:
New
Bug description:
The function getNumberOfSectors is not returning the actual sector
count. For example, on one of my 32 GB sd-cards with 64845824 sectors
the function returns 64838340. This means that the whole disk is not
read when doing an image read from the SD card.
Below is a version of getNumberOfSectors that returns the correct
number:
unsigned long long getNumberOfSect ors(HANDLE handle, unsigned long long INFORMATION part; (handle, IOCTL_DISK_ GET_PARTITION_ INFO, NULL, 0, ol(handle, IOCTL_DISK_ GET_DRIVE_ GEOMETRY, NULL, 0, &geometry, (FORMAT_ MESSAGE_ FROM_SYSTEM | FORMAT_ MESSAGE_ ALLOCATE_ BUFFER, :critical( NULL, "Device Error", QString("An error occurred GetLastError( )).arg( errormessage) ); errormessage) ; BytesPerSector; PartitionLength .QuadPart / (unsigned long BytesPerSector;
*sectorsize)
{
DWORD junk;
DISK_GEOMETRY geometry;
PARTITION_
BOOL bResult;
bResult = DeviceIoControl
&part, sizeof(part), &junk, NULL) &
DeviceIoContr
sizeof(geometry), &junk, NULL);
if (!bResult)
{
char *errormessage=NULL;
FormatMessage
NULL, GetLastError(), 0, errormessage, 0, NULL);
QMessageBox:
when attempting to get the device's geometry.\nError %1:
%2").arg(
LocalFree(
return 0;
}
if (sectorsize != NULL)
*sectorsize = (unsigned long long)geometry.
return (unsigned long long)part.
long)geometry.
}
To manage notifications about this bug go to: /bugs.launchpad .net/win32- image-writer/ +bug/932321/ +subscriptions
https:/