標籤:
Hard Disk Technology
1. 機械硬碟內部構造幾個重要概念:Sector(扇區),Head(讀寫頭),Track(磁軌),Cylinder(柱面)。如果一個檔案比較大,磁碟的寫入順序如下,因此有了後面的CHS地址表示: 寫滿一個扇區->磁碟旋轉,寫同磁軌的下一個扇區->寫滿一個磁軌 ->電路切換,寫下一盤面(下一個讀寫頭)->寫滿一個柱面 ->動臂徑向移動,寫下一個柱面->寫完整個檔案這是根據旋轉等待(latency)時間<<尋道(seek)時間設計的,動臂的移動時間比轉軸旋轉要慢。(話說這個最初居然是在資料結構綜合設計課上瞭解的,講外排的時候)磁碟構造圖: 2. 機械硬碟的介面 用於PC的現常見SATA(Serial Advanced Technology Attachment),即串列ATA,它是一種介面規範。以ATA為規範的盤可以成為IDE disk. 與之相對的是常用於伺服器的SCSI(Small Computer Systems Interface)介面規範。為SATA的介面,兩組針是獨立的~ 3. 扇區地址的表示CHS被LBA取代,但引導記錄為了向下相容仍然記錄CHS的值,有時遇到只提供CHS的檔案系統或資料結構,需要手工用以下公式轉換 LBA = (((CYLINDER * heads_per_cylinder) + HEAD) * sectors_per_track) + SECTOR - 1(To overcome the 8.1GB limit associated with translation, the CHS addresses were abandoned, and Logical Block Addresses (LBA) became standard. LBA uses a single number, starting at 0, to address each sector and has been supported since the first formal ATA specification.)
【FSFA 讀書筆記】Ch 2 Computer Foundatinons(2)