摘要
从编程开发的角度描述了EXT2文件系统的概念和关键的数据结构,如块组、超级块、组描述符、块位图、i节点位图、i节点、数据块和root目录等。以对1.44MB磁盘进行格式化的程序为例,详细分析了基于Linux的EXT2文件系统格式化程序的设计方法和实现细节。列出的磁盘格式化程序已在基于Intel Pentium IV的Ubun-tu10.04 Linux计算机上调试通过。经测试,使用该程序格式化的磁盘可在支持EXT2的各操作系统上正常使用。
This paper describes the concepts and technology of EXT2 file system from a developer's view,such as superblock,group descriptors,block bitmap of the group,i node bitmap of the group,i nodes of the group,data blocks of the group and root directory etc.Taking a file system maker for 1.44MB floppy disk as an example,the design and implementation of a Linux based EXT2 file system maker is discussed.The floppy disk formatting program is successfully implemented on an Ubuntu10.04 Linux PC based on Intel Pentium IV CPU,the formatted floppy disks can be used on operating systems that support EXT2.
出处
《西华大学学报(自然科学版)》
CAS
2012年第2期22-25,34,共5页
Journal of Xihua University:Natural Science Edition
基金
上海市科委科研计划项目(08240510800)
上海海事大学校基金项目(20100096)