2. Description
Boot Parameters
Jump Instruction 3
360
Kb
1.2
Mb
1.44
Mb
No.
of
bytes
EB3490
MSDOS5.0
System ID 8
No. of bytes/sector 2 512 512 512
No. of sectors/cluster 1 2 1 1
No. of sectors in reserved area 2 1 1 1
No. of copies of FAT 1 2 2 2
Max. no. of root dir. entries 2 112 224 224
Total no. of sectors 2 720 2400 2880
Media descriptor 1 FD F9 F0
No. of sectors/FAT 2 2 7 9
No. of sectors/track 2 9 15 18
No. of sides 2 2 2 2
No. of hidden sectors 2 0 0 0
3. Reading Boot Sector
No. of
Description bytes
Jump Instruction
System ID
Bytes/sector
Sectors/cluster
Sectors in
reserved area
Copies of FAT
Max. root dir. entries
Total no. of
sectors Media
descriptor
Sectors/FAT
Sectors/track
Sides
3821212212222
main( )
{
struct boot
{
char jump[ 3 ] ;
char sysid[ 8 ] ;
int bps ;
c .h. ar spc ;
char rest[ 482 ] ;
} ;
struct boot b ;
printf ( ”Insert disk,
Press any key ) ;
getch( ) ;
.a b. sread ( 0, 1, 0, &b ) ;
}
BBPP
DDBBPP
Side 0,
Trk 0,
Sec1
Side 0,
Trk 0,
Sec1
4. # include ”dos.h”
main( )
{
struct boot
{
char jump[ 3 ] ;
char sysid[ 8 ] ;
int bps ;
char spc ;
. .
} ;
struct boot b ;
absread ( 0, 1, 0, &b ) ;
for ( i = 0 ; i <= 2 ; i++ )
printf ( ”%X”, ) ;
b.jump[ i ]
for ( i = 0 ; i <= 7 ; i++ )
printf ( ”%c”, b.sysid[ i ]
) ;
printf ( ”Bytes/sector = %d”, b.bps ) ;
printf ( ”Sectors/cluster = %d”, b.spc ) ;
}
int i ;
......CCoonntt
5. In General
absread (drive no., no. of sectors to read,
sector from where reading should begin, buffer )
absread ( 0, 1, 0, &b ) ; ;
ROM - BIOS DOS
S0, T0, S1
Every sector referred using
side, track, sector
Drive A - 0
Drive B - 1
Drive C - 128
D. r i v e D . - 1 2 9. . . .
LSN 0
LSN 36
Every sector referred using
LSN
Drive A - 0
Drive B - 1
Drive C - 2
D. r i v e D . - 3. . . .
S0, T1, S1
6. What Is
It? Description
1.44 Mb Disk
Jump Instruction
System ID
Bytes/sector
Sectors/cluster
Sectors in
reserved area
Copies of FAT
Max. root dir. entries
Total no. of
sectors Media
descriptor
Sectors/FAT
Sectors/track
Sides
Obtained
Values
Typical
Values
EB3490
IBM 3.3
512
1
1
2
224
2880
F0
9
18
2
0
102
….
20480
0
1
-24
0
2048
7
-2
0
0
8
BP
DBS
Virus