Page 1 of 1
Disk Sector loading
Posted: Sun Sep 23, 2001 11:00 pm
by truenoteno
when you ask to load a sector of a disk into memory, will it load the entire file also or just the 1 sector ?
RE:Disk Sector loading
Posted: Sun Sep 23, 2001 11:00 pm
by Chris Giese
>On 2001-09-24 20:01:12, truenoteno wrote:
>when you ask to load a sector of a disk into memory, will it load the entire file also or just the 1 sector ?
It depends. What function do you use to load the
disk sectors? Do you use BIOS INT 13h?
Do you use the read() or fread() functions in C?
What OS are you using?
RE:Disk Sector loading
Posted: Mon Sep 24, 2001 11:00 pm
by Iwabee
>On 2001-09-24 22:17:52, Chris Giese wrote:
>>On 2001-09-24 20:01:12, truenoteno wrote:
>>when you ask to load a sector of a disk into memory, will it load the entire file also or just the 1 sector ?
>
>It depends. What function do you use to load the
>disk sectors? Do you use BIOS INT 13h?
>Do you use the read() or fread() functions in C?
>What OS are you using?
How to load sectors from HD in protected mode?
RE:Disk Sector loading
Posted: Mon Sep 24, 2001 11:00 pm
by Chris Giese
>On 2001-09-25 01:12:26, Iwabee wrote:
>>On 2001-09-24 22:17:52, Chris Giese wrote:
>>>On 2001-09-24 20:01:12, truenoteno wrote:
>>>when you ask to load a sector of a disk into memory, will it load the entire file also or just the 1 sector ?
>>
>>It depends. What function do you use to load the
>>disk sectors? Do you use BIOS INT 13h?
>>Do you use the read() or fread() functions in C?
>>What OS are you using?
>
>How to load sectors from HD in protected mode?
INT 13h and drivers for both the floppy and
IDE hard disks deal in sectors. For these
devices, one sector = 512 bytes.
You can load more than one sector at a time
so long as they are contiguous (next to each
other on the disk). In general, a file is
fragmented: the disk sectors it uses are NOT
contiguous. You need another layer of software
(the filesystem) to find the disk sectors
actually used by a file.
Hope this helps.
RE:Disk Sector loading
Posted: Tue Sep 25, 2001 11:00 pm
by Iwabee
>>>>when you ask to load a sector of a disk into memory, will it load the entire file also or just the 1 sector ?
>>>
>>>It depends. What function do you use to load the
>>>disk sectors? Do you use BIOS INT 13h?
>>>Do you use the read() or fread() functions in C?
>>>What OS are you using?
>>
>>How to load sectors from HD in protected mode?
>
>INT 13h and drivers for both the floppy and
>IDE hard disks deal in sectors. For these
>devices, one sector = 512 bytes.
>
>You can load more than one sector at a time
>so long as they are contiguous (next to each
>other on the disk). In general, a file is
>fragmented: the disk sectors it uses are NOT
>contiguous. You need another layer of software
>(the filesystem) to find the disk sectors
>actually used by a file.
Ok. I know that, but in _PROTECTED_ _MODE_ BIOS ints
are disabled so I have to find another way. For
example thru I/O ports. What I ask is HOW to do this?
RE:Disk Sector loading
Posted: Fri Sep 28, 2001 11:00 pm
by j.weeks
>Ok. I know that, but in _PROTECTED_ _MODE_ BIOS ints
>are disabled so I have to find another way. For
>example thru I/O ports. What I ask is HOW to do this?
Uhm... all that info wont fit in one message

Besides,
it depends on what kind of hd. IDE or SCSI?
If you're lookin' for IDE info (which you probably are)
just search for the ATA Standard (or for IDE HD
programming). I believe HelpPC had a section
on HD's as well.
j.weeks