diskinfo_t Structure long read long write disk seek Alternates disk reset Reads sector buffer Writes sector buffer Tests Controller RAM diagnostic Drive diagnostic Controller internal diagnostic

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

There are some additional values of cmd which are used only by biosdisk functions. These values of cmd are allowed only for the XT, AT, PS/2, and compatibles. Values have been described in the table given next:   

cmd

What it does

6

Formats a track and sets bad sector flags

7

Formats the drive beginning at a specific track

8

Returns the current drive parameters in first 4 bytes of buffer

9

Initializes drive-pair characteristics

10

Does a long read (512 plus 4 extra bytes per sector)

11

Does a long write (512 plus 4 extra bytes per sector)

12

Does a disk seek

13

Alternates disk reset

14

Reads sector buffer

15

Writes sector buffer

16

Tests whether the named drive is ready

17

Recalibrates the drive

18

Controller RAM diagnostic

19

Drive diagnostic

20

Controller internal diagnostic

diskinfo_t Structure

diskinfo_t structure is used by _bios_disk function. The description of the structure is as follows:

struct diskinfo_t {

unsigned drive, head, track, sector, nsectors;
void far *buffer;
};

Where drive specifies the disk drive which is to be used. Always remember that for the hard disks, the physical drive is specified, not the disk partition. If you want to operate partitions, the application program must also interpret the partition table information of that disk itself.

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20


page 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 

 

 

Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor