Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

86
FORMATTING AND PARTITIONING HARD DRIVES, AND DOS Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt

Transcript of Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Page 1: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

FORMATTING AND PARTITIONING HARD

DRIVES, AND DOSBrent MurphyMatt Griffin

Edwin EdwardsChris Wyatt

Page 2: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

FORMATTING

Page 3: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

What is formatting?

When a hard drive is ready for use, it will go through a process known as formatting.

Page 4: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

2 Types of Formatting

Low-Level Formatting

High-Level Formatting

Page 5: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Low-level Formatting

Floppy disks Hard disks

Page 6: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Low-level floppy disk formatting

Disk drive hardware writes onto floppy

1 disk160 tracks (80 on each side)18 sectors on each track512 bytes on each sector

Page 7: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Low-level floppy disk formatting

Originally used MFM pattern on disk allows sectors of bytes to be written on it

RLL encoding is more commonly used. Embedded systems- low-level formatted

disks at the factory, not subject to user intervention

Page 8: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Transition away from LLF

Over time, hard drive became more complex

Manufacturers now handle virtually all low-level formatting of hard disks

End users should rarely ever perform low-level formatting of an IDE or ATA hard drive. (its often impossible outside of the factory)

Page 9: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk reinitialization

Identifying each sector that cannot be read or written to and then sparing out those sectors

Zero filing-writing a 0 byte to every addressable location on the disk

Page 10: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

“Tricks of the trade”

One popular method for performing only the "zero-fill" operation on a hard disk is by writing zero-bytes to the drive using the Unix dd utility (available under Linux as well) with the "/dev/zero" stream as the input file (if=) and the drive itself (either the whole disk, or a specific partition) as the output file (of=)

Page 11: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

High-level formatting

Process of setting up an empty file system on the disk

Install boot sector sometimes referred to as “quick format”

Page 12: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Complete scan

The entire disk can be scanned for any errors if the user would like

Requires several hours on larger disks

Page 13: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Reformat

When a high-level format is performed on a functioning disk to erase the contents of the hard drive

Sometimes judged easier to erase and start from scratch than fix a complex malfunction

“wipe and reload”, “nuke and pave”, “reimage”

Page 14: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Data Recovery

When data is “erased” during a high-level format, it is still readable until new data has written over it

Some file systems don’t write to the same locations, allowing data to stay on disk until disk space starts having to be recycled

Page 15: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Formatting a Hard drive by reinstalling XP

1. Back up data2. Insert Win XP disc and turn off pc3. Turn on PC and boot from CD4. Install Windows5. Install any missing drivers6. Update Windows

Page 16: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

HARD DRIVE PARTITIONING

Page 17: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Partition

A division of a hard drive that can hold volumes

Windows can support up to four partitions on one hard drive, each of which are 16-byte entries on the Master Boot Record

Page 18: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

What do the 16 bytes hold?

Beginning and ending location of the partition

Number of sectors in the partition

Whether or not the partition is bootable

Page 19: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Partition Table

A table at the beginning of the hard drive that contains information about each partition on the drive

This table is contained in the Master Boot Record

Page 20: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Master Boot Record

The first sector on a hard drive, which contains the partition table and a program the BIOS uses to boot an OS from the drive

Page 21: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

How do you create a partition?

In a process called high-level formatting or operating system formatting

Formatting performed by the Windows Format program, the Windows installation program, or the Disk Management utility

The process creates the boot record, file system, and root directory on the volume or logical drive and makes the volume or drive bootable

Page 22: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

How do you create a partition (cont.)

During this process, you specify the size of the partition and what file system it will use

There are two types of partitions you can create: Primary Extended

Page 23: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Primary Partition

Also called a volume or a simple volume

The volume is assigned a drive letter and is formatted with a file system (such as NTFS)

The active partition is always the primary partition

Can be up to three primary partitions

Page 24: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

File System

The overall structure an OS uses to name, store, and organize files on a drive

