CST8207 GNU/Linux O/S I Disks and Partitions

Similar documents
CST Algonquin College 2

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

environment) and note down the last "End" sector ( as shown in the below example):

OPS235. Linux File Systems Partitioning Mounting File Systems

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

Disks, Filesystems 1

Partitioning and Formatting Guide

Windows Method Using Linux Live CD and Gparted

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

(C) Yuriy Vinnik 2010 Published under GNU GPL License v3 or later. FINEST user manual. V 1.0

Lab E2: bypassing authentication and resetting passwords

Ubuntu Installation Manually Partition Windows 7 Create System Reserved

MaRTE OS FAT16 Filesystem

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

An introduction to Logical Volume Management

Manually Mount Usb Flash Drive Linux Command Line Fedora

Manually Mount Usb Flash Drive Linux Command Line Redhat

Disk Imaging with Knoppix

RocketRAID 231x/230x SATA Controller Debian Linux Installation Guide

Partitioning and Formatting Reference Guide

8 ISSUE 02 SPECIAL EDITION. Installing opensuse Ready to get started? This article shows you how to install opensuse from the disc

How to Back-Up a fit-pc2 Using Only a USB Stick (and some creative partitioning)

Guide to manipulating the DevKit8000 image

RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide

Partitioning Disks with parted

RocketRAID 231x/230x SATA Controller Red Hat Enterprise/CentOS Linux Installation Guide

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit

Hard Drive Technologies

Implementing Software RAID

WD AV GP Large Capacity Hard Drives

Week 10 Project 3: An Introduction to File Systems. Classes COP4610 / CGS5765 Florida State University

Fedora Linux Installation Guide

RAID5 SATA II Host Adapter

Chapter 6. Linux File System

Manually Mount Usb Flash Drive Ubuntu Not Recognizing

Red Hat Enterprise Linux 8.0 Beta

Linux Manually Mount External Hard Drive Ntfs-3g Could Not

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

Instructions How To Use A Usb Flash Drive As Ram In Windows Xp >>>CLICK HERE<<<

SLES Linux Installation Guide

A+ Guide to Managing and Maintaining your PC, 6e. Chapter 8 Hard Drives

Fedora Linux Installation Guide

A+ Guide to Hardware, 4e. Chapter 7 Hard Drives

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2


Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

STORAGE MANAGEMENT USING OPENFILER II

Project 3: An Introduction to File Systems. COP4610 Florida State University

This is Lab Worksheet/Installation 7

Format Hard Drive After Install Ubuntu From Usb External

CS420: Operating Systems. Mass Storage Structure

File System. Preview. File Name. File Structure. File Types. File Structure. Three essential requirements for long term information storage

As this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command.

Windows 7 Manual Partition Hard Drive During Install Xp

Soma s Installation Notes

User Manual & Installation Guide

Getting Started with Linux

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console

RocketRAID 2680/2684 SAS Controller Red Hat Enterprise/CentOS Linux Installation Guide

Data rate - The data rate is the number of bytes per second that the drive can deliver to the CPU.

RocketRAID 2522 SATA Controller Ubuntu Linux Installation Guide

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Introduction to Red Hat Linux I: Easy Reference Index Page

File System Implementation. Sunu Wibirama

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

CST8207: GNU/Linux Operating Systems I Lab Ten Boot Process and GRUB. Boot Process and GRUB

This is Lab Worksheet 7 - not an Assignment

Manual Install Ubuntu Server From Usb No Cd

Ubuntu Manual Disk Partitioning Guide

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Installation Guide-x86, x86-64

Host Redundancy, and IPoIB and SRP Redundancies

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

Chapter. Chapter. Magnetic and Solid-State Storage Devices

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Preview. COSC350 System Software, Fall

MODULE 02. Installation

IBM 32 MB USB Memory Key (P/N 22P5296) Boot Sector Virus Detection and Cleaning Algorithm

Format Hard Drive After Install Ubuntu From Usb

Linux Manually Mount External Hard Drive Ntfs 3g Could Not

3 INSTALLING WINDOWS XP PROFESSIONAL

ETERNUS Disk storage systems Server Connection Guide (FCoE) for Linux

Build your own NAS with OpenMediaVault

USB 2.0 Multi-Plus Card Reader/Writer. User s Manual

Using iscsi with BackupAssist. User Guide

Volume Management in Linux with EVMS

Southern Maine Community College Information Technology Professor Howard Burpee. Installing Windows Server 2012

SANS Institute - Operations Essentials. Operating System Installation Guidelines. Windows XP Professional Installation. Creating Boot Disks

Asianux Server 3 Installation Guide

Magic Card User Manual

ELASTIX HIGH AVAILABILITY (HA) MODULE

INTERLAB Tel: Fax:

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

Hard Drive Technologies

ELE409 SPRING2018 LAB0

This is Lab Worksheet 13 - not an Assignment. Boot Process and GRUB

Recovering GRUB: Dual Boot Problems and Solutions

