Type de média non spécifié

Furax_33 -  
 Furax_33 -
Hello,

With the get-physicaldisk command, my disk shows up as "'unspecified" in MediaType when it should appear as hdd.

Is there another command to provide me with the correct information?

Thanks in advance

Configuration: Windows / Chrome 93.0.4577.63

2 answers

brucine Posted messages 24708 Registration date   Status Member Last intervention   4 148
 
Hello,

This seems impossible unless the command is run from, for example, an SD card, so start by checking where Powershell was launched from.

Wmic provides an alternative by calling the registry, but only on Windows 10.
If I want to return the model of the disk, I type in the command prompt:

wmic /NameSpace:\\root\Microsoft\Windows\Storage Path MSFT_PhysicalDisk Where "MediaType=3" Get Model

MediaType=3 returns information for a hard disk (4 if it's an SSD, etc).
1
Furax_33
 
Good evening,

Thank you for your interest in my issue.

I am launching the command directly from the affected PC.

The PC is a Dell Latitude 3590 and the disk is a SAMSUNG HM121HI.

The command:
PS C:\Windows\system32> Get-PhysicalDisk

Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size
------ ------------ ------------ --------- ------- ----------------- ------------ ----- ----
0 SAMSUNG HM121HI S14PJD0S101316 Unspecified False OK Healthy Auto-Select 111.79 GB
1 SanDisk Ultra 0401e9d8ddfec1d6648d Unspecified False OK Healthy Auto-Select 28.64 GB

The wmic command gives the value "0" for this disk, which corresponds to "unspecified."
0
brucine Posted messages 24708 Registration date   Status Member Last intervention   4 148
 
Well, I don't know.

That you can't see your SD card is normal, but I have the correct output from both methods (in the case of wmic, you need Windows 10 and to specify the desired MediaType, which is 3 in our case).

Your disk must have some specific features, are you sure given its modest size that it's an HDD and not an SSD? (in which case MediaType=4)?

There are several other ways to retrieve the information, also via wmic without going through the registry:

wmic diskdrive get InterfaceType,Manufacturer,MediaType,Model,SerialNumber,Size /value
or
wmic path Win32_DiskDrive get InterfaceType,Manufacturer,MediaType,Model,SerialNumber,Size /value

but to my knowledge, there is no other simple non-graphical method.
0
Furax_33 > brucine Posted messages 24708 Registration date   Status Member Last intervention  
 
Hello,

Thank you for the responses, but the commands do not provide the type (hdd or ssd) or a numerical value.

Otherwise, the disk "SAMSUNG HM121HI" is indeed a SATA HDD.

However, if I open the Task Manager and click on the Performance tab,
the type "HDD" does appear next to the disk.

How does Windows manage to retrieve this value? A mystery!!!
0
brucine Posted messages 24708 Registration date   Status Member Last intervention   4 148 > Furax_33
 
The types of disks are stored in the BIOS and in the registry at HKLM-System-Mounted Devices but are in hex in the registry, making them uninterpretable.

The problem may be due to the BIOS, in which case there is nothing else to do (other than obviously changing PCs) than to make the bladders look like lanterns.

The PowerShell command (Administrator): Get-PhysicalDisk | Select-Object FriendlyName, MediaType, Size
should return FriendlyName = PhysicalDisk(N) with its MediaType (Unspecified in our case).

Note the corresponding value of N, then write:

Set-PhysicalDisk –FriendlyName PhysicalDisk(N) -MediaType HDD

It is sometimes mentioned that the trick is only intended for disk pools on servers, but it doesn't hurt to try.

In case of failure, one could always create such a disk pool, repeat the operation, then delete it, but this may not be the best idea because I know little about the issue, but it seems to me that the operation formats the target disks.
0
brucine Posted messages 24708 Registration date   Status Member Last intervention   4 148 > brucine Posted messages 24708 Registration date   Status Member Last intervention  
 
You can also check via Powershell under which fault number the disk is possibly known (the correct return is 3, my SD card in place says 0):

Get-WmiObject -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage | Select FriendlyName, MediaType
0
Furax_33 > brucine Posted messages 24708 Registration date   Status Member Last intervention  
 
Thank you for your help,

The command "Get-WmiObject -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage | Select FriendlyName, MediaType " returns the value "0"

I changed the disk and reinstalled Windows 10 21h1 and updated all the drivers.

The new disk also appears as "Unspecified". I conclude that it is this PC (Dell Latitude 3590) that has a problem (Which I do not encounter on another PC of the same model)

I ran the command "Set-PhysicalDisk" with the Uniqueid and the MediaType value is now correct

I therefore suspect this PC, but I still do not know the origin.

Thanks again for your analysis and your help.
0