martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
799 stars 86 forks source link

SSK USB adapter HE-G3001 reports drive model as SSK and not the drive attached. #610

Open PartialVolume opened 2 months ago

PartialVolume commented 2 months ago

Drive model is normally obtained via libata and this generally works fine for SATA/SAS/NVME and often USB but for the SSK HE-G3001 (chipset Jmicron JMS578) adapter libata returns `ssk' as the drive model. Smartctl and hdparm return the drive model correctly so why libata returns SSK I'm not sure.

The drive serial number is obtained correctly.

One way around this is to write a IOCTL function that obtains drive model directly from the drive, for both SATA and SCSI command sets depending upon the bus. If a illegal request is returned by the drive, nwipe falls back to using the data libata returns for model no.