File Systems Forensics

Transcription:

CST8207 GNU/Linux O/S I Disks and Partitions

Topics Disk Partition Table Identifying Partitions Linux Partitions fdisk CST8207 - Algonquin College 2

Associated Readings Chapter 3: pages 71 82 You ve already read this it s about the partitioning that was done as you installed Fedora CST8207 - Algonquin College 3

What is a partition? A partition is a section of a disk. It can be all or part of the disk. It is usually formatted to contain a file system. The Master Boot Record of the disk (first sector) contains the Partition Table, which can hold exactly four partition entries We only cover the four-entry MSDOS Partition Table type Some programs can create more than four; rarely done Each partition table entry specifies its disk start location, end location, and whether it is bootable Partitions can be assigned system identifiers (or types), but the type may not match what is actually in the partition you can put anything into any type of partition Some of the identifiers stand for multiple types - confusing CST8207 - Algonquin College 4

Three Types of Partitions Each of the four DOS partition entries on a disk can be either a Primary partition or an Extended Partition Up to four Primary Partitions are possible on a disk Only one of the four partition entries can be designated as an Extended Partition that may contain any number of additional Logical Partitions inside it (as many as you like) An Extended Partition takes one of the four slots and reduces the number of possible Primary Partitions to three You can create many Logical Partitions inside an Extended Partition, up to the size limit of the Extended Partition Some operating systems only recognize a limited number of Logical Partitions check your O/S manual CST8207 - Algonquin College 5

Linux Disk Names sd? Naming disk drives sd? Primary master --- hda or sda Primary slave ----- hdb or sdb Secondary master - hdc or sdc Secondary slave -- hdd or sdd Other disks: sde, sdf, sdg, etc. sd used to mean only SCSI disks, but modern Linux systems treat all disks, even IDE, ATA, and SATA, as SCSI disks and name them starting with sd CST8207 - Algonquin College 6

Linux Partition Names Naming partitions Ø sd?1 sd?4 The four DOS partitions always use these four names Ø sd?5 sd?63 Logical Partitions inside an Extended Partition always start at number 5 - Maximum of 4 DOS primary/extended partition entries - Any number of Logical Partitions inside Extended CST8207 - Algonquin College 7

Device Names in /dev Each disk and each partition is represented in the Linux file system as a separate device special file, usually in the /dev directory: /dev/sda represents the entire first disk (sdb is the second) /dev/sda1 is the first of four DOS partitions (Primary or Extended) of the first disk (sda2 is the second primary/extended DOS partition) Logical Partitions inside an Extended Partition always start at 5 /dev/sda5 is always the first Logical Partition (sda6 is the second) Partitions using the four DOS Primary Partition entries never change numbers when you create or delete them. They always number 1 to 4. Logical Partitions are always numbered sequentially starting at number 5; removing a Logical Partition causes all the following logical partition numbers to go down by one, e.g. 6 becomes 5, 7 becomes 6, etc.! CST8207 - Algonquin College 8

Required Linux Partitions Linux can run inside only a single partition, the ROOT partition, but most Linux systems use at least two partitions: A ROOT partition (with the O/S and all your files) e.g. it might be /dev/sda1 A swap partition (to permit virtual memory) e.g. /dev/sda2 (if swap is a primary partition) or /dev/sda5 (if swap is a logical partition) CST8207 - Algonquin College 9

Programs for Partitioning Using the Microsoft fdisk program under DOS? very limited Linux support don't try Linux fdisk program same name, different program similar to DOS fdisk, but more features available console/terminal-based does not need a GUI console-based parted can handle more partition tables Other Linux graphical utilities may be used if you have a GUI (but many servers have no GUI!) e.g. Disk Druid, gparted Buy third-party stand-alone tools (e.g. Partition Magic, etc.) Make sure the tool understands what's in the partitions! Some tools only understand Microsoft/Apple partitions CST8207 - Algonquin College 10

Linux fdisk command fdisk is the universal command-line partition table manipulator for Linux: fdisk [options] device The device is a disk name ( /dev/sda ) not a partition name! Useful -l option: fdisk -l ; fdisk -l /dev/sda allows for viewing or modifying existing partition table and/or creating new partition(s) for a specified device can set the Partition Type (system ID) for most of the common file systems in use today Does not change anything until you write out the partition table remember to save your changes! CST8207 - Algonquin College 11

What is the maximum number of primary partitions allowed? 1. one 2. two 3. three 4. four 5. 63 6. as many as you like CST8207 - Algonquin College 12

What is the maximum number of extended partitions allowed? 1. one 2. two 3. three 4. four 5. 63 6. as many as you like CST8207 - Algonquin College 13

Which of these is the third partition of the second disk? 1. /dev/b3sd 2. /dev/a2sd 3. /dev/2asd 4. /dev/sd3b 5. /dev/sda2 6. /dev/sdb3 7. /dev/bs3d 8. /dev/as2d 9. /dev/3bsd 10. /dev/sd2a