Still More on Hard Drives

Slides:



Advertisements
Similar presentations
Hard Disks Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk. Partitioning:
Advertisements

Chapter 12: File System Implementation
Chapter 4 : File Systems What is a file system?
Disk Fundamentals. More than one platter (round cylinders)
CSIT 301 (Blum)1 Hard Drives Continued. CSIT 301 (Blum)2 Power Connectors The larger is the so-called Molex connector. The smaller is called the mini.
File Systems CSIT 301 (Blum).
Section 5a Types of Storage Devices.
Managing Your Hard Disk and Operating System 23,26 March :30pm - 4:00pm.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Operating Systems File systems
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Disk Drives CSIT 301 (Blum).
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Implementing Hard Drives Chapter 10
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
CSIT 301 (Blum)1 Hard Drives Continued. CSIT 301 (Blum)2 Latency and Spindle Speed The time it must wait for the correct sector to swing by clearly depends.
LIS508 lecture 5: storage devices Thomas Krichel
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
1 Storing And Retrieving Information 2 Mass Storage and Files Programs and information (text, image, audio, video) are stored: –Magnetic Magnetic Tape.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
CSIT 301 (Blum)1 File Systems. FAT CSIT 301 (Blum)2.
1 Chapter Overview Floppy Disk Drives Hard Disk Drives.
Understanding and Troubleshooting Your PC. Chapter 5: Understanding, Installing, and Troubleshooting Disk Drives2 Chapter Objectives  In this chapter,
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Introduction to Hard Drives Chapter 6 - Key Terms Information Compiled by Diane Ferris, Michele Henderson & Vicki Kertz.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
CSIT 301 (Blum)1 Disk Drives. CSIT 301 (Blum)2 Hard disk accessing Seek time is the time required to position the head to the selected cylinder. –Typical.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
MCTS Guide to Microsoft Windows Vista Chapter 4 Managing Disks.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
The disk surface is divided into tracks. into tracks. 1.
Storage Devices.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 15 – The Hard Drive.
GENERAL INFORMATION Invented in 1950's on mainframe computers with 20 inches diameter with only few megabytes of data. Originally called 'Fixed Disc'
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 7 Floppy Drives.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
Lecture 18 Windows – NT File System (NTFS)
FAT File Allocation Table
Adding a Hard Drive. BIOS / UEFI The Unified Extensible Firmware Interface (UEFI) defines a software interface between an operating system and platform.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
DIT314 ~ Client Operating System & Administration CHAPTER 7 MANAGING DISKS AND FILE SYSTEM Prepared By : Suraya Alias.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
Day 28 File System.
Memory Management.
Disks and Formatting Ch 3.
Chapter 11: File System Implementation
Working with Disks Lesson 4.
Visit for more Learning Resources
I/O Resource Management: Software
Windows XP File Systems
Operating Systems (CS 340 D)
Introduction to Computers
Partitioning a Hard Drive
File Management.
Chapter 11: File System Implementation
File Managements.
Booting Up 15-Nov-18 boot.ppt.
Troubleshooting (CPU)
Computer Architecture
Modern PC operating systems
Lesson 9 Types of Storage Devices.
Yet Even More on Drives CSC 370 (Blum).
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Department of Computer Science
File Systems CSIT 301 (Blum).
Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID)
Presentation transcript:

Still More on Hard Drives CSC 370 (Blum)

Heat Issues Revisited Recall that moving air (convection) is the primary mechanism for cooling computer devices and that the spinning platters get the air moving inside hard drives. Thus typical hard drives (ATA/IDE and SCSI with moderate spindle speeds) can use passive cooling. High speed SCSI drives may need active cooling (i.e. fans). CSC 370 (Blum)

Drive cooler CSC 370 (Blum)

Bay cooler CSC 370 (Blum)

Retail vs. OEM Retail OEM (original equipment manufacturer) Hard Disk Drive, Installation Instructions, Drivers and/or Overlay Software, Mounting Hardware, Interface Cable, Warranty Card OEM (original equipment manufacturer) Hard Disk Drives and Jumpers (maybe) CSC 370 (Blum)

Geometry Review A platter is divided into concentric circles called tracks. The tracks are further divided into arcs called sectors. A sector holds 512 bytes of data. There may be additional bytes for servo information. There may be additional bytes for error detection and correction. In zoned bit recording (ZBR) outer tracks have more sectors than inner tracks. CSC 370 (Blum)

Data transfer rate is track dependent The spindle rotates at a specified angular speed (e.g. 7200 RPM). The data transfer rate depends on this speed. But since there are more sectors and thus more data at larger radii, the data transfer rate can be track dependent. CSC 370 (Blum)

Zone Dependent Data Transfer Rate CSC 370 (Blum)

Interleaving When storing a file larger than a sector, it is sometimes faster to store it on non-consecutive sectors In one-to-one interleaving, the sectors are placed consecutively around a track. In two-to-one interleaving, every other sector is written to … CSC 370 (Blum)