A cluster is the smallest unit of space on a disk in a file system for storing a file and is made up of one or more sectors

Can track how clusters are used for each file stored on the disk

Page 25: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Extended Partition

One of the four partitions on a drive can be an extended partition

Can be divided into one or more logical drives Each logical drive is assigned a drive letter (ex

- G:) and is formatted using its own file system

Page 26: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

When can a partition be created?

When the drive is first installed

When an OS is first installed The installation process partitions and formats

the drive, if necessary You can also use the Disk Management tool to

view and manage partitions after Windows is installed

After an existing partition becomes corrupted

Page 27: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Management Screen

Page 28: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Rules

Before a primary partition or volume can be used, it must be formatted using a file system

For the extended partition, each logical drive must be formatted with a file system

Page 29: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Choice for a file system (1 of 3)

FAT32 Named after the file allocation table

A table on the hard drive or floppy disk that tracks how much space on a disk is used to store files

Has storage limitations concerning hard drive size, volume size, and file size

Offered with Windows XP Service Pack 1 and newer

Page 30: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Choice for a file system (2 of 3)

NTFS Named after the New Technology file

system Designed to provide greater security and more

storage capacity than FAT32 Offered with basic Windows XP install and

newer Recommended for use when partitioning

Page 31: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Choice for a file system (3 of 3)

exFAT Stands for Extended FAT Uses a 64-bit file allocation table Does not:

Have the storage limitations found in FAT32 Offer the security features of NTFS Require as much overhead as NTFS

Normally used in lower-end systems Found in Windows XP if Service Pack 2 and 3

are installed, or new Windows OS

Page 32: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Steps to partition and format the new hard drive

1. Boot the system to the Windows desktop

2. Click Start, right-click Computer (My Computer) and select Manage

3. Right-click the new hard drive and select Initialize Disk

4. Select MBR and click OK. The drive will be initialized as a Basic Drive

Page 33: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Steps to partition and format the new hard drive (cont.)

5. To format, right-click the unallocated space on the drive and select New Simple Volume. The wizard will appear, which you will follow to:

Choose a volume size Assign a drive letter to the volume Assign a volume name Select the type of file system

Difference in OS used Vista will make the first three partitions primary, and

the fourth extended XP allows you to decide which partition will be the

extended partition

Page 34: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Partitioning a hard drive (Windows XP)

Page 35: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Re-partitioning and un-partitioning drives (Windows Vista and 7 only)

Page 36: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

Page 37: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

Stands for Disk Operating System Originally developed for IBM by Microsoft Windows 95, 98 and Millennium Edition

were all partially DOS based There are many versions of DOS such as:

FreeDOS, PC DOS, DR-DOS and MS-DOS.

Page 38: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

Most frequently MS-DOS is referred to as DOS

MS-DOS stands for MicroSoft Disk Operating System

Still in Operating systems today but listed as Command Prompt

Has a list of commands that are not normally used by the everyday user

Accessed in XP by typing CMD in the run dialog box or under the accessories tab on the program list

Page 39: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

In the early days of DOS no programs were capable of converting files to other program types or exchanging data since each program had it’s own way of reading and writing it’s binary data

ASCII was developed to solve this problem, ASCII stands for American Standard Code for Information Interchange.

Page 40: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

ASCII

Defines 256 eight bit characters.

Page 41: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS Games

Doom Duke Nukem Sim City 2000 Command and Conquer Warcraft I Where in the World is Carmen Sandiego? Sid Meier’s Civilization Transport Tycoon

Page 42: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Games

Then Now

Page 43: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Games

Then Now

Page 44: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Games

Then Now

Page 45: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Games

Then Now

Page 46: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Games

Page 47: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Operating System(DOS)

Microsoft developed (DOS), in 1981. DOS was designed for the IBM Personal Computer

DOS is a collection of programs and commands used to control the overall computer operation in a disk-based system

Three sections make up DOS: Boot files File management files Utility files

A simple operating system 16- bit operating system does not support multiple users or muiltitasking

