1) Are the units of LBA blocks? And if so, does (LBAe - LBAs) * 512 =
partition size?
LBA = Logical Block Address
For a typical hard drive, 1 LBA = 1 sector = 512 bytes.
Partion size = (LBAe - LBAs + 1) * 512
For example, a partition consisting of two sectors, LBA 10 and LBA 11,
has a size of (11 - 10 + 1) * 512.
2) Should the C and H values in the calculation be 64 and 121601
(because the numbering starts at 0?)
Each cylinder has 255 heads (aka tracks), and each track has 63
sectors.
The very first sector is LBA 0 or CHS 0/0/1. We haven't completed a
full cylinder, nor a full track, so C=0 and H=0.
LBAs are assigned sequentially. Start at the first sector of the first
track under the first head, and then go around the track. This gives
you 63 sectors. Switch to the first track under the second head and
count the next 63 sectors. Then repeat this process until you go
around the first track under the 255th head. Now you have completed
one full cylinder. Return to the first head and go around the second
track. Keep switching heads until you complete the second cylinder and
then begin on the third cylinder. Etc, etc ...
One of the commands I am dealing with is MOUNT and with the offset
switch.
Plenty of sites tell you to multiply the start (Cylinders) by 512 to
get the offset value. Therefore what unit is the offset value in?
Sorry, that makes no sense to me. Perhaps a Linux user could help you?
- Franc Zabkar