Assembly Language for Intel-Based Computers, 5th Edition.ppt
《Assembly Language for Intel-Based Computers, 5th Edition.ppt》由会员分享,可在线阅读,更多相关《Assembly Language for Intel-Based Computers, 5th Edition.ppt(57页珍藏版)》请在麦多课文档分享上搜索。
1、Assembly Language for Intel-Based Computers, 5th Edition,Chapter 14: Disk Fundamentals,(c) Pearson Education, 2006-2007. All rights reserved. You may modify and copy this slide show for your personal use, or for use in the classroom, as long as this copyright statement, the authors name, and the tit
2、le are not changed.,Slide show prepared by the author Revision date: June 4, 2006,Kip R. Irvine,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,2,Chapter Overview,Disk Storage Systems File Systems Disk Directory Reading and Writing Disk Sectors (7305h) System-Level File Functio
3、ns,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,3,Disk Storage Systems,Tracks, Cylinders, and Sectors Disk Partitions (Volumes),Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,4,Tracks and Sectors,Physical disk geometry - a way of describing the disks s
4、tructure to make it readable by the system BIOS Track - concentric circle containing data Sector - part of a track,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,5,Cylinders and Seeking,Cylinder - all tracks readable from one head position Seek - move read/write heads between
5、tracks,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,6,Disk Formatting,Physical formatting aka low-level formatting Usually done at the factory. Must be done before logical formatting Defines the tracks, sectors, and cylinders Logical formatting Permits disk to be accessed us
6、ing sequentially numbered logical sectors Installs a file system (ex: NTFS) May install an operating system,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,7,Fragmentation,A fragmented file is one whose sectors are no longer located in contiguous areas of the disk. causes read/
7、write heads to skip slower file access possible read/write errors,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,8,Translation,Translation - conversion of physical disk geometry to a sequence of logical sector numbers Performed by a hard disk controller (firmware) Logical sect
8、or numbers are numbered sequentially, have no direct mapping to hardware,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,9,Disk Partitions,Logical units that divide a physical hard disk Also called volumes,Primary partition Up to four permitted Each may boot a different OS,Exte
9、nded partition Maximum of one permitted May be divided into multiple logical partitions, each with a different drive letter,Primary and Extended Up to three primary and one extended,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,10,Logical Partitions,Created from an extended p
10、artition No limit on the number Each has a separate drive letter Usually contain data Can be bootable (ex: Linux),Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,11,Disk Partition Table,Located in the disks Master Boot Record (MBR), following a block of executable code Four ent
11、ries, one for each possible partition Each entry contains the following fields: state (non-active, bootable) type of partition (BigDOS, Extended, . . .) beginning head, cylinder, & sector numbers ending head, cylinder, & sector numbers offset of partition from MBR number of sectors in the partition,
12、See also: Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,12,Cascading Partition Tables,Boot, BigDOS,NA, Extended,NA, BigDOS,NA, BigDOS,Drive D,Drive E,Primary partition,links to,Boot = bootable (system) NA = non active BigDOS = over 32 MB,Logical partitions (D, E),Drive C,Irvine, Kip
13、 R. Assembly Language for Intel-Based Computers 5/e, 2007.,13,Dual-Boot Example,System 98 and Win2000-A are bootable partitions One is called the system partition when active,DATA_1 and BACKUP are logical partitions Their data can be shared by both operating systems,Irvine, Kip R. Assembly Language
14、for Intel-Based Computers 5/e, 2007.,14,Master Boot Record (MBR),The MBR contains the following elements: Disk partititon table A program that jumps to the boot sector of the system partition,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,15,Whats Next,Disk Storage Systems Fil
15、e Systems Disk Directory Reading and Writing Disk Sectors (7305h) System-Level File Functions,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,16,File Systems,Directory, File, Cluster Relationships Clusters FAT12 FAT16 FAT32 NTFS Primary Disk Areas,Irvine, Kip R. Assembly Langua
16、ge for Intel-Based Computers 5/e, 2007.,17,File System,This is what it does for you: Keeps track of allocated and free space Maintains directories and filenames Tracks the sector location of each file and directory,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,18,Directory, F
17、ile, Cluster, Sector Relationships,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,19,Cluster (1 of 2),Smallest unit of space used by a file Consists of one or more adjacent sectors Size depends on both the type of file system in use and the disk partition size A file is a link
18、ed sequence of clusters. Example:,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,20,Cluster (2 of 2),A file always uses at least one cluster A high percentage of space may be wasted Example: 8,200-byte file requires three 4K clusters:,Irvine, Kip R. Assembly Language for Intel
19、-Based Computers 5/e, 2007.,21,FAT12,Designed for diskettes Each FAT entry is 12 bits Very little fault tolerance two copies of the FAT (cluster table) Optimal storage for small files 512-byte clusters,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,22,FAT16,MS-DOS format for h
20、ard disks 16-bit FAT entries Large cluster size when disk 1 GB inneficient for small files Max 2 GB size under MS-DOS Little or no recovery from read/write errors,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,23,FAT32,Supports long filenames Supported by all version of MS-Win
21、dows from Windows 95 onward (except Windows NT) 32-bit FAT entries 32 GB maximum volume size Improved recovery from read/write errors,Irvine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,24,NTFS,Supported by Windows NT, 2000, and XP Handles large volumes can span multiple hard drive
22、s Efficient cluster size (4K) on large volumes Unicode filenames Permissions on files & folders Share folders across network Built-in compression and encryption Track changes in a change journal Disk quotas for individuals or groups Robust error recovery Disk mirroring,Irvine, Kip R. Assembly Langua
23、ge for Intel-Based Computers 5/e, 2007.,25,Primary Disk Areas,A disk or volume is divided into predefined areas and assigned specific logical sectors. Example: 1.44 MB diskette Boot record (sector 0) File allocation table (sectors 1 18) Root directory (sectors 19 32) Data area (sectors 33 2,879),Irv
24、ine, Kip R. Assembly Language for Intel-Based Computers 5/e, 2007.,26,Your turn . . .,1. A 1.44 MB diskette has 512 bytes per cluster. Suppose a certain file begins in cluster number 5. Which logical disk sector contains the beginning of the file? (Hint: see page 503).,2. Suppose a certain hard driv
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ASSEMBLYLANGUAGEFORINTELBASEDCOMPUTERS THEDITIONPPT

链接地址:http://www.mydoc123.com/p-378629.html