Page 48: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Operating System(DOS)

DOS is useful as a troubleshooting aid when Windows will not boot. It allows the hard drive to be accessed without the GUI and provides the ability to run troubleshooting or diagnostic programs. DOS is a command line operating system, it is not

user-friendly DOS can only run one program at a time. DOS can only run small programs and has memory

limitations DOS is an essential tool for IT professionals and is

used extensively for troubleshooting

Page 49: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Overview of Basic DOS Commands

Basic commands are generally internal and more advanced commands are usually external.

The command line is the space immediately following the DOS prompt, C:\> where C:\ represents the hard disk drive root directory, and ">" is known as the prompt.

A switch is added to the command by adding a space, a forward-slash (/), and a single letter.

DOSKEY keeps a history of executed

commands so you can use arrow keys to retrieve them

Page 50: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS Commands

Page 51: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Dos Commands

Over 100 different commands

http://www.easydos.com/dosindex.html

Page 52: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.
Page 53: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS Boot Disk

A DOS boot disk is a great tool to use to troubleshoot when the computer is not booting properly.

A DOS boot disk is just a floppy disk with three necessary system files on it: COMMAND.COM IO.SYS MSDOS.SYS

Page 54: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Booting the System with a DOS Disk

The COMMAND.COM command interpreter accepts commands issued through the keyboard, or other input device, and carries them out according to the commands definition.

When DOS runs an application, COMMAND.COM finds the program, loads it into memory, and then gives it control of the system. When the program is shut down, it passes control back to the command interpreter.

Page 55: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Booting the System with a DOS Disk

The IO.SYS file moves the system’s basic I/O functions into memory and then implements the MS-DOS default control programs, referred to as device drivers, for various hardware components.

These include the following: The boot disk drive The console display and keyboard The system’s time-of-day clock The parallel and serial communications port

Page 56: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Booting the System with a DOS Disk

The MSDOS.SYS file provides default support features for software applications.

These features include the following: Memory management Character input and output Real-time clock access File and record management Execution of other programs

Page 57: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS Configuration Files

In the MS-DOS operating system, there are two special configuration files, called CONFIG.SYS and AUTOEXEC.BAT.

As the system moves through the steps in the boot procedure, the BIOS first checks in the root directory of the boot disk for the presence of the CONFIG.SYS file.

Next, it searches for the COMMAND.COM interpreter, and finally looks in the root directory again for the AUTOEXEC.BAT file.

Both the AUTOEXEC.BAT and CONFIG.SYS files can play significant roles in optimizing the system memory.

Page 58: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

QUESTIONS

Page 59: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

1. When can primary and extended partitions be created? A. When the hard drive is first installed B. When an OS is first installed C. After an existing partition becomes

corrupted D. All of the above are correct

Page 60: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

When can a partition be created?

When the drive is first installed

When an OS is first installed The installation process partitions and formats

the drive, if necessary You can also use the Disk Management tool to

view and manage partitions after Windows is installed

After an existing partition becomes corrupted

Page 61: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

2. Which file system is available anywhere from a basic Windows XP install on and is recommended when partitioning a hard drive? A. NTFS B. FAT C. FAT32 D. exFAT

Page 62: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Choice for a file system (2 of 3)

NTFS Named after the New Technology file

system Designed to provide greater security and more

storage capacity than FAT32 Offered with basic Windows XP install and

newer Recommended for use when partitioning

Page 63: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

3. A _________ is the overall structure an OS uses to name, store, and organize files on a drive. A. Volume B. Active Partition C. File System D. Cluster

Page 64: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

File System

The overall structure an OS uses to name, store, and organize files on a drive

A cluster is the smallest unit of space on a disk in a file system for storing a file and is made up of one or more sectors

Can track how clusters are used for each file stored on the disk

Page 65: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

4. How many bytes are each partition on the Master Boot Record? A. 8 B. 12 C. 16 D. 20

Page 66: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Partition

A division of a hard drive that can hold volumes

Windows can support up to four partitions on one hard drive, each of which are 16-byte entries on the Master Boot Record

Page 67: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

5. How many bytes are written to each sector on a hard disk? A. 64 bytes B. 128 bytes C. 256 bytes D. 512 bytes

Page 68: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Low-level floppy disk formatting

Disk drive hardware writes onto floppy

1 disk160 tracks (80 on each side)18 sectors on each track512 bytes on each sector

Page 69: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

6. Quick formatting occurs during low-level formatting? A. True B. False

Page 70: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

High-level formatting

Process of setting up an empty file system on the disk

Install boot sector sometimes referred to as “quick format”

Page 71: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

7. Once data has been deleted, it is impossible to retrieve it under any circumstances A. True B. False

Page 72: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Data Recovery

When data is “erased” during a high-level format, it is still readable until new data has written over it

Some file systems don’t write to the same locations, allowing data to stay on disk until disk space starts having to be recycled

Page 73: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

8. What section is not part of DOS? A. File management files B. Boot files C. Support files D. Utility files

Page 74: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Operating System(DOS)

Microsoft developed (DOS), in 1981. DOS was designed for the IBM Personal Computer

DOS is a collection of programs and commands used to control the overall computer operation in a disk-based system

Three sections make up DOS: Boot files File management files Utility files

A simple operating system 16- bit operating system does not support multiple users or muiltitasking

Page 75: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

9. DOS is a _______ bit operating system. A. 8 B. 32 C. 16 D. 64

Page 76: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Operating System(DOS)

Microsoft developed (DOS), in 1981. DOS was designed for the IBM Personal Computer

DOS is a collection of programs and commands used to control the overall computer operation in a disk-based system

Three sections make up DOS: Boot files File management files Utility files

A simple operating system 16- bit operating system does not support multiple users or muiltitasking

Page 77: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

10. DOS can run multiple programs at one time. A. True B. False

Page 78: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Disk Operating System(DOS)

DOS is useful as a troubleshooting aid when Windows will not boot. It allows the hard drive to be accessed without the GUI and provides the ability to run troubleshooting or diagnostic programs. DOS is a command line operating system, it is not

user-friendly DOS can only run one program at a time. DOS can only run small programs and has memory

limitations DOS is an essential tool for IT professionals and is

used extensively for troubleshooting

Page 79: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

11. What command do you type at the run dialog box to access the command-line interface in Windows XP? A. CMD B. CONAND C. MSDOS D. CP

Page 80: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

Most frequently MS-DOS is referred to as DOS

MS-DOS stands for MicroSoft Disk Operating System

Still in Operating systems today but listed as Command Prompt

Has a list of commands that are not normally used by the everyday user

Accessed in XP by typing CMD in the run dialog box or under the accessories tab on the program list

Page 81: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

12. The ASCII Standard defines how many 8-bit characters? A. 64 B. 256 C. 512 D. 64,000

Page 82: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

ASCII

Defines 256 eight bit characters

Page 83: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Questions

13. What does DOS stand for? A. Disk Organizing System B. Dual Operating Systems C. Disk Operating System D. Disk Operations Setup

Page 84: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

DOS

Stands for Disk Operating System Originally developed for IBM by Microsoft Windows 95, 98 and Millennium Edition

were all partially DOS based There are many versions of DOS such as:

FreeDOS, PC DOS, DR-DOS and MS-DOS.

Page 85: Brent Murphy Matt Griffin Edwin Edwards Chris Wyatt.

Resources

Andrews, Jean "CompTIA A+ 2009 In Depth". Boston: Cengage Learning, 2010

Docter, Quentin. CompTIA A+ complete study guide (exams 220-701/220-702). Indianapolis: Wiley Technology Pub., 2009. Print.

Michael Meyers: A+ Certification All-in-One Exam Guide, Seventh Edition  , Mc Graw Hill.  2010

http://www.wikipedia.org/ http://www.easydos.com/dosindex.html