y
Tried all that. It all passes except /scanos which returns 0. Everything seems to be in place, so I have no idea what is wrong.
try diskpart.exe
select vol x (where x has the bad c letter)
attrib vol
(see if the volume is marked as hidden)
on my system the command returns a error for either of the special volumes.
maybe you can set the hidden attribute for the volume so it does not get a drive letter on the next boot.
something like:
LIST VOLUME
SELECT VOLUME x
ATTRIBUTES VOLUME SET HIDDEN
(or NODEFAULTDRIVELETTER where the word hidden would be)
=============
help file info:
DISKPART> help attributes
Microsoft DiskPart version 10.0.19041.964
VOLUME - Manipulate volume attributes.
DISK - Manipulate disk attributes.
DISKPART> help attributes volume
Displays, sets, or clears volume attributes for the selected volume.
Syntax: ATTRIBUTES VOLUME [SET | CLEAR]
[HIDDEN | READONLY | NODEFAULTDRIVELETTER | SHADOWCOPY] [NOERR]
SET Sets the specified attribute (HIDDEN, READONLY, and
NODEFAULTDRIVELETTER or SHADOWCOPY) for the selected volume.
CLEAR Clears the specified attribute (HIDDEN, READONLY,
NODEFAULTDRIVELETTER or SHADOWCOPY) from the selected volume.
HIDDEN Specifies that the volume is hidden.
READONLY Specifies that the volume is read-only.
NODEFAULTDRIVELETTER
Specifies that the volume does not receive a drive letter by
default.
SHADOWCOPY Specifies that the volume is a shadow copy volume.
NOERR For scripting only. When an error is encountered, DiskPart
continues to process commands as if the error did not occur.
Without the NOERR parameter, an error causes DiskPart to exit
with an error code.
On basic master boot record (MBR) disks, the HIDDEN, READONLY, and
NODEFAULTDRIVELETTER attributes apply to all volumes on the disk.
On basic GUID partition table (GPT) disks, and on dynamic MBR and GPT
disks, the HIDDEN, READONLY, and NODEFAULTDRIVELETTER attributes apply
only to the selected volume.
Example:
To display the attributes on the selected volume, type:
ATTRIBUTES VOLUME
To set the attribute on the selected volume as read-only, type:
ATTRIBUTES VOLUME SET READONLY
To clear the read-only attribute from the selected volume, type:
ATTRIBUTES VOLUME CLEAR READONLY
DISKPART>
i have only used this command one time where a machine crashed during a upgrade and the entire disk was marked readonly