chapter 6
DESCRIPTION
Chapter 6. Disk Operating System. Hardware. ROM BIOS. Operating System. Internal Commands External Commands. Memory I/O Device’s. Applications. Video Area. 640 K. Program Memory. Command Resident. MS-DOS. IO System. Interrupt Handler. 0000. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/1.jpg)
Chapter 6
Disk Operating System
![Page 2: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/2.jpg)
Hardware
ROM BIOS
Operating System
Applications
Memory
I/O Device’s
Internal Commands
External Commands
![Page 3: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/3.jpg)
Interrupt HandlerIO SystemMS-DOS
Command Resident
Program Memory
Video Area
0000
640 K
Figure 2 Memory Map of 8088 Processor
![Page 4: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/4.jpg)
Flat File System
![Page 5: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/5.jpg)
Flat Issues
![Page 6: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/6.jpg)
Hierarchical File System
![Page 7: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/7.jpg)
Payroll Inventory Payroll Inventory Payroll Inventory
Files Files Files Files Files Files
C:DOS (ROOT dir)
Chicago dir Atlanta dir Portland dir
![Page 8: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/8.jpg)
Path statement
• Absolute pathname• C:\US\sales\salesreps\smith
• Relative pathname• CD \smith
• “Program not found”
![Page 9: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/9.jpg)
8.3
File Specification A:\DIRNAME\FILENAME.EXT
Drive location
Directory location
File Name
Extension
Can be up to 8 eight characters
The following characters are not allowed:
. ” / \ [ ] < > + = ; ‘ Spacebar
![Page 10: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/10.jpg)
Commands
• Name Options Parameters
• Keyword Drive Options
• Keyword Source file File switches
• Do what? To who? How?
![Page 11: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/11.jpg)
Command Essentials
• You must enter words shown in capital letters y).• You must supply any items shown in italic letters• Items in square brackets [] are optional.• Items separated by a bar ( | ) means you can
enter one of the other ( Example OFF | ON ) • An Ellipsis (…) indicates you can repeat as
many time as you want.• You must include all punctuation, except square
brackets and vertical bars.
![Page 12: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/12.jpg)
Global Filename Characters
• ? = can be any character• * = any character can occupy that position
and all remaining positions• DIR A:INPUT.??? Or DIR A:INPUT.*• ******WARNING******* • DELETE C:*.*• ******WARNING*******
![Page 13: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/13.jpg)
Batch Commands
• ECHO,FOR,GOTO,IF,PAUSE,REM
• A batch file is a file containing 1 or more commands that DOS executes. ext = .bat
• ECHO ON• REM This is an example of a batch cmd.• Copy C:prog1.exe to C:prog2.exe• DIR• Autoexec.bat = start program at DOS start
![Page 14: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/14.jpg)
Redirection
• DIR >PRN Sends cmd to printer• DIR >catalog Sends cmd to filename• MYPROG <INPUT.TXT • DIR >> filename appends to file
![Page 15: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/15.jpg)
Piping & Filters
• Filters = SORT, FIND,MORE
• DIR|SORT>FILE
• SORT <MYFILE >RESULT
• TYPE MYFILE|MORE
![Page 16: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/16.jpg)
Help /?
• Command Summary C:>Help• Help command-name (C:>help copy)• Copy /?
![Page 17: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/17.jpg)
C:>copy /?
![Page 18: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/18.jpg)
![Page 19: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/19.jpg)
Physical Structure of a Diskette• Formatting
– concentric circles called tracks– pie-shaped wedges called sectors
• Data is written to the tracks as bits,0’s and 1’s– bits become magnetized spots on the disk– spacing prevents one spot from affecting other spots
• Read/write heads– above and below the diskette move in unison
• Diskette made up of Mylar – covered with either cobalt oxide or iron oxide to hold
magnetic charge– Formatting writes the division symbol ÷ F6 1111 0110 to
each track
![Page 20: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/20.jpg)
Logical Structure of a Diskette
• The BIOS manages the disk in sectors, physical terms– a sector holds 512 bytes of data
• The OS manages the disk in clusters, logical terms– A cluster is defined as the smallest unit of data that can
be read from or written to at one time– File allocation unit (FAT)– One cluster equals the amount of storage space per two
sectors, top and bottom of the diskette512 bytes X 2 = 1024 (one cluster, double-density 3.5”
diskette )80 X 9 = 720 (one side of diskette in sectors, the whole
diskette in terms of clusters)1024 X 720 = 737,280
![Page 21: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/21.jpg)
The Standard PC Diskette Configuration:
Diskette size Tracks per side
Number of sectors per tracks
Capacity
5.25" Single side SD8
40 8 40 X 8 X 512 bytes = 160 KB
5.25" Double side DD9
40 9 2 X 40 X 9 X 512 bytes = 360 KB
5.25" Double side High Density
DQ15
80 15 2 X 80 X 15 X 512 bytes = 1.2 MB
3.5" DD DQ9
80 9 2 X 80 X 9 X 512 bytes = 720 KB
3.5" HD DQ18
80 18 2 X 80 X 18 X 512 bytes = 1.44 MB
3.5" XD ( IBM only)
DG36
80 36 2 X 80 X 36 X 512 bytes = 2.88 MB
Diskette drives turn at 300 RPM. That results in an average search time (½ revolution) of 100 ms.
![Page 22: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/22.jpg)
IDE/ATA 3 ½ Hard Disk
![Page 23: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/23.jpg)
Tracks, Cylinders, and Sectors
![Page 24: Chapter 6](https://reader031.vdocument.in/reader031/viewer/2022032604/56812b2b550346895d8f3844/html5/thumbnails/24.jpg)
$64 Million Question
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
What does this have to do with security?
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$