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

Running on SSD gives error: ERROR: Could not obtain partition info (error code: 1) #16

Closed
The-MAZZTer opened this issue Mar 9, 2016 · 5 comments

Comments

@The-MAZZTer
Copy link

Error appears to be generated from the call to DeviceIoControl on line 81 in. IORequestGenerator/IORequestGenerator.cpp

Error code 1 is ERROR_INVALID_FUNCTION.

I have an up-to-date Windows 10 machine. Running x86 and amdx64 both give the same result. The error only occurs if I try to use diskspd on my SSD, other drives have no issue.

Drive is a Samsung SSD 850 EVO 1TB. I'm using a standard Microsoft driver for it (driver details reports disk.sys, EhStorClass.sys, and partmgr.sys are the files for the driver) at version 10.0.10586.0.

@The-MAZZTer The-MAZZTer changed the title Running on SDD gives error: ERROR: Could not obtain partition info (error code: 1) Running on SSD gives error: ERROR: Could not obtain partition info (error code: 1) Mar 9, 2016
@dl2n
Copy link
Member

dl2n commented May 11, 2016

Sorry I missed this when it was first filed. Is this still reproducing?

@The-MAZZTer
Copy link
Author

Yes. Diskspd version number is 2.0.15 (2015/01/09)

@dl2n
Copy link
Member

dl2n commented May 27, 2016

I'm asking around. In the meantime, can you try against the physical device as opposed to the :?

get-volume c | get-partition | get-disk

And use # as the target. If in powershell, quote the #, ala `#20

@The-MAZZTer
Copy link
Author

The-MAZZTer commented May 28, 2016

Using #0 (which get-volume c | get-partition | get-disk reports is the number of the SSD drive letter) works. I see no errors and diskspd appears to function as intended.

dl2n added a commit that referenced this issue May 31, 2016
* properly align IO priority hint to 8 bytes as req.
* use iB notation for text result output (target size and bandwidth)
* use IOCTL_DISK_GET_LENGTH_INFO which supports GPT (issue #16)
* update version spec to in-flight 2.0.18a
@dl2n
Copy link
Member

dl2n commented Jun 1, 2016

Fixed in the 2.0.18a push. DISKSPD was using a very old IOCTL to query out the partition size, one which only worked for MBR, not GPT.

@dl2n dl2n closed this as completed Jun 1, 2016
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

2 participants