Skip to main content
Home
Retro - Commodore Business Machines

Main navigation

  • Home
  • Store
  • History of Commodore Business Machines
  • Carlsen's Nuggets
    • 1541 Drives
      • 1541 Reading Disk Drive Errors and what they mean (Manual Appendix B)
      • 1541 CHIPS VS SYMPTOMS - PCB# 1540050 (early version) with ALPS drive mechanism
      • 1541 CHIPS VS SYMPTOMS - PCB# 251830 or 251777 with Newtronics drive mechanism (1984)
      • 1541 DRIVE POWERS UP AND RESETS OK, Thats it..
      • 1541 DRIVE SUDDENLY WILL NOT READ DISKS OR LOAD PROGRAMS
      • 1541 Drive powers up and resets normally, Spindle Motor Runs, No Red LED
      • 1541 MISCELLANEOUS FIXES
      • 1541 PROGRAMS FAIL TO LOAD COMPLETELY OR COMPUTER LOCKS UP
      • 1541 SOME ODD FAILURES
  • Product Support
    • Commodore C64 DIY Diagnostic and Dead Test Cartridge and Harness Kit Assembly Instructions
User account menu
  • Log in

Breadcrumb

  1. Home

1541 Reading Disk Drive Errors and what they mean (Manual Appendix B)

Managed ad

By justin, 23 January, 2024

Reading Disk Drive Errors

It is sometimes helpful to read the disk drive error channel when the drive red light is flashing. Here is a small BASIC program 
to do that. It reads the channel, displays the error message, and turns the red activity LED off. 

 10 OPEN 15,8,15 
 20 INPUT#15,EN,EM$,ET,ES 
 30 PRINT EN,EM$,ET,ES 
 40 CLOSE 15

This program and all of the possible drive error messages are listed in the back of the disk drive operators manual. (Appendix B)

-- Ray Carlsen --

APPENDIX B: SUMMARY OF CBM FLOPPY ERROR MESSAGES

Error codeDescription
0OK, no error exists.
1Files scratched response. Not an error condition.
2-19Unused error messages: should be ignored.
20Block header not found on disk.
21Sync character not found.
22Data block not present.
23Checksum error in data.
24Byte decoding error in data.
25Write-verify error.
26Attempt to write with write protect on.
27Checksum error in header.
28Data extends into next block.
29Disk id mismatch.
30General syntax error
32Invalid command.
32Long line.
33Invalid filename.
34No file given.
39Command file not found.
50Record not present.
51Overflow in record.
52File too large.
60File open for write.
61 File not open.
62File not found.
63File exists.
64File type mismatch.
65No block.
66Illegal track or sector.
67Illegal system track or sector.
70No channels available.
71Directory error.
72Disk full or directory full.
73Power up message, or write attempt with DOS Mismatch
74Drive not ready.
  
20READ ERROR (block header not found) 
The disk controller is unable to locate the header of the requested data block.
Caused by an illegal block number, or the header has been destroyed.
21READ ERROR (no sync character) 
The disk controller is unable to detect a sync mark on the desired track. Caused
by misalignment of the read/writer bead, no diskette is present, or unformatted or improperly seated diskette. Can also indicate a hardware failure.
22READ ERROR (data block not present) 
The disk controller has been requested to read or verify a data block that was not properly written. This error message occurs in conjunction with the BLOCK commands and indicates an illegal track and/or block request. 
23READ ERROR (checksum error in data block) 
This error message indicates that there is an error in one or more of the data bytes. The data has been read into the DOS memory, but the checksum over the data is in error. This message may also indicate grounding problems.
24READ ERROR (byte decoding error) 
The data or header has been read into the DOS memory, but a hardware error has been created due to an invalid bit pattern in the data byte. This message may also indicate grounding problems.
25WRITE ERROR (write-verify error) 
This message is generated if the controller detects a mismatch between the written data and the data in the DOS memory.
26WRITE PROTECT ON 
This message is generated when the controller has been requested to write a data block while the write protect switch is depressed. Typically, this is caused by using a diskette with a write a protect tab over the notch.
27READ ERROR (checksum error in header) 
The controller has detected an error in the header of the requested data block.
The block bas not been read into the DOS memory. This message may also indicate grounding problems.
28WRITE ERROR (long data block) 
The controller attempts to detect the sync mark of the next header after writing a data block. If the sync mark does not appear within a pre-determined time, the error message is generated. The error is caused by a bad diskette format (the data extends into the next block), or by hardware failure.
29DISK ID MISMATCH 
This Message is generated when the controller has been requested to access a diskette which has not been initialized. The message can also occur if a diskette has a bad header.
30SYNTAX ERROR {general syntax) 
The DOS cannot interpret the command sent to the command channel. Typically this is caused by an illegal number of filenames, or patterns are used. For example, two file names may appear on the left side of the COPY command.
31SYNTAX ERROR (invalid command) 
The DOS does not recognize the command. The command must start in the first position.
32SYNTAX ERROR (invalid command) 
The command sent is longer than 58 characters
33SYNTAX ERROR (invalid file name)
Pattern matching is invalidly used in the OPEN or SAVE command.
34SYNTAX ERROR (no file given)
the file name was left out of a command or the DOS does not recognize it as such. Typically, a colon (:) has been left out of the command.
39SYNTAX ERROR (invalid command)
This error may result if the command sent to command channel (secondary address 15) is unrecognized by the DOS.
50RECORD NOT PREDSENT
Result of disk reading past the last record through INPUT#,  or GET# commands. This message will also occur after positioning to a record beyond end of file in a relative file. If the intent is to expand the file by adding the new record (with a PRINT# command), the error message may be ignored. INPUT or GET should not be attempted after this error is detected without first repositioning.
51OVERFINL ROECWOR D
PRINT# statement exceeds record boundary. Information is cut off. Since the
carriage return is sent as a record terminator is counted in the record size. This message will occur if the total characters in the record (including the final carriage return) exceeds the defined size,
52FILE TOO LARGE
Record position within a relative file indicates that disk overflow will result.
60WRITE FILE OPEN
This message is generated when a write file that has not been closed is being opened for reading.
61FILE NOT OPEN
This message is generated when a file is being accessed that has not been opened in the DOS. Sometimes, in this case, a message is not generated; the request is simply ignored.
62FILE NOT FOUND
The requested file does not exist on the indicated drive.
63FILE EXISTS 
The file name of the file being created already exists on the diskette.
64FILE TYPE MISMATCH
The file type does not match the file type in the directory entry for the requested file.
65NO BLOCK
This message occurs in conjunction with the B-A command. It indicates that the block to be allocated has been previously allocated. The parameters indicate the track and sector available with the next highest number. If the parameters are zero (0), then all blocks higher in number are in use.
66ILLEGAL TRACK AND SECTOR
The DOS has attempted to access a track or block which does not exist in the format being used. This may indicate a problem reading the pointer to the next  block.
67ILLEGAL SYSTEM T OR S
This special error message indicates an illegal system track or block.
70NO CHANNEL (available)
The requested channel is not available, or all channels are in use. a maximum of five sequential files may be opened at one time to the DOS. Direct access channels may have six opened files.
71DIRECTORY ERROR
The BAM does not match the internal count. There is a problem in the BAM allocation or the BAM has been overwritten in DOS memory. To correct this problem, reinitialize the diskette to restore the BAM in memory. Some active files may be terminated by the corrective action. NOTE: BAM=Block Availability Map
72DISK FULL
Either the blocks on the diskette are used or the directory is at its entry limit. DISK FULL is seat when two blocks are available on the 1541 to allow the current file to be closed.
73DOS MISMATCH (73, CBM DOS V2.6 1541) 
DOS 11 and 2 are read compatible but not write compatible. Disks may be interchangeably read with either DOS, but a disk formatted on one version cannot be written upon with the other version because the format is different. This error is displayed whenever an attempt is made to write upon a disk which has been formatted in 2 non-compatible format. (A utility routine is available to assist in converting from one format to another.) This message may also appear after power up.
74DRIVE NOT READY
An attempt has been made to access the 154] Single Drive Floppy Disk without
any diskettes present in either drive,

 

Tags

  • 1541 troubleshooting
  • Log in to post comments

Comments

Managed ad

RSS feed
Powered by Drupal