Logical block addressing
来源:互联网 发布:练习打字软件下载 编辑:程序博客网 时间:2024/05/22 13:55
quoted from
http://en.wikipedia.org/wiki/Logical_block_addressing
LBA is a particularly simple addressing scheme; blocks are located by an index, with the first block being LBA=0, the second LBA=1, and so on. The LBA scheme replaces earlier schemes which exposed the physical details of the storage device to the software of the operating system. Chief among these was the cylinder-head-sector (CHS) scheme, where blocks were addressed by means of a tuple which defined the cylinder, head, and sector at which they appeared on the hard disk. CHS didn't map well to devices other than hard disks (such as tapes and networked storage), and was generally not used for them. CHS was used in early MFM and RLL drives, and both it and its successor Extended Cylinder-Head-Sector (ECHS) were used in the first ATA drives.
SCSI introduced LBA as an abstraction. While the drive controller still addresses data blocks by their CHS address, this information is generally not used by the SCSI device driver, the OS, filesystem code, or any applications (such as databases) that access the "raw" disk. System calls requiring block-level I/O pass LBA definitions to the storage device driver; for simple cases (where one volume maps to one physical drive), this LBA is then passed directly to the drive controller.
CHS to LBA conversion
C-H-S tuples can be converted to LBA addresses using the following formula:
LBA to CHS mapping
LBA addresses can be mapped to C-H-S tuples using the following formulae: (start by calculating 'S', as for simplicity it is used for calculating 'C' and 'H') Where: Note: the total number of cylinders does not enter into any calculation. Another formula: Example:LBA / spt = Result1 + Remainder1 S = Remainder1 + 1Result1 / heads = Result2 + Remainder2 C = Result2 H = Remainder2
CHS = (600, 10, 84). Finding CHS for LBA = 1234 would be:1234 / 84 = 14 R 58 S = 58 + 1 = 5914 / 10 = 1 R 4 C = 1 H = 4CHS = (1, 4, 59)Test: ((1 * 10) + 4) * 84 + 59 - 1 = 14 * 84 + 58 = 1234
- Logical block addressing
- 关于SVN报错 svn: E170013 E125006: contains invalid filesystem format option 'addressing logical'
- Physical read + Logical read(DB block gets ,consistent gets )
- ERROR:NgdBuild:604 - logical block 'Inst_edksub/proc_sys_reset_0' with type 'proc
- error:unable to get logical block size for spfile
- Canonical Addressing
- WS-Addressing
- ws-addressing
- open addressing
- WS-Addressing
- Addressing pointers
- WS-Addressing Message Addressing Properties
- WS-Addressing Message Addressing Properties
- 有关错误:buffer i/o error on device fd0,logical block 0
- Buffer I/O error on device mmcblk0p3, logical block .../end_request: I/O error, dev mmcblk0, sector
- ORA-27046: file size is not a multiple of logical block size
- error:unable to get logical block size for spfile '+DATAC1/orcl/spfileorcl.ora'
- Physical and Logical Block Corruptions. All you wanted to know about it. (Doc ID 840978.1)
- Hibernate配置过程可能发生的问题及解决方法
- SQL Server 2008新特性——FILESTREAM
- 2nd下J2ME安装研究和启动方法
- GOF设计模式---23种
- mysql的用户与权限
- Logical block addressing
- 揭开华胜天成2009年“软”实力罗盘布局
- 教你多种方法使你的XP启动更快~
- JSTL标签和Struts标签的对应参照
- 重用自己创建的窗体
- 学车记 - 报名
- Cylinder-head-sector
- VMware手动安装RHEL5解决中文乱码问题
- webshpere 证书认证的一个bug