After further consideration, I will be suspending development of the CheckHDD 
utility.

I think that the functionality built into the vinfo utility should be 
sufficient for the 
FreeDOS installer to determine a course of action. 

example:

        vinfo /dC

returns the following ERRORLEVEL codes, and what that means:

                    15 - Not Present
                                
                                Meaning: 
                                DOS does not see such a drive for that letter.

                                Reasons:
                                A hard drive either does not exist or 
                                the hard drive is not partitioned or
                                no partitions usable by DOS exist.

                                Action: 
                                Partition Hard Drive.

                     5 - Not Formatted (for DOS)

                                Meaning:
                                A drive exists for drive, but cannot be read.

                                Reasons:
                                Drive is not formatted or is formatted with 
wrong filesystem.

                                Action:                         
                                Format Hard Disk Drive

                     4 - Network Drive (untested)

                                Meaning:
                                DOS reports this drive as a remote filesystem.
                                
                                Reasons:
                                See errorlevel 15.

                                Action:
                                See errrorlevel 15

                     3 - CD/DVD-ROM (MSCDEX Only, most report error 15)
                                
                                Note:
                                FreeDOS’s default CD driver will not respond to
                                this function. So, a CD/DVD on FreeDOS will
                                respond with errorlevel 15.
                                
                                Meaning:
                                DOS reports this drive as a CD/DVD-ROM drive.
                                
                                Reasons:
                                See errorlevel 15.

                                Action:
                                See errrorlevel 15
 
                     2 - Removable Media (like Floppy)

                                Note:
                                Fake floppy B in a single floppy system will 
report errorlevel 15.
                                Except, when booting from CD and floppy A is 
remapped to 
                                Floppy B. Then it will report errorlevel 2 for 
floppy B.
                                
                                Meaning:
                                DOS reports this drive uses removable media. 

                                Reasons:
                                see errorlevel 15

                                Action:
                                unless testing a floppy with info /dA or /dB,
                                see errorlevel 15

                     0 - No Special Conditions

                                Drive exists and is a local hard drive and is 
readable by DOS.


------------------------------------------------------------------------------
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to