View Single Post
  #3  
Old November 5th 03, 07:21 PM
Arne Joris
external usenet poster
 
Posts: n/a
Default

Nuno Magalhaes wrote:
If you have a given sector, say 5000th sector (logical), how can you
get the physical location in: platters, tracks and sectors?


Most scsi devices support the Translate Address diagnostic page (0x40).

You can access this by using scu for example
(http://www.bit-net.com/~rmiller/kits/scu/scu.html) :

scu show diagnostic pages

Diagnostic Pages Supported by Device [1/1/0] (RZ26L):

Supported Diagnostics Page (Code = 0x00)
Translate Address Page (Code = 0x40)

scu translate address block lba 9999 to bfi summary
Logical Block 9999 - Cylinder 38, Head 4, Bfi 2254

scu translate address block lba 9999 to physical

Translate Address Diagnostic (Page 0x40):

Page Code: 0x40
Page Length: 10
Supplied Format: Logical Block
Translate Format: Physical Sector
Alternate Track of Medium: No
Alternate Sector of Medium: No
Reserved Area of Medium: No
Cylinder Number: 9
Head Number: 4
Sector Number: 47

Arne Joris