The platters rotate at a very high speed (5400 RPM to 10,000 RPM)
The disk head can read or write data only when the desired disk surface area is under the disk head.
Internal operation of a hard disk:
Disk sectors are usually 512 bytes in size.
If 1 disk block contains N sectors, then disk block k = sector number k*N. k*N+1, ..., k*N + (N-1) |
Disk blocks are usually 4K or 8 K bytes in size.
E.g., the sectors (4, 5, 6, 7) of this block is interspersed:
The reason to intersperse the sectors is:
|
+---------------------------+----+----+----+----+----+----+........+ | file name | b1 | b2 | .. | .. | .. | .. | ...... | +---------------------------+----+----+----+----+----+----+........+ |
The use of the information stored in a directory entry is: given a file name of a file, we can use the directory entry with the given file name to find the blocks that store the data in the file !
I will illustrate the use of a directory entry in the next section...
The content of the file are stored in the disk blocks of the file
This operation locates the directory entry of the file and obtain the disk blocks of the file.
The directory entry is stored in the Operating System area.
The Operating System manages the resourses of the computer.
Examples of Operating Systems: