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

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

Closed
devdevadev opened this issue Jan 27, 2024 · 9 comments
Closed
Labels
enhancement New feature or request

Comments

@devdevadev
Copy link

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
Copy link

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
Copy link
Owner

a1ive commented Jan 27, 2024

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 added a commit that referenced this issue Jan 27, 2024
@a1ive
Copy link
Owner

a1ive commented Jan 27, 2024

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

@steve6375
Copy link

image
Looks good under Win10 x64

@a1ive
Copy link
Owner

a1ive commented Jan 28, 2024

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
Copy link

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
Copy link
Author

devdevadev commented Jan 28, 2024

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
Copy link
Owner

a1ive commented Jan 28, 2024

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
Copy link
Owner

a1ive commented Jan 28, 2024

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.

@a1ive a1ive closed this as completed Jan 28, 2024
@a1ive a1ive added the enhancement New feature or request label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants