Computing.Net > Forums > Disk Operating System > Int 13h error 2

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Int 13h error 2

Reply to Message Icon

Name: Whisper
Date: December 18, 2000 at 02:02:44 Pacific
Comment:

Can anyone tell me what this means? And how do I fix it? I can't get any boot disks to work. The Max installer only goes as far as this error message:"Int 13h error 2 drive 0 cyl 1 head 0 sect 2 count 1"

NEC 9616 Ready (2/22/1996)
120MHz processor
16MB RAM
256KB Secondary Cache
1.6 Gigabyte Hard Drive (Maxtor)
NEC Multispin 6X CD-ROM
Built-In Infra-Red Data Transfer (??)



Sponsored Link
Ads by Google

Response Number 1
Name: The Doofus
Date: December 18, 2000 at 16:12:24 Pacific
Reply:

Interrupt 13h


The next lower level of communications with drives, the ROM BIOS Int 13h
routines, usually are found in ROM chips on the motherboard or on an adapter
card in a slot. However, an Int 13h handler also can be implemented by using a
device driver loaded at boot time. Because DOS requires Int 13h access to boot
from a drive (and a device driver cannot be loaded until after boot-up), only
drives with ROM BIOS-based Int 13h support can become bootable. Int 13h routines
need to talk directly to the controller using the I/O ports on the controller.
Therefore, the Int 13h code is very controller-specific. Table 22.2 lists the
different functions available at the Interrupt 13h BIOS interface. Some
functions are available to floppy drives or hard drives only, whereas others are
available to both types of drives.


Table 22.3 shows the error codes that may be returned by the BIOS INT 13h
routines. In some cases, you may see these codes referred to when running a
low-level format program, disk editor, or other program that can directly access
a disk drive through the BIOS.

Table 22.2  Int 13h BIOS Disk Functions


























































































































































FunctionFloppy DiskHard DiskDescription
00hXXReset disk system
01hXXGet status of last operation
02hXXRead sectors
03hXXWrite sectors
04hXXVerify sectors
05hXXFormat track
06hXFormat bad track
07hXFormat drive
08hXXRead drive parameters
09hXInitialize drive characteristics
0AhXRead long
0BhXWrite long
0ChXSeek
0DhXAlternate hard disk reset
0EhXRead sector buffer
0FhXWrite sector buffer
10hXTest for drive ready
11hXRecalibrate drive
12hXController RAM diagnostic
13hXController drive diagnostic
14hXController internal diagnostic
15hXXGet disk type
16hXGet floppy disk change status
17hXSet floppy disk type for format
18hXSet media type for format
19hXPark hard disk heads
1AhXESDI--Low-level format
1BhXESDI--Get manufacturing header
1ChXESDI--Get configuration

Table 22.3  BIOS INT 13h Error Codes
































































CodeDescriptionCodeDescription
00hNo error06hMedia change error
01hBad command07hInitialization failed
02hAddress mark not found09hCross 64K DMA boundary
03hWrite protect0AhBad sector flag detected
04hRequest sector not found0BhBad track flag detected
05hReset failed10hBad ECC on disk read
11hECC corrected data errorBBhUndefined error
20hController has failedCChWrite fault
40hSeek operation failed0EhRegister error
80hDrive failed to respondFFhSense operation failed
AAhDrive not ready


If you design your own custom disk controller device, you need to write an
IBM- compatible Int 13h handler package and install it on the card using a ROM
BIOS that will be linked into the system at boot time. To use Int 13h routines,
a program must use exact cylinder, head, and sector coordinates to specify
sectors to read and write. Accordingly, any program designed to work at this
level must be intimately familiar with the parameters of the specific disk on
the system on which it is designed to run. Int 13h functions exist to read the
disk parameters, format tracks, read and write sectors, park heads, and reset
the drive.


A low-level format program for ST-506/412 drives needs to work with disks at
the Int 13h level or lower. Most ST-506/412 controller format programs work with
access at the Int 13h level because virtually any operation a format program
needs is available through the Int 13h interface. This is not true, however, for
other types of controllers (such as IDE, SCSI, or ESDI), for which defect
mapping and other operations differ considerably from the ST-506/412 types.
Controllers that must perform special operations during a low-level format, such
as defining disk parameters to override the motherboard ROM BIOS drive tables,
would not work with any formatter that used only the standard Int 13h
interface.


For these reasons, most controllers require a custom formatter designed to
bypass the Int 13h interface. Most general-purpose, low-level reformat programs
that perform a non-destructive format access the controller through the Int 13h
interface (rather than going direct) and therefore cannot be used for an initial
low-level format; the initial low-level format must be done by a
controller-specific utility.


Few high-powered disk utility programs, other than some basic formatting
software, can talk to the disk at the Int 13h level. The DOS FDISK program
communicates at the Int 13h level. The Norton DISKEDIT and older NU programs can
communicate with a disk at the Int 13h level when these programs are in their
absolute sector mode; they are some of the few disk-repair utilities that can do
so. These programs are important because they can be used for the worst data
recovery situations, in which the partition tables have been corrupted. Because
the partition tables, as well as any non-DOS partitions, exist outside the area
of a disk that is defined by DOS, only programs that work at the Int 13h level
can access them. Most utility programs for data recovery work only at the DOS
Int 25/26h level, which makes them useless for accessing areas of a disk outside
of DOS' domain.

***As you can see from the above information, either the drive is damaged at that location or the drives "offset" is incorrect. Try using the IDE auto-detect freature of your CMOS, if available, or enter required information which is printed on the drives label into the appropriate line in Standard Setup. If neither of these suggestions work, the drive is damaged.


0

Response Number 2
Name: The Doofus
Date: December 18, 2000 at 16:14:34 Pacific
Reply:

Holy smokes, this forum is not "tables friendly". Sorry about the big gaps.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Int 13h error 2

DOS ERROR 2; help! www.computing.net/answers/dos/dos-error-2-help/2756.html

Commands in DR DOS www.computing.net/answers/dos/commands-in-dr-dos/14805.html

Ems and Xms memory allocation in my DOS C program www.computing.net/answers/dos/ems-and-xms-memory-allocation-in-my-dos-c-program/2513.html