SlideShare a Scribd company logo
1 of 15
Download to read offline
Disk
Management
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
• Low-level formatting, or physical
formatting
• Divide a disk into sectors that the
controller can read and write
–A new disk is a blank state –Fill each
sector with a special data structure:
header –data –trailer
Disk Formatting (con..)
• Header and Trailer contains information used by
disk controller
–A sector number and an error-correcting
code (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 correct
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 data
structure 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 data
structures
• 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 in
ROM.
• 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 disk
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 bad
blocks
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
Bad Blocks (Cont.)
• Invalidate optimization by OS’s disk
scheduling
–Sol: Each cylinder has a few spare
sectors
• Another technique: sector slipping
–Ex. 17 defective, spare follows sector
202 •Spare  202  201  … 18  17
Booting from a Disk in
Windows 2000

More Related Content

Similar to diskmanagement-170307012154.pdf

Similar to diskmanagement-170307012154.pdf (20)

Windows Forensics- Introduction and Analysis
Windows Forensics- Introduction and AnalysisWindows Forensics- Introduction and Analysis
Windows Forensics- Introduction and Analysis
 
Computer details
Computer detailsComputer details
Computer details
 
Disk
DiskDisk
Disk
 
Module5 secondary storage
Module5 secondary storageModule5 secondary storage
Module5 secondary storage
 
Laptop Basic Knowledge
Laptop Basic KnowledgeLaptop Basic Knowledge
Laptop Basic Knowledge
 
Computer Main Comppponents.pdf
Computer Main Comppponents.pdfComputer Main Comppponents.pdf
Computer Main Comppponents.pdf
 
File system performance
File system performanceFile system performance
File system performance
 
Magnetism data addressing
Magnetism data addressingMagnetism data addressing
Magnetism data addressing
 
Disk formatting
Disk formattingDisk formatting
Disk formatting
 
Introduction to filesystems and computer forensics
Introduction to filesystems and computer forensicsIntroduction to filesystems and computer forensics
Introduction to filesystems and computer forensics
 
BSP.pptx
BSP.pptxBSP.pptx
BSP.pptx
 
Os
OsOs
Os
 
Thiru
ThiruThiru
Thiru
 
Mass storage systemsos
Mass storage systemsosMass storage systemsos
Mass storage systemsos
 
9781111306366 ppt ch4
9781111306366 ppt ch49781111306366 ppt ch4
9781111306366 ppt ch4
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Ugif 10 2012 beauty ofifmxdiskstructs ugif
Ugif 10 2012 beauty ofifmxdiskstructs ugifUgif 10 2012 beauty ofifmxdiskstructs ugif
Ugif 10 2012 beauty ofifmxdiskstructs ugif
 
Asif Jamal disk (it)
Asif Jamal disk (it)Asif Jamal disk (it)
Asif Jamal disk (it)
 
OS Unit5.pptx
OS Unit5.pptxOS Unit5.pptx
OS Unit5.pptx
 
Os
OsOs
Os
 

More from BhanuCharan9

SOCIAL DISTANCE DETECTION.pptx
SOCIAL DISTANCE DETECTION.pptxSOCIAL DISTANCE DETECTION.pptx
SOCIAL DISTANCE DETECTION.pptxBhanuCharan9
 
productionanalysis-090913125852-phpapp01.pdf
productionanalysis-090913125852-phpapp01.pdfproductionanalysis-090913125852-phpapp01.pdf
productionanalysis-090913125852-phpapp01.pdfBhanuCharan9
 
marketstructurereview-121123101318-phpapp02.pdf
marketstructurereview-121123101318-phpapp02.pdfmarketstructurereview-121123101318-phpapp02.pdf
marketstructurereview-121123101318-phpapp02.pdfBhanuCharan9
 
unit1rulesofinference-170113152312.pdf
unit1rulesofinference-170113152312.pdfunit1rulesofinference-170113152312.pdf
unit1rulesofinference-170113152312.pdfBhanuCharan9
 
mathematicalinductionanddivisibilityrules-160711105713.pdf
mathematicalinductionanddivisibilityrules-160711105713.pdfmathematicalinductionanddivisibilityrules-160711105713.pdf
mathematicalinductionanddivisibilityrules-160711105713.pdfBhanuCharan9
 
Blockchain Banking 0th Review.pptx
Blockchain Banking 0th Review.pptxBlockchain Banking 0th Review.pptx
Blockchain Banking 0th Review.pptxBhanuCharan9
 
timesproet-180212053847.pdf
timesproet-180212053847.pdftimesproet-180212053847.pdf
timesproet-180212053847.pdfBhanuCharan9
 
slide5keys-140722233859-phpapp02.pdf
slide5keys-140722233859-phpapp02.pdfslide5keys-140722233859-phpapp02.pdf
slide5keys-140722233859-phpapp02.pdfBhanuCharan9
 
neerajppt-130323071407-phpapp02.pdf
neerajppt-130323071407-phpapp02.pdfneerajppt-130323071407-phpapp02.pdf
neerajppt-130323071407-phpapp02.pdfBhanuCharan9
 
criticalsectionproblem-160905215747.pdf
criticalsectionproblem-160905215747.pdfcriticalsectionproblem-160905215747.pdf
criticalsectionproblem-160905215747.pdfBhanuCharan9
 
analysisofsupply-160417044322.pdf
analysisofsupply-160417044322.pdfanalysisofsupply-160417044322.pdf
analysisofsupply-160417044322.pdfBhanuCharan9
 
relationsandfunctionslessonproper-160929053921.pdf
relationsandfunctionslessonproper-160929053921.pdfrelationsandfunctionslessonproper-160929053921.pdf
relationsandfunctionslessonproper-160929053921.pdfBhanuCharan9
 

More from BhanuCharan9 (16)

SOCIAL DISTANCE DETECTION.pptx
SOCIAL DISTANCE DETECTION.pptxSOCIAL DISTANCE DETECTION.pptx
SOCIAL DISTANCE DETECTION.pptx
 
BLOCKHUNTER.pptx
BLOCKHUNTER.pptxBLOCKHUNTER.pptx
BLOCKHUNTER.pptx
 
productionanalysis-090913125852-phpapp01.pdf
productionanalysis-090913125852-phpapp01.pdfproductionanalysis-090913125852-phpapp01.pdf
productionanalysis-090913125852-phpapp01.pdf
 
marketstructurereview-121123101318-phpapp02.pdf
marketstructurereview-121123101318-phpapp02.pdfmarketstructurereview-121123101318-phpapp02.pdf
marketstructurereview-121123101318-phpapp02.pdf
 
unit1rulesofinference-170113152312.pdf
unit1rulesofinference-170113152312.pdfunit1rulesofinference-170113152312.pdf
unit1rulesofinference-170113152312.pdf
 
mathematicalinductionanddivisibilityrules-160711105713.pdf
mathematicalinductionanddivisibilityrules-160711105713.pdfmathematicalinductionanddivisibilityrules-160711105713.pdf
mathematicalinductionanddivisibilityrules-160711105713.pdf
 
0th-review-1.pptx
0th-review-1.pptx0th-review-1.pptx
0th-review-1.pptx
 
Blockchain Banking 0th Review.pptx
Blockchain Banking 0th Review.pptxBlockchain Banking 0th Review.pptx
Blockchain Banking 0th Review.pptx
 
timesproet-180212053847.pdf
timesproet-180212053847.pdftimesproet-180212053847.pdf
timesproet-180212053847.pdf
 
slide5keys-140722233859-phpapp02.pdf
slide5keys-140722233859-phpapp02.pdfslide5keys-140722233859-phpapp02.pdf
slide5keys-140722233859-phpapp02.pdf
 
neerajppt-130323071407-phpapp02.pdf
neerajppt-130323071407-phpapp02.pdfneerajppt-130323071407-phpapp02.pdf
neerajppt-130323071407-phpapp02.pdf
 
criticalsectionproblem-160905215747.pdf
criticalsectionproblem-160905215747.pdfcriticalsectionproblem-160905215747.pdf
criticalsectionproblem-160905215747.pdf
 
analysisofsupply-160417044322.pdf
analysisofsupply-160417044322.pdfanalysisofsupply-160417044322.pdf
analysisofsupply-160417044322.pdf
 
relationsandfunctionslessonproper-160929053921.pdf
relationsandfunctionslessonproper-160929053921.pdfrelationsandfunctionslessonproper-160929053921.pdf
relationsandfunctionslessonproper-160929053921.pdf
 
coloring.pptx
coloring.pptxcoloring.pptx
coloring.pptx
 
coloring.ppt
coloring.pptcoloring.ppt
coloring.ppt
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

diskmanagement-170307012154.pdf

  • 2. 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
  • 3. Disk Formatting • Low-level formatting, or physical formatting • Divide a disk into sectors that the controller can read and write –A new disk is a blank state –Fill each sector with a special data structure: header –data –trailer
  • 4. Disk Formatting (con..) • Header and Trailer contains information used by disk controller –A sector number and an error-correcting code (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 correct
  • 5. 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
  • 6. Disk Partition (con..) • Logical formatting or “making a file system” –Store the initial file-system data structure onto the disk… • Maps of free and allocated space (FAT or innode) • An initial empty directory NCHU System & Network Lab
  • 7. Raw Disk • Use a disk partition as a large sequential array of logical blocks –Without any file-system data structures • This array is called raw disk –The I/Os to the array is called raw I/O Example –swap space
  • 8. 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
  • 9. 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 in ROM. • Bring in a full bootstrap program from disk, a bootstrap loader
  • 10. 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 disk
  • 11. 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 bad blocks
  • 12. 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
  • 13. Bad Blocks (Cont.) • Invalidate optimization by OS’s disk scheduling –Sol: Each cylinder has a few spare sectors • Another technique: sector slipping –Ex. 17 defective, spare follows sector 202 •Spare  202  201  … 18  17
  • 14.
  • 15. Booting from a Disk in Windows 2000