disk theory. disk theory n how information is stored on disk n how we can take advantage of that...
TRANSCRIPT
![Page 1: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/1.jpg)
DISK THEORY
![Page 2: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/2.jpg)
Disk Theory
How information is stored on disk How we can take advantage of that when
bad things happen
![Page 3: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/3.jpg)
Writing
Disk covered with iron oxide (rust) Write Head magnetizes/demagnetizes areas Similar to audio tape Information is stored digitally
![Page 4: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/4.jpg)
Physical Organization
Cylinders Sectors Tracks
![Page 5: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/5.jpg)
Capacity
High Density 3.5” floppy = 1.44 Mb
160 tracks/side x 9 sectors/track x 512 bytes/sector x 2 sides
= 1,474,560 bytes = 1.44 Mb
![Page 6: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/6.jpg)
Logical Organization
Boot Record File Allocation Table (FAT) Root Directory Data Area
![Page 7: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/7.jpg)
Boot Record
Always the first sector on side one Contains bootstrap and other systems
programs if it is a systems disk contains info about the disk
– bytes/sector, sectors/track, sectors/disk
![Page 8: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/8.jpg)
File Allocation Table
Indicates the status of each sector– free, in use, or damaged
FAT tells us where next segment or file can go
![Page 9: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/9.jpg)
Cluster
Inefficient to keep track of each sector So, FAT keeps track in groups called
Clusters Usually 2 or 4 sectors in a cluster Each cluster has a FAT entry
![Page 10: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/10.jpg)
Root Directory
Contains name of each file stored on disk Pointer to first cluster it is stored in RD is fixed in size and can point to only
112 files– Cheat by creating more directories
![Page 11: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/11.jpg)
Data Storage
New version covers the old version What if new version is larger (more
clusters)? File extends to next open cluster (see FAT) New cluster is linked to original clusters
– Called a Fragmented File
![Page 12: DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen](https://reader036.vdocument.in/reader036/viewer/2022083006/56649f305503460f94c4b663/html5/thumbnails/12.jpg)
File Recovery
File info is not erased, – Its name in Root Directory is erased– FAT changes to reflect an unused cluster
So, info exists until it is covered by new file Utility programs can retrieve this info!