Disk Attachment: Host Attached Storage Network Attached Storage
Disk Attachment: Host Attached Storage Network Attached Storage
Disk Formatting
Boot Blocks
Bad Blocks
Disk Formatting
Bootstrap Program:
Initializes all aspects of the system, from CPU registers to device
controllers and the contents of main memory, and then starts the OS.
Bootstrap Program -> OS Kernel -> Memory -> Address -> Execution
Usually loaded in ROM. But this would result in difficulties in
changing the bootstrap code as it would require changing the ROM
hardware chips.
Bootstrap loader program in boot ROM which brings the full
bootstrap program from the disk. The code in boot ROM instructs
disk controller to bring the boot blocks into memory and then starts
executing the code.
Booting in Windows
Bad Blocks
Disks are prone to failure. This may occur frequently and some
sectors may be defective right from the manufacturing process.
Based on the type of disks, bad blocks are handled in an
appropriate manner:
In the case of simple disks, the bad blocks are handled in
manually. Disk is scanned to find bad blocks while disk is being
formatted. Flagged unusable if found.
If blocks become defective during normal operation, a special
program must be run manually to search and lock the bad blocks.
In the case of sophisticated disks, the controller maintains a list of
bad blocks right from the process of low level formatting at factory.
It also sets aside spare sectors not visible to the OS.
The controller can be told to replace each bad sector logically with
one of the spares. This is called Sector Sparing or Forwarding.
Most sectors are formatted to provide a few spare sectors in each
cylinder.
Another alternative is sector slipping.
Soft Errors: Spared or Slipped
Hard Errors: Data is lost
RAID STRUCTURE
Arrays of tapes
Broadcast of Data