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

ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH #3

Open
CalunVier opened this issue Mar 7, 2024 · 4 comments
Open

ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH #3

CalunVier opened this issue Mar 7, 2024 · 4 comments

Comments

@CalunVier
Copy link

I encountered a problem. I'm sure the disk driver is working because I successfully sent the trim command using DiskGenius (but it couldn't trim the entire hard drive).

OS: Windows 11

The following is the console output

Number Friendly Name Serial Number                    HealthStatus         OperationalStatus      Total Size Partition
                                                                                                             Style
------ ------------- -------------                    ------------         -----------------      ---------- ----------
0      SAMSUNG MZ... 0025_38B4_11B0_15DB.             Healthy              Online                    1.86 TB GPT
1      WDC WD10 S... 123622500220                     Healthy              Online                  931.51 GB GPT


PS C:\Users\Calun> disktrim-x64.exe 1
DiskTrim v2.2 by Antoni Sawicki & Tomasz Nowak, Build Dec 31 2016 02:51:58

Disk: 1
Size: 931.5 GB
Type: WDC WD10 SPZX-00Z10T0
Trim: Supported

WARNING: Contents of your drive an all data will be permanently erased!
There is no possibility of data recovery even with 3rd party companies.

Do you want to erase this disk (y/N) ? y
All right...
Querying drive parameters...
ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH
[0x0000045D] ?? I/O ??????????????
@tenox7
Copy link
Owner

tenox7 commented Mar 8, 2024

Oh that very interesting. I have never tested it on Windows 11. However the error 0x0000045D seem to be coming from hardware. Would it be possible for you to boot Windows PE based on Windows 10 and try it there as well?

@CalunVier
Copy link
Author

Oh that very interesting. I have never tested it on Windows 11. However the error 0x0000045D seem to be coming from hardware. Would it be possible for you to boot Windows PE based on Windows 10 and try it there as well?

Same problem in Windows 10 KVM, but with antoher error code

PS C:\Windows\system32> disktrim 1
DiskTrim v2.2 by Antoni Sawicki & Tomasz Nowak, Build Dec 31 2016 02:51:58

Disk: 1
Size: 3726.0 GB
Type: WD       Elements SE 2622
Trim: Supported

WARNING: Contents of your drive an all data will be permanently erased!
There is no possibility of data recovery even with 3rd party companies.

Do you want to erase this disk (y/N) ? y
All right...
Querying drive parameters...
ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH
[0x00000057] ?????

@CalunVier
Copy link
Author

I have to say, blkdiscard in Linux does not work on this hard drive either. But the closed-source software DiskGenius does work. I have no clue about this. Maybe Western Digital's Trim command on SMR HDD is special?

@CalunVier
Copy link
Author

But I have actually successfully implemented blkdiscard on a 2.5-inch Western Digital 2TB SMR HDD with a SATA port. But there was no success on another Western Digital 1TB 2.5-inch SMR HDD connected to SATA via USB. It seems like I've never successfully implemented a block device diskcard on a USB device.

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