Fall Lecture 2. Operating Systems: Configuration & Use CIS345. Disk Operating System (DOS) Mostafa Z. Ali.

Similar documents
Understanding the Boot Process and Command Line Chapter #3

Installing a Second Operating System

Password Changer for DOS User Guide

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

A Computer Glossary. For the New York Farm Viability Institute Computer Training Courses

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

STUDY GUIDE CHAPTER 4

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

Operating System Today s Operating Systems File Basics File Management Application Software

Chapter 14 MS-DOS Operating System

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems

IBM Rapid Restore PC powered by Xpoint - v2.02 (build 6015a)

Chapter 5: Fundamental Operating Systems

Chapter 5: Operating Systems Part 1

Chapter Contents. Operating System Activities. Operating System Basics. Operating System Activities. Operating System Activities 25/03/2014

USB 2.0 Flash Drive User Manual

Digital Photo Bank / Portable HDD Pan Ocean E350 User Manual

NTLDR is missing. Below are the full error messages that may be seen when the computer is booting.

Outline: Operating Systems

The PC Boot Process - Windows XP.

DOS Command Reference DOS Commands Found in DOS 6.22, Windows 95, and Windows 98

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

We reserve the right to make technical changes.

Installing, upgrading and troubleshooting your CLIO system under the Windows environment.

Chapter 8 Objectives. Chapter 8 Operating Systems and Utility Programs. Operating Systems. Operating Systems. Operating Systems.

How to install the RTL8029 PCI Adapter Boot Rom for Windows95

Infiniium Upgrade and Recovery Guide

MBR and EFI Disk Partition Systems

Installing Windows 98 in Windows Virtual PC 7 (Windows Virtual PC)

Chapter 4. System Software. What You Will Learn... Computers Are Your Future. System Software. What You Will Learn... Starting the Computer

ALTIRIS Deployment Solution 6.8 Preboot Automation Environment

Lab - Dual Boot - Vista & Windows XP

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

HP Z220, Z420, Z620, and Z820 Workstations Microsoft Windows XP Installation Reference Guide

Windows OS File Systems

Getting Started with VMware Fusion

Chapter 4. Operating Systems and File Management

Chapter 3 Software Installation

PKZIP 6.0. Command Line for Windows Getting Started Manual

DOS COMMAND EXAMPLES. TIME To set your computer's clock to 1:36 P.M., use either of the following commands:

Argon Client Management Services- Frequently Asked Questions (FAQ)

ADMINISTRATOR S GUIDE

Guide to SATA Hard Disks Installation and RAID Configuration

TotalShredder USB. User s Guide

Upon completion of this chapter, you will able to answer the following questions:

5COMPUTER SCIENCE For Class IX (marks 55)

User Manual. Copyright Rogev LTD

1.0. User s Guide & Manual USB 2.0 FLASH DRIVE

Using. Microsoft Virtual PC. Page 1

Guest Operating System. Installation Guide

Chapter 8 Operating Systems and Utility Programs

Chapter 3. Operating Systems

Chapter 6 The BIOS Setup Program

DOS Command Reference

Product Support Bulletin

Parallels Transporter Agent

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Pre-Installation: Personal Storage 3100 Installation Guide. Hardware and Operating System Requirements for Windows PC

EZ DUPE DVD/CD Duplicator

Click to view Web Link, click Chapter 8, Click Web Link from left navigation, then click BIOS below Chapter 8 p. 395 Fig. 8-4.

VMware Server 2.0 Essentials. Virtualization Deployment and Management

Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Q&A. DEMO Version

OEM GUIDE True Image OEM

UEFI on Dell BizClient Platforms

Table of Contents. Online backup Manager User s Guide

Operating System Installation Guidelines

Active Data Recovery Software. User Guide. Version Number 2.1


Operating System Software

Reborn Card NET. User s Manual

USB. 16MB~2GB JetFlash. User s Manual

UNDELETE 7.0 USER GUIDE

HP ProLiant ML110 Server Network Operating System Installation Guide

Microsoft Office Outlook 2013: Part 1

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

Installing a fresh version of Windows 95b

Installing the Operating System with Express Setup

Windows Server 2003 with SP1 Installation Guide. Version

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 16 Fixing Windows Problems

Installing Microsoft Windows 98 on Compaq Portable Products

Corsair Flash Voyager USB 2.0 Flash Drive UFD Utility User s Manual

BIOS and CMOS. Overview. The Function of BIOS. The Bus

R A D I O N I C S. READYKEY K6100 Readykey for Windows Software Installation Manual Ver. 5.0

Embedded Operating Systems in a Point of Sale Environment. White Paper

Using Virtual PC 7.0 for Mac with GalleryPro

LSN 10 Linux Overview

About Parallels Desktop 10 for Mac

Server & Client Optimization

Unit 4 Objectives. System Software. Component 4: Introduction to Information and Computer Science. Unit 4: Application and System Software Lecture 2

Intel Server Raid Controller. RAID Configuration Utility (RCU)

PaperClip32. Installation Guide. for Workgroup and Enterprise Editions. Document Revision 2.1 1

DataTraveler Vault - Privacy User Manual

USB FLASH DRIVE. User s Manual 1. INTRODUCTION FEATURES SPECIFICATIONS PACKAGE CONTENTS SYSTEM REQUIREMENTS...

Transcription:

Fall 2009 Lecture 2 Operating Systems: Configuration & Use CIS345 Disk Operating System (DOS) Mostafa Z. Ali mzali@just.edu.jo 1-1

Chapter 2 Disk Operating System (DOS) Finding DOS and Understanding its Strengths and Weaknesses Installing DOS How the FAT File System Works Working with the DOS Command Prompt Understanding the DOS Bootup Process Troubleshooting Common DOS Problems

Learning Objectives Measure the value, strengths, and weaknesses of DOS Install DOS Use the FAT file system Use DOS commands for file management and other tasks Describe the DOS bootup process and create startup disks Troubleshoot common DOS problems 2-3

Finding DOS and Understanding its Strengths and Weaknesses Versions of DOS CP/M was an important predecessor to DOS Many versions of DOS, several introduced by Microsoft (MS) MS created PC DOS for IBM Later licensed DOS as MS DOS to other manufacturers MS DOS 5.0 first version available as a separate product 2-4

Finding DOS and Understanding its Strengths and Weaknesses Versions of DOS (continued) PC DOS now works on Microsoft/Intel compatible computers Digital Research (of CP/M fame) introduced DR DOS in 1987 DR DOS 8.0 introduced in 2004 by DeviceLogics FreeDOS distributed without charge under GNU GPL license 2-5

Finding DOS and Understanding its Strengths and Weaknesses DOS Strengths DOS for backward compatibility with DOS apps DOS when you need a small OS DOS is more compact than Windows and hence useful for embedded systems or for portability DOS is popular as an operating system due to its ability to pack all startup files on a single floppy disk 2-6

Finding DOS and Understanding its Strengths and Weaknesses DOS Strengths (continued) The floppy disk is also known as the startup disk Startup disk accommodates additional files, such as drivers and utilities Startup disk can be used for booting up a computer and running special diagnostic programs 2-7

Finding DOS and Understanding its Strengths and Weaknesses DOS Weaknesses Processor mode limits Memory limits Multitasking limits Hard drive limits 2-8

Finding DOS and Understanding its Strengths and Weaknesses DOS Weaknesses (continued) Processor Mode Limits Only supports real mode of operation of Intel processors» Newer Intel processors start in the real mode, and newer OSs (Windows, Linux, UNIX) switch the processor from the real mode to the protected mode Memory Limits Intel processors in real mode use only 1 MB 640 KB of RAM (conventional memory) is workspace for the OS, applications and data 384 KB of addresses reserved for system BIOS and RAM and ROM on adapters 2-9

Finding DOS and Understanding its Strengths and Weaknesses DOS Weaknesses (continued) Multitasking Limits DOS is a single tasking OS Hard Drive Limits DOS only supports hard drives up to 7.8 GB DOS uses logical drives that are 2 GB or less and within the 7.8 GB total disk space limit A logical drive is a portion of the physical hard drive with a letter assigned to it 2-10

Installing DOS DOS Hardware Requirements The general DOS hardware requirements for MS DOS 6.22 and IBM PC DOS An IBM or compatible personal computer 6MB of free hard disk space for the DOS utilities 512KB of memory 2-11

Installing DOS Preparing for DOS Installation Assure that the computer is a complete system with all the necessary components Setup program partitions and formats the hard disk Partition: an area of a physical hard disk that contains one or more logical drives 2-12

Installing DOS Partitioning a Hard Disk in MS DOS Physical format is done at the factory Master Boot Record (MBR), the 1st sector on disk, contains the partition table Partitioning is the first step to prepare a hard disk Each partition needs a logical format within each logical drive Partitioning and formatting included in OS installation 2-13

Installing DOS Partitioning a Hard Disk in MS DOS (continued) FDISK the partitioning program of MS DOS Primary partition has only one logical drive 2GB is maximum primary partition size in MS DOS Extended partition contains one or more logical drives After partitioning, then format logical drives 2-14

Installing DOS Step by Step 2.01 Installing DOS on a Hard Disk Page 55 2-15

How the FAT File System Works FAT File System Components FAT Table File allocation table (FAT) DOS records disk space usage Cluster minimum space allocated to a file 2-16

How the FAT File System Works FAT File System Components (continued) FAT12, FAT16, and FAT32 FAT16 used on hard disks FAT32 available since Windows 95 OEM SR2 FAT12 used on floppy disks The number refers to the size of each entry in the FAT table. Length of entry limits the number of entries the FAT table can hold. 2-17

How the FAT File System Works FAT File System Components (continued) How Cluster Size Affects Partitions FAT16 file system limited to 65,525 clusters Maximum cluster size 32,768 bytes (32K) 65,525 x 32,768 = 2GB (maximum partition size supported by the FAT16 file system) 2-18

How the FAT File System Works FAT File System Components (continued) Root Directory and Other Directories The FAT and the root directory are the two primary components of the FAT file system DOS uses the FAT to record the location of a file on the disk A directory is a place where DOS stores information about files, including a reference to the FAT table Root directory is the top level directory 2-19

How the FAT File System Works FAT File System Components (continued) Root Directory and Other Directories (continued) Parent directory contains other directories Child directory (subdirectory) is within a parent Each directory entry contains the name of a file or directory, the time and date of its creation or modification, its size, attributes, and beginning cluster information 2-20

How the FAT File System Works Using a Directory and the FAT Table to find a File Directory is like a phone directory for DOS Finds file name and listing in the directory Reads the starting cluster number in directory Looks in the FAT table (like a map of city) for location on disk 2-21

How the FAT File System Works DOS file naming rules: A file name is up to eight characters, followed by a period, and an extension of up to three characters A file name and extension can include alphanumeric characters and a few special characters, but no spaces Use the wildcard characters asterisk (*) and question mark (?) to locate files and folders 2-22

How the FAT File System Works DOS File Types BAK, BAS, BAT, COM, DOS, EXE, SYS, and TXT are some common file extensions and file types recognized by DOS Executable Files COM, EXE, and BAT are the three types of files that can be executed by DOS 2-23

How the FAT File System Works Step by Step 2.02 Creating a Simple Batch File Page 63 2-24

How the FAT File System Works DOS File Attributes Determine the manner in which DOS handles files Read only Archive System Hidden Volume label Directory 2-25

How the FAT File System Works LABEL command Creates or changes a volume label (name) If a volume has a label, FORMAT requires the name before reformatting 2-26

How the FAT File System Works ATTRIB command Displays and modifies attributes Works on read only, archive, system, and hidden files Works in both MS DOS and Windows on FAT and NTFS 2-27

Working with the DOS Command Prompt Success at the DOS Prompt Success means correctly entering commands and getting desired results Important for working with DOS and other OSs 2-28

Working with the DOS Command Prompt Step by Step 2.03 Using the Online Help in DOS Page 68 2-29

Working with the DOS Command Prompt Success at the DOS Prompt (continued) What is the Correct Syntax? Syntax is a set of rules for correctly entering a specific command at the command line The HELP command can be used to find the syntax for a command COMMAND /? 2-30

Working with the DOS Command Prompt Success at the DOS Prompt (continued) How is a Command Interpreted? COMMAND.COM interprets the command entered at the prompt COMMAND.COM loads each command into the memory, and issues additional instructions to the command COMMAND.COM parses the command entry based on special delimiter characters 2-31

Working with the DOS Command Prompt How is a Program Found and Loaded? COMMAND.COM loads the command named at the beginning of the command line Must find the actual program code First checks its own list of internal commands Then looks for an external command in the current directory, and then in a list called the search path 2-32

Working with the DOS Command Prompt Learning to Manage Files and Directories File management in DOS is centered on the abilities and limits of the FAT file system It is essential to design a directory structure to save and organize files 2-33

Working with the DOS Command Prompt Learning to Manage Files and Directories (continued) Designing a Directory Structure for File Management DOS directory/folder structure is hierarchical Drive Directory File Name TREE command can be used to view the entire directory structure Store data in a separate directory from applications 2-34

Working with the DOS Command Prompt Learning to Manage Files and Directories (continued) Creating and Removing Directories MD (Make Directory) will create a directory CD or CHDIR (Change Directory) allows movement between directories RD (Remove Directory) deletes an empty directory 2-35

Working with the DOS Command Prompt Learning to Manage Files and Directories (continued) Use File Management Commands DOS commands are divided into internal commands and external commands Internal commands are loaded into the memory along with DOS 2-36

Working with the DOS Command Prompt Learning to Manage Files and Directories (continued) Use File management commands (continued): DIR (Directory), MD, CD, CLS (CLear Screen), COPY, REN (REName), RD, and TYPE are some of the internal commands XCOPY, DISKCOPY, and DELTREE are often used external commands 2-37

Working with the DOS Command Prompt DOS Command DIR DIR /? DIR /P CD.. CLS VER XCOPY COPY DELTREE Function Displays a list of files and folders. Lists the available syntax for the DIR command. List data one page at a time. Moves to the parent directory from the present directory. Clears the screen. Displays the MS-DOS version. Used to copy files and entire directories. Used to copy only files. Used to delete an entire directory and its contents. DOS commands and their functionality 2-38

Working with the DOS Command Prompt Step by Step 2.04 Managing Files and Directories Page 73 2-39

Understanding the DOS Boot Up Process and Startup Disks Why You Should Learn the DOS Bootup Process Personal computers are multi purpose devices. Understanding the normal startup process of the system helps troubleshoot problems that occur during boot up. 2-40

Understanding the DOS Boot Up DOS system files Process and Startup Disks IO.SYS handles hardware interaction and loading of drivers MSDOS.SYS is the kernel of DOS COMMAND.COM is the command interpreter 2-41

Understanding the DOS Boot Up Process and Startup Disks DOS system files (continued) DOS Configuration Files CONFIG.SYS adds device drivers and modifies DOS settings BUFFERS DEVICE DEVICEHIGH STACKS DOS FILES AUTOEXEC.BAT batch file loaded during bootup PATH PROMPTSET 2-42

Understanding the DOS Boot Up Process and Startup Disks The DOS Bootup Process A PC can be booted up by: Turning on the power switch of the PC (a cold boot) Using the Ctrl Alt Delete key combination to reboot the system (a warm boot) 2-43

Understanding the DOS Boot Up Process and Startup Disks The DOS Bootup Process (continued) The processor loads a special ROM based program, called Power On Self Test (POST) POST runs a series of small diagnostic tests on the hardware, and loads the bootstrap loader The bootstrap loader is a small program in the ROM BIOS 2-44

Understanding the DOS Boot Up Process and Startup Disks The DOS Bootup Process (continued) On a hard drive, the bootstrap loader looks into the MBR (master boot record) and reads the partition table for the primary active partition The bootstrap loader loads the boot sector from the logical drive, which, in turn, runs the operating system loading program 2-45

Understanding the DOS Boot Up Process and Startup Disks Creating a DOS Startup Floppy Disk Using FORMAT to create a startup disk Using SYS to create a startup disk Using Windows to create a startup disk 2-46

Understanding the DOS Boot Up Process and Startup Disks Using FORMAT to Create a Startup Disk The FORMAT command prepares the diskette and places a new root directory and FAT on the disk The /S switch option places the system files on the diskette 2-47

Understanding the DOS Boot Up Process and Startup Disks Step by Step 2.05 Create a Startup Floppy Disk Using FORMAT Page 83 2-48

Understanding the DOS Boot Up Process and Startup Disks Using SYS to Create a Startup Disk The SYS command places the DOS system files on a previously formatted floppy disk To put the DOS system files on a floppy disk enter sys a: 2-49

Understanding the DOS Boot Up Process and Startup Disks Using Windows to Create a Startup Disk In Windows 95 and 98 go to Control Panel Add/Remove Programs Startup Disk In Windows XP format a disk from within My Computer or Windows Explorer and select the option to create a MS DOS startup disk 2-50

Troubleshooting Common DOS Problems Non System Disk error message The OS loader program (boot sector) is unable to locate the IO.SYS, or MSDOS.SYS, or both Rectify by ensuring that the OS is booted from the disk that holds the OS 2-51

Troubleshooting Common DOS Problems Bad or Missing Command Interpreter error message Implies that the file COMMAND.COM is missing or that the version is different than IO.SYS and MSDOS.SYS Rectify by copying the COMMAND.COM file with the correct date and time from the floppy disk to the hard disk 2-52

