OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 1:03 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Cylinder V.S. Tracks
PostPosted: Sat Mar 17, 2001 12:00 am 
What is the difference between cylinder and track
when talking about a floppy diskette?

And what is the difference than between cylinder
and tracks on a hard drive?

Ralf Brwon's old book on all interrupts did not include
INT 0x13 AH=0x03 with the information about
cylinder, all it had was about tracks ...

Any one know if it makes a difference if the old style
of INT 0x13 AH=0x03 is used?

Thanks


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Sun Mar 18, 2001 12:00 am 
>On 2001-03-17 20:34:27, Ben Hsu wrote:
>What is the difference between cylinder and track
>when talking about a floppy diskette?

A track is a circle of sectors on a single side of a platter.
A cylinder is all the tracks on all the platters that line up
above and below each other.

You use the cylinder value when doing reads.


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Sun Mar 18, 2001 12:00 am 
>A track is a circle of sectors on a single side of a platter.
>A cylinder is all the tracks on all the platters that line up
>above and below each other.

Are the tracks in the cylinder lined up up & down
or they like on one head ...
Is there any graphical explainations that is better
to understand this line up thing ...

Thanks


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Mon Mar 19, 2001 12:00 am 
>On 2001-03-18 22:55:51, Anonymous wrote:

>Is there any graphical explainations that is better
>to understand this line up thing ...

This might help,
http://www.jegsworks.com/Lessons/lesson6/lesson6-3.htm


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Mon Mar 19, 2001 12:00 am 
>This might help,
>http://www.jegsworks.com/Lessons/lesson6/lesson6-3.htm

So, cylinders are the contrentric tracks in its
cylinderical state. But how then the algorithm to
calculate between LBA & CHS works?

Cylinder = LBA / Heads_Per_Cylinder * Sect_Per_Track
&
LBA = (Cylinder * Heads_Per_Cylinder + Head) * Sect_Per_Track + Sector - 1

Anyone know the matematical proof of this thing?
And if on a flooy diskette, is the cylinder just track?
And how is this relating to INT 0x13 AH=0x02 or AH=0x03?
e.g. Reading from a disk
INT 0x13
AH=0x02
AL=Numbers of Sectors
ES:BX=>buffer
CH=Cylinder #
CL=Sector #
DH=Head #
DL=Drive #
Are these numbers in logical format (1~xx) or physical
format (0~xx)?

Thanks.


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Tue Mar 20, 2001 12:00 am 
>On 2001-03-19 10:52:12, Ben Hsu wrote:
>
>Cylinder = LBA / Heads_Per_Cylinder * Sect_Per_Track
>&
>LBA = (Cylinder * Heads_Per_Cylinder + Head) * Sect_Per_Track + Sector - 1
>
>Anyone know the matematical proof of this thing?
They look about right.

>And if on a flooy diskette, is the cylinder just track?
(if it's a ds floppy there are two tracks)
Since tracks are only numbered per side of a platter, track
and cylinder numbers always are the same on all drives.

>And how is this relating to INT 0x13 AH=0x02 or AH=0x03?
>e.g. Reading from a disk
>INT 0x13
>AH=0x02
>AL=Numbers of Sectors
>ES:BX=>buffer
>CH=Cylinder #
>CL=Sector #
>DH=Head #
>DL=Drive #
>Are these numbers in logical format (1~xx) or physical
>format (0~xx)?

Sector Numbering and sector counts start from 1, all
the rest start from 0.


Top
  
 
 Post subject: RE:Cylinder V.S. Tracks
PostPosted: Wed Mar 21, 2001 12:00 am 
>Sector Numbering and sector counts start from 1, all
>the rest start from 0.

So you mean when using INT 0x13, all numbers such
as, head #, drive #, cylinder # all starts from
zero and sector # starts from 1?
Thanks ...


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], rdos and 116 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group