Chkdsk is a Windows command.
When a volume is identified by Windows an administrative command prompt command can be used to mark the volume as dirty.
Marking the volume as dirty forces an autochk after reboot.
If Windows cannot recognize the disk drive nor the volume then the chkdsk command cannot be used to make the drive appear.
.
.
Chkdsk can run on startup when a command is entered with the volume path.
For example: fsutil dirty set W:
(change the drive letter W to the applicable drive letter)
When a volume's dirty bit is set, autochk automatically checks the volume for errors the next time the computer is restarted.
.
.
If the drive does not have a drive letter when booting Windows or booting to Windows Recovery Environment (RE) then an incomplete command will not force an autochk chkdsk scan.
.
.
References:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-dirty?source=recommendations
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/autochk
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-dirty?source=recommendations
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk?tabs=event-viewer
.
.
--Please don't forget to upvote and Accept as answer if the reply is helpful--
.
.