0% found this document useful (0 votes)
297 views13 pages

WPC Microproject

The document discusses various aspects of managing a hard disk, including: 1) Low-level formatting prepares the disk by dividing it into sectors and writing formatting data to sector headers and trailers. 2) Logical formatting creates file system structures like file allocation tables (FAT) that map free and allocated space. 3) Disk partitioning divides the disk into separate partitions that can each be treated as independent disks with their own file systems. 4) The boot block contains the bootstrap program loaded at startup to initialize the system and load the operating system.

Uploaded by

Kishor Bhitade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views13 pages

WPC Microproject

The document discusses various aspects of managing a hard disk, including: 1) Low-level formatting prepares the disk by dividing it into sectors and writing formatting data to sector headers and trailers. 2) Logical formatting creates file system structures like file allocation tables (FAT) that map free and allocated space. 3) Disk partitioning divides the disk into separate partitions that can each be treated as independent disks with their own file systems. 4) The boot block contains the bootstrap program loaded at startup to initialize the system and load the operating system.

Uploaded by

Kishor Bhitade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

MANAGE A HARD DISK

- Mr. Kishor Suresh Bhitade


DISK MANAGEMENT
Disk formatting :

◊Low level formatting or physical


formatting

◊ Dividing a disk into sectors that the


disk controller can read and write
-Boot block
-Bad block
DISK FORMATTING
- A new disk is blank state
- Fill each sector with a special
data stucture:
Header – data - trailer
DISK FORMATTING (CON….)
◊Header and trailer contains information used by disk
controller
- A sector number and an error-correcting coad(ECC)
◊ When the controller writes a sector of data
-ECC is updated with a value calculated from all the bytes in the data area

When the sector is read, ECC is recalculated and is compared


with the stored value verify the data is correctppt.com
DISK PARTITION
To use a disk to hold files, OS still needs to
record its own data structures on the disk
• Partition the disk into one or more groups
of cylinders
-Each partition can be treated as a separate
disk
DISK PARTITION (CON..)

• Logical formatting or "making a file system“


• -Store the initial file-system datastructure onto the disk...
• Maps of free and allocated space (FAT or innode)
• An initial empty directory NCHU System & Network Lab
RAW DISK

Use a disk partition as a large sequential array of logical blocks


-Without any file-system datastructures•
• This array is called raw disk
• The I/Os to the array is called raw I/O
• Example -swap space
RAW DISK (CON..)

• Raw I/O bypasses all the file-system services


• -Such as the buffer cache, file locking, pre-fetching, space allocation, file
names, and directories
BOOT BLOCK
• Bootstrap program initializes system. - Initialize CPU registers, device
controllers, main memory -Start OS
• In PC, two-step approaches
• -A tiny bootstrap program is stored inROM.
• Bring in a full bootstrap program from disk, a bootstrap loader
BOOT BLOCK (CON..)

Full bootstrap program.


• Stored in boot block: at a fixed location on the disk
Load the OS and start the OS
• This disk is called boot disk or system disktppt.cam
BAD BLOCKS

• IDE-MS-DOS format: performs logical formatting


• Scan the disk to find bad blocks
• Write a special value into the corresponding FAT entry for bad blocks
-MS-DOS chkdsk if blocks go bad during operations Search and lock
badblocks
BAD BLOCKS (CONT.)

• SCSI-Controller maintains a list of bad blocks on the disk


• -Low-level formatting will set aside spare sectors
• OS don't know -Sector sparing (or forwarding):
• Controller replaces each bad sector logically with one of the spare sectors

You might also like