Troubleshooting Common DOS Problems Bad Command or File Name error message Implies that the command name or the file name (or a directory name) used in the command line is incorrect Rectify by identifying typos and re entering the command correctly 2-53

Troubleshooting Common DOS Problems A request to enter the current date and time Means that DOS did not find an AUTOEXEC.BAT file If you previously had one, investigate why and how you don t now 2-54

Chapter Summary Finding DOS and Understanding Its Strengths and Weaknesses One reason DOS is still in limited use today is its small size, which makes it a choice for embedded systems Another reason is that its system files easily fit on a floppy disk, leaving room for other small programs Technicians can run diagnostic utilities from a DOS floppy disk 2-55

Chapter Summary Finding DOS and Understanding Its Strengths and Weaknesses Windows can run DOS in a virtual DOS machine Some applications run too slowly or not at all in a virtual machine, so they must be run on a computer running DOS DOS can only access real mode of the Intel processors DOS is a single tasking operating system DOS provides limited services for DOS 2-56

Chapter Summary Finding DOS and Understanding Its Strengths and Weaknesses DOS applications can only use conventional memory Microsoft no longer supports or sells MS DOS IBM sells PC DOS 2000 Digital Research sold DR DOS to Novell DR DOS is now sold through DeviceLogics Versions of DOS can be found for free on the Internet 2-57

Chapter Summary Installing DOS The MS DOS Setup program will partition and format a hard drive, if needed Hardware requirements for MS DOS are minimal: An IBM or compatible PC 6MB of free hard disk space 512KB of memory 2-58

Chapter Summary How the FAT File System Works DOS uses the FAT16 file system, and only uses conventional memory The FAT file system uses the 8.3 naming convention for files and directories It is best to use only alphanumeric characters A file s extension can indicate the type of file File attributes determine how DOS handles a file or directory File attributes are read only, archive, system, hidden, volume label, and directory 2-59

Chapter Summary Working with the DOS Command Prompt The ATTRIB command allows you to view and manipulate the read only, archive, system, and hidden attributes Internal command are part of COMMAND.COM and are always available and fast to access CLS, COPY, REN, DEL, MD, RD, CD, and TYPE are internal DOS commands External commands are in individual files, which must be where DOS can find them XCOPY, DELTREE, FORMAT, FDISK, and DISKCOPY are external commands 2-60

Chapter Summary Describe the DOS Bootup Process and Create Startup Disks It is important to understand the bootup process of an OS in order to troubleshoot failures that occur during bootup A hard boot of a PC occurs when you turn on the power switch 2-61

Chapter Summary Describe the DOS Bootup Process and Create Startup Disks A soft boot of a PC occurs when you press CTRL ALT DELETE Many computers have a Reset button, which resets a running computer without a powerdown and power up cycle 2-62

Chapter Summary Describe the DOS Bootup Process and Create Startup Disks The order of events during bootup of DOS is: Cold or warm boot POST Bootstrap loader looks on A: or C: drive and loads the boot record IO.SYS and MSDOS.SYS are loaded CONFIG.SYS (if it exists) is read and used by MSDOS.SYS COMMAND.COM is loaded 2-63

Chapter Summary Describe the DOS Bootup Process and Create Startup Disks DOS bootup order of events (continued) AUTOEXEC.BAT (if it exists) is read and used by COMMAND.COM The DOS prompt is displayed To create a DOS startup disk, you can: Use the DOS Setup program Use the SYS or FORMAT command Use the Startup Disk option in Windows 9x Format a floppy disk in Windows XP 2-64

Chapter Summary Troubleshoot Common DOS Problems A Non System Disk error message means that the OS loader cannot find IO.SYS or MSDOS.SYS Most likely cause is a data floppy disk left in drive A: Remove the floppy and reboot the computer A Bad or Missing Command Interpreter message means that COMMAND.COM is missing or is a different version than IO.SYS and MSDOS.SYS Boot from a DOS floppy disk of the correct version, and copy COMMAND.COM to the root of C: 2-65

Chapter Summary Troubleshoot Common DOS Problems A Bad Command or File Name error message means you need to check your spelling and reenter the command If you are required to enter the date and time when you boot up a computer there is probably no AUTOEXEC.BAT on the root of the boot disk. Create one, even if it is empty, and most PCs will use the internal clock for the time 2-66