Amiga.org

Amiga computer related discussion => Amiga Hardware Issues and discussion => Topic started by: orange on October 10, 2007, 09:46:35 PM

Title: mountlist and total number of blocks
Post by: orange on October 10, 2007, 09:46:35 PM
Is it possible to calculate total number of blocks for given device (HDD) from mountlist?
Title: Re: mountlist and total number of blocks
Post by: rkauer on October 10, 2007, 11:57:15 PM
Yes.

 Just some calculation is needed:

 Multiply the number of sectors with number of cylinders with the number of bytes per sectors (usually 512).

Title: Re: mountlist and total number of blocks
Post by: Thomas on October 11, 2007, 06:44:35 AM

The correct calculation using mountlist terminology is:

(HighCyl - LowCyl + 1) * Surfaces * SectorsPerTrack * SectorSize

Bye,
Thomas