Welcome, Guest. Please login or register.

Author Topic: mountlist and total number of blocks  (Read 946 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2797
    • Show only replies by orange
mountlist and total number of blocks
« on: October 10, 2007, 09:46:35 PM »
Is it possible to calculate total number of blocks for given device (HDD) from mountlist?
Better sorry than worry.
 

Offline rkauer

  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 3263
    • Show only replies by rkauer
Re: mountlist and total number of blocks
« Reply #1 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).

Goodbye people.

I\'ll pop on from time to time, RL is acting up.
 

Offline Thomas

Re: mountlist and total number of blocks
« Reply #2 on: October 11, 2007, 06:44:35 AM »

The correct calculation using mountlist terminology is:

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

Bye,
Thomas