Interleaving (cont.) CSC 370 (Blum)

Interleaving (cont.) The purpose of interleaving is to make the disk drive more efficient. The disk drive can access only one sector at a time, and the disk is constantly spinning beneath the head. This means that by the time the drive is ready to access the next sector, the disk may have already spun beyond it. It depends how fast the controller is. Modern controllers are very fast and 1-to-1 interleaving is the norm. CSC 370 (Blum)

What’s the delay? Modern controllers are so fast there is effectively no delay between writing one sector and the next and thus interleaving is not necessary. But if writing requires switching to a different platter (same cylinder) there is a small delay. And if the writing requires placing data on more than one track/cylinder, there is a more substantial delay in repositioning the head so as to write to the next track. CSC 370 (Blum)

Cylinder and Head Skew The sector numbering is staggered to account for delay. There is staggering from platter to platter within the cylinder. This is known as head skew. There is staggering from track to track on a given platter. This is known as head skew. CSC 370 (Blum)

Cylinder and Head Skewing Staggering on a given platter (cylinder skew) and staggering from platter-to-platter (head skew). CSC 370 (Blum)

Three-Step Process to Use Had Disk To prepare a hard disk for use, there are three steps: Low-level (or physical) formatting Partitioning High-level (or logical) formatting CSC 370 (Blum)

Low-Level Formatting For hard drives, low-level formatting is done by the manufacturer. It establishes the tracks, sectors and so on. It writes the servo information onto the disk. Any information on a disk is lost if it is low-level formatted. There are pseudo-low-level formatting utilities that one can run which effectively write 0’s to all of the sectors and replace bad sectors with spares. This is distinct from true low-level formatting which establishes the sectors. CSC 370 (Blum)

Partitioning Partitioning separates the disk into logical pieces. The standard motivations for partitioning are: To have multiple operating systems on the same disk (e.g. a “dual boot system”) To improve disk efficiency, to minimize “slack” and so on. To separate system files from user files (from virtual memory) CSC 370 (Blum)

Drive Letters and Partitions Drive letters A and B are reserved for floppies. (It was standard for early PCs to have two floppy disk drives.) The computer begins assigning hard drive partitions drive letters starting with C. All primary drives are assigned letters first. Next letters are assigned to logical volumes in extended partitions. CSC 370 (Blum)

Partitions A drive must have at least one partition. A drive can have at most four partitions. These are known as the primary partitions. One can achieve the effect of having more than four partitions on one hard drive by designating one as an extended partition. The extended partition can then be divided into logical partitions or logical volumes. CSC 370 (Blum)

Primary versus Logical “Boot-ability”: A primary partition is bootable and can be set as the active partition. Typical schemes reserve primary partitions to act as potential active partitions. That is, if the space is to be used for non-operating-system files, the space will be set up as a logical volume instead of a primary partition. Drive Letter Assignment: All primary partitions are assigned drives before any logical partition is assigned a drive letter. Adding (not replacing) a hard drive can result in a reordering of one drives if one has logical partitions. CSC 370 (Blum)

Parts of a Primary Partition A primary partition will contain some combination of the following three things: System partition: the files need to start the operating system Boot partition: the operating system files General purpose partition: any other files (programs and data) CSC 370 (Blum)

Master Boot Record The first thing read from the hard drive when a computer starts is the Master Boot record (MBR). It is located at cylinder 0, head 0, and sector 1. The MBR consists of: Master Partition Table This table is limited in size and only has information about the primary partitions (not any logical volumes) and which primary partition is active Master Boot Code A small program to start the boot process CSC 370 (Blum)

Volume Boot Sector Each partition has a volume boot sector (or partition boot sector) which contains information about: The size of the partition Volume Boot Code: The Master Boot Code calls the Volume Boot Code of the active partition. The Volume Boot Code starts loading the operating system. Location of the File Allocation Table (FAT) CSC 370 (Blum)

Boot sector virus The master boot code and the volume boot code are the first software code executed after the BIOS (firmware) has started the computer when it is powered up. This very low-lying code is susceptible to viruses known as boot sector infectors. Why you should not have a floppy in the drive when you boot (unless you mean to boot from the floppy). CSC 370 (Blum)

High-level formatting After one partitions a disk, the next level of preparing it to be used to high-level (or logical) formatting. Logical formatting provides Volume partition sector System ID byte (identifies partition) Information for the filesystem Data on bad sectors CSC 370 (Blum)

Filesystem The filesystem indicates how the data is organized within the drive. The drive is organized into platters, tracks and sectors. But at the high level data is organized into files. The filesystem handles this correspondence between the physical location of data on the disk and its logical separation into files. CSC 370 (Blum)

File Allocation Table One of the main features of the filesystem is the file allocation table (FAT). The FAT is a table used to store the location of files. Sometimes a file cannot be stored entirely in consecutive locations. Then the operating system stores the information about all of the parts of the file and how they are arranged in the FAT. CSC 370 (Blum)

