SpartaDOS X Reference Manual

The Command Processor — Commands




CHKDSK Command

Index


Purpose Show volume, free/total disk space, and sector size of the selected drive (or diskette).
 
Syntax CHKDSK [d:]
  
Type Internal
 
Related FORMAT, MEM, VER
 
Remarks   The CHKDSK command is used to quickly see how much space is available on a drive and the sector size (this information is not available by doing a DIRectory). Note that the volume name of all Atari DOS 2 style diskettes will appear as "AtariDOS".

You will notice that the disk write-lock status is omitted — this feature is no longer supported. We found this to be more of a hassle than it was worth, and it did not protect you from formatting the diskette. (The write-lock feature of the Multi I/O still works and is totally independent — it is a far more secure write-lock.)

The following is a sample output of the CHKDSK command.

Volume:

SPARTA_1 0A 25

Bytes/sector:

256

Total bytes:

184320

Bytes free:

123390

The two numbers following the volume name are used for disk change detection in cases where volume names are the same on both diskettes. The first is a random number generated when the disk was formatted. The second is a sequence number which is incremented each time a file on the disk is opened for write.


Previous page

Next page