[AHCI] identification data has no Model and Size on real hw

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

[AHCI] identification data has no Model and Size on real hw

Post by nifanfa »

Tested on real hardware. BIOS ahci version is set to ahci 2.0
Image
As you can see. the second last value is 0xA5 that means the identify data is correct.
But the Model name is filled with 0x20 and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero
Even the identify data doesn't looks right. but it reads the disk correctly
and the identication look working on VMware
Image
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [AHCI] identification data has no Model and Size on real

Post by nifanfa »

Is there any way except identify the disk to get the size of disk? and Model?
Octocontrabass
Member
Member
Posts: 5562
Joined: Mon Mar 25, 2013 7:01 pm

Re: [AHCI] identification data has no Model and Size on real

Post by Octocontrabass »

nifanfa wrote:But the Model name is filled with 0x20
Your photo has too much information cut off to be certain, but it looks like the model name is "Hoodisk SSD" (6F 48 64 6F 73 69 20 6B 53 53 20 44).
nifanfa wrote:and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero
Your photo has too much information cut off to tell what values are in these words.
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [AHCI] identification data has no Model and Size on real

Post by nifanfa »

Octocontrabass wrote:
nifanfa wrote:But the Model name is filled with 0x20
Your photo has too much information cut off to be certain, but it looks like the model name is "Hoodisk SSD" (6F 48 64 6F 73 69 20 6B 53 53 20 44).
nifanfa wrote:and both offset 120(ATA_IDENT_MAX_LBA) and 200(ATA_IDENT_MAX_LBA_EXT) are zero
Your photo has too much information cut off to tell what values are in these words.
thank you. i think my struct was wrong.
nifanfa
Member
Member
Posts: 104
Joined: Tue Aug 17, 2021 10:40 am
Libera.chat IRC: visitor
Location: CN
Contact:

Re: [AHCI] identification data has no Model and Size on real

Post by nifanfa »

i found that sometimes the Signature (offset 510) is not 0xA5 so on that time the Model name and maxlba will be invalid value
Octocontrabass
Member
Member
Posts: 5562
Joined: Mon Mar 25, 2013 7:01 pm

Re: [AHCI] identification data has no Model and Size on real

Post by Octocontrabass »

You should still be able to read the model name and maximum LBA even when the Checksum Validity Indicator is not 0xA5. It sounds like there's a problem somewhere in your driver.
Post Reply