Fragmentation When the files are broken into pieces, it is known as fragmentation. There is a defragmentation utility that rearranges the data stored on a disk to minimize the amount of fragmentation. Because reading contiguous data is faster, defragmenting can help with performance. CSC 370 (Blum)

Go to My Computer, right click on a drive, choose Properties CSC 370 (Blum)

On the dialog box, choose the Tools tab CSC 370 (Blum)

Click on the Defragment Now button CSC 370 (Blum)

Disk Defragmenter: This could take awhile CSC 370 (Blum)

Too many sectors Tied up with the concept of FAT is the notion of clusters. The hard drive is organized into sectors but a large hard drive has a large number of sectors. E.g. 10 GB drive has approx. 20,000,000 sectors. CSC 370 (Blum)

Clusters The various sectors must be addressed. Operating systems have a limited size address which in turn limits the number of sectors. Early partitioning was to allow to hard drives that exceeded this limit. Another solution to this limitation was to address groups of sectors instead of individual sectors. A set of sectors (4 to 64) grouped together for addressing purposes is known as a cluster. CSC 370 (Blum)

FAT The file allocation table (FAT) stores information about clusters. The FAT describes how each cluster is being used, for example, which clusters are free and which are being used. Sometimes the operating system indicates that a cluster is being used when it is not. This is called a lost cluster. You can free up disk space by reassigning lost clusters with the ScanDisk utility. The FAT also indicates how clusters are chained together to form files. CSC 370 (Blum)

Disk scanning CSC 370 (Blum)

FAT The FAT is located right after the volume boot sector. The differences in filesystems (such as FAT, FAT32 and NTFS) lie in the size of the address and the management of the FAT. For example, there are usually two copies of the FAT (the second serving as a backup of the first). FAT and FAT32 differ in how they manage this backing up process. One can determine the filesystem of a drive by using the chkdsk command. CSC 370 (Blum)

chkdsk Command (while running) CSC 370 (Blum)

chkdsk Command (completed) CSC 370 (Blum)

Chkdsk on a floppy CSC 370 (Blum)

FAT Comparison CSC 370 (Blum)

Slack With limited addresses and drive capacities growing, cluster sizes were growing. The problem with large clusters is that one cannot use part of a cluster for one file and the rest for another. This with large clusters there was a lot of unused disk space (known as “slack”). CSC 370 (Blum)

Partitioning helped Breaking the drive down into smaller pieces helped since the address only had to identify clusters within a partition. This allowed for smaller clusters and less slack. The switch from FAT (FAT16) to FAT32 increased the size of the address used to identify clusters. Thus the cluster size could be reduced without introducing a lot of partitions. CSC 370 (Blum)

Partitioning can still help Although FAT 32 allows one to address many more clusters, doing so can have detrimental effects. The size of the file allocation table increases if there are more clusters. The file allocation is something you may read often and thus something you might want to cache. But if it is too big, it will not fit in the cache or take up too much room in cache. CSC 370 (Blum)

Cluster size automated The numbers of sectors in a cluster is set automatically within FAT32. It is based on the size of the partition. <256 MB  1 sector/cluster 256MB to 8 GB  8 sectors/cluster 8 GB to 16 GB  16 sectors/cluster 16 GB to 32 GB  32 sectors/cluster 32 GB to ….  64 sectors/cluster CSC 370 (Blum)

Directories and Folders Users think of files are stored in directories (or folders). So in addition to the actual location of the information associated with a file, the disk must also store the logical information about where the user believes the file to be stored – the directory structure. To each directory, there corresponds a file containing a table with information about what files are in the folder. CSC 370 (Blum)

Directory entry data Each directory table entry has data for Name of the file (and extension) Attribute byte (read-only, etc.) Last data/time the file was modified File size Pointer to the first cluster CSC 370 (Blum)

Attribute Byte CSC 370 (Blum)

File Properties CSC 370 (Blum)

File Properties Dialog Box CSC 370 (Blum)

Directory Tree The files are in directories (folders). The directories are in directories. Ultimately every file on a drive is contained in the root directory. The root directory plays a special role. The corresponding file is located right after the two copies of the FAT. CSC 370 (Blum)

Limited Size? FAT (a.k.a. FAT16) limited the size of the root directory. See table on next slide FAT32 lifted this restriction. Still the root directory is a poor place to locate files. CSC 370 (Blum)

FAT Limitations on number of entries in directory file CSC 370 (Blum)

File name size limitations Originally MSDOS filesystems used 11 bytes for the name (8 bytes) and extension (3 bytes) of the file in the directory table entry. Users were stuck with this naming convention. Microsoft introduced VFAT in Windows 95 to allow for longer file names. An alias table was set up, a user’s long file name was assigned to a short file name. CSC 370 (Blum)

References PC Hardware in a Nutshell (Thompson and Thompson) http://www.pcguide.com CSC 370 (Blum)