a1ive / nwinfo

Hardware information utility for Windows
https://a1ive.github.io/nwinfo/
The Unlicense
79 stars 13 forks source link

Request to take a disk number as parameter in --disk command in CLI #34

Closed devdevadev closed 8 months ago

devdevadev commented 8 months ago

Hi A1ive...

First thanks for development of nwinfo tool that also works great in winpe environment.

Can you please add an option to take a disk number as a parameter in --disk command ? So we can display output of only desired Disk number if required in CLI usage.

nwinfo_x64.exe --human --disk=1 --no-smart

This command will only display information of Disk 1 as output. So we can get variables as per requirement easily.

Thanks & Regards....

steve6375 commented 8 months ago

This would be good, so that we can determine if a specific disk is an SSD or not as this is difficult to do unless we use powershell and full OS rather than WinPE.

a1ive commented 8 months ago

nwinfo_x64.exe --human --disk=1 --no-smart This command will only display information of Disk 1 as output.

This parameter is ambiguous. Windows counts disks starting from 0, so "Disk 1" could be considered either the first disk (DISK0) or the second disk (DISK1). Besides, "Disk 1" could refer to "\\.\PhysicalDrive0" or "\\.\CdRom0" (or even a floppy disk).

I prefer using the format nwinfo --disk=\\.\PhysicalDrive0 to display information for a specified disk. This way, there is no ambiguity.

a1ive commented 8 months ago

@devdevadev You can now download and test: https://github.com/a1ive/nwinfo/releases/tag/latest Example usage: nwinfo_x64 --disk=\\.\PhysicalDrive0 --no-smart

steve6375 commented 8 months ago

image Looks good under Win10 x64

a1ive commented 8 months ago

image Looks good under Win10 x64

When S.M.A.R.T. detection is disabled (by adding the --no-smart option), nwinfo determines whether the disk is an SSD by querying for the seek penalty descriptor, supporting systems from Windows 7 and above. When S.M.A.R.T. detection is enabled, it invokes the CrystalDiskInfo API (integrated into libcdi.*.dll) to determine whether it's an SSD, which is more accurate but slower.

steve6375 commented 8 months ago

Thanks. I have written a quick blog article https://rmprepusb.blogspot.com/2024/01/a-useful-system-information-utility-for.html Hope its OK?

devdevadev commented 8 months ago

Thanks for considering the disk number as parameter in --disk command. I will remove --no-smart so I can get more accurate info about SSD Drives.

As you said nwinfo use CrystalDiskInfo API by default. Will it be possible for nwinfo to measure random-reads of an unformatted/formatted disk and output result to console ? So we can know which SSD is more faster. and can create a SSD Disk list as per decending speed order.

Thanks & Regards...

a1ive commented 8 months ago

Thanks. I have written a quick blog article https://rmprepusb.blogspot.com/2024/01/a-useful-system-information-utility-for.html Hope its OK?

Thanks for your article. The drivers (*.sys) included in the release files are on Microsoft's blacklist, so they may trigger antivirus alerts. If you have concerns, you can delete them, but it will result in the inability to access CPU temperature, voltage, power consumption, ACPI tables, and SPD information, without affecting other functionalities. Other files can also be deleted as needed, without affecting the use of CLI / GUI programs.

a1ive commented 8 months ago

Will it be possible for nwinfo to measure random-reads of an unformatted/formatted disk and output result to console ?

The feature you mentioned belongs to CrystalDiskMark, not CrystalDiskInfo. You might have confused the two.