Lec 7 File System & Disk Management
Lec 7 File System & Disk Management
Lec 7 File System & Disk Management
Disk Management
File system
What is File System?
• A file system or filesystem is used to control how data is stored and
retrieved.
• Without a file system, information placed in a storage medium would
be one large body of data with no way to tell where one piece of
information stops and the next begins.
• By separating the data into pieces and giving each piece a name, the
information is easily isolated and identified.
• Data is divided into further groups, each group of data is called a
"file".
What is File System?
• Any computer file is stored on a storage with given capacity.
• Actually, each storage is a linear space for reading or both reading and
writing digital information.
• Each byte of information on the storage has its own offset from the
storage start (address) and is referenced by this address.
• A storage can be presented as a grid with a set of numbered cells (each
cell is a single byte). Any file that is saved to the storage gets these
cells.
Sector
• Computer storages use a pair of sector and in-sector offset to
reference any byte of information on the storage. A sector is a group
of bytes (usually 512 bytes), a minimum addressable unit of the
physical storage.
• Example, byte 1040 on a hard disk will be referenced as a
sector #3 and offset in sector 16 bytes ([sector]+[sector]+[16 bytes]).
• This scheme is applied to optimize storage addressing and to use a
smaller number to reference any portion of information on the storage.
File system… Definition
• A file system is a structured data representation and a set
of metadata describing the stored data. A file system serves for the
purposes of the whole storage and it is also a part of an isolated
storage segment – a disk partition.
• A file system operates blocks, not sectors. File system blocks are
groups of sectors that optimize storage addressing. Modern file
systems generally use block sizes from 1 to 128 sectors (512-65536
bytes).
• Files are usually stored at the start of a block and take entire blocks.
Types of file system
• Microsoft Windows OS uses two major file systems:
1. FAT
2. NTFS