CST8207 GNU/Linux O/S I Disks, Partitions, File Systems

Similar documents
These application notes are intended to be a guide to implement features or extend the features of the Elastix IP PBX system.

Replacing a Laptop Hard Disk On Linux. Khalid Baheyeldin KWLUG, September 2015

Installing Debian with SATA based RAID

TELE 301 Lecture 7: Linux/Unix file

Ubuntu bit + 64 bit Server Software RAID Recovery and Troubleshooting.

Installing a Second Operating System

Drobo How-To Guide. What You Will Need. Use a Drobo iscsi Array with a Linux Server

HTTP-FUSE PS3 Linux: an internet boot framework with kboot

Adaptec ASR-7805/ASR-7805Q/ASR-71605/ASR-71605Q/ASR-71605E/ASR-71685/ASR SAS/SATA RAID Controllers AFM-700 Flash Backup Unit

USB 2.0 Flash Drive User Manual

How To Set Up Software Raid In Linux (Amd64)

Setup software RAID1 array on running CentOS 6.3 using mdadm. (Multiple Device Administrator) 1. Gather information about current system.

Recovering Data from Windows Systems by Using Linux

USB Bare Metal Restore: Getting Started

WES 9.2 DRIVE CONFIGURATION WORKSHEET

SATA II 4 Port PCI RAID Card RC217 User Manual

Navigating the Rescue Mode for Linux

README.TXT

BackTrack Hard Drive Installation

Restoring a Windows 8.1 system from complete HDD failure - drivesnapshot

Acronis Disk Director 11 Advanced Server. Quick Start Guide

LVM and Raid. Scott Gilliland

Restoring a Suse Linux Enterprise Server 9 64 Bit on Dissimilar Hardware with CBMR for Linux 1.02

INSTALL ZENTYAL SERVER

EXPLORING LINUX KERNEL: THE EASY WAY!

PCIe AHCI-IP Demo Instruction Rev Jul-15

HP LeftHand SAN Solutions

Linux Software Raid. Aug Mark A. Davis

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

Creating a Cray System Management Workstation (SMW) Bootable Backup Drive

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

Bare Metal Backup And Restore

NI Real-Time Hypervisor for Windows

Converting Linux and Windows Physical and Virtual Machines to Oracle VM Virtual Machines. An Oracle Technical White Paper December 2008

Apache Hadoop Storage Provisioning Using VMware vsphere Big Data Extensions TECHNICAL WHITE PAPER

Recovering Data from Windows Systems by Using Linux

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

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

PARALLELS SERVER BARE METAL 5.0 README

RocketRAID 174x SATA Controller Ubuntu Linux Installation Guide

Digital Photo Bank / Portable HDD Pan Ocean E350 User Manual

Using iscsi with BackupAssist. User Guide

Capturing a Forensic Image. By Justin C. Klein Keane <jukeane@sas.upenn.edu> 12 February, 2013

- Updated Linux drivers with improved performance and 'linux dd' support for RHEL and CentOS

Chapter 8: Installing Linux The Complete Guide To Linux System Administration Modified by M. L. Malone, 11/05

Linux System Administration and Shell Scripting

Computer Forensic Tools. Stefan Hager

How to Restore a Linux Server Using Bare Metal Restore

Linux Recovery Utility for HP Integrity Servers

How you configure Iscsi target using starwind free Nas software & configure Iscsi initiator on Oracle Linux 6.4

Total Backup Recovery Server for Linux. User s Guide

ThinkServer RD550 and RD650 Operating System Installation Guide

A Practitioner's Guide to Linux as a Computer Forensic Platform

TestDisk Step By Step CGSecurity

MBR and EFI Disk Partition Systems

Amahi Instruction Manual

Linux Overview. The Senator Patrick Leahy Center for Digital Investigation. Champlain College. Written by: Josh Lowery

Recover Data Like a Forensics Expert Using an Ubuntu Live CD

Linux + Windows 95 mini HOWTO

o Support for 16KB/32KB stripe sizes on Adaptec Series 7/8 controllers (maxview/arcconf/bios)

Acronis Backup & Recovery 10 Server for Linux. Quick Start Guide

PCI Express SATA / esata 6Gb/s RAID Card User Manual

LVM2 data recovery. Milan Brož LinuxAlt 2009, Brno

RocketRAID 2640/2642 SAS Controller Ubuntu Linux Installation Guide

The Logical Volume Manager (LVM)

LSI Software RAID Configuration Utility

HARD DISK MANAGER 14 / FULL FEATURES LIST. HDM 14 Suite. Features. HDM 14 Pro. Drive Partitioning. Data Backup & Restore

Using VMware Workstation

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

LBNC and IBM Corporation Document: LBNC-Install.doc Date: Path: D:\Doc\EPFL\LNBC\LBNC-Install.doc Version: V1.0

Intel Rapid Storage Technology enterprise (Intel RSTe) for Linux OS

Cluster Configuration Manual Cluster configuration on Database Servers

AMD RAID Installation Guide

Acronis Backup & Recovery 10 Workstation. Installation Guide

Sabrent USB DSC5 USB 2.0 to SATA/IDE Hard Drive Adapter. 2.5 Notebook IDE Hard Drive

System deployment and bare metal recovery by Clonezilla

Installing Ubuntu LTS with full disk encryption

Two Parts. Filesystem Interface. Filesystem design. Interface the user sees. Implementing the interface

ThinkServer RD540 and RD640 Operating System Installation Guide

Do it Yourself System Administration

EaseUS Partition Master

How To Manage Your Volume On Linux (Evms) On A Windows Box (Amd64) On A Raspberry Powerbook (Amd32) On An Ubuntu Box (Aes) On Linux

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

Support for Storage Volumes Greater than 2TB Using Standard Operating System Functionality

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

Copyright by Parallels Holdings, Ltd. All rights reserved.

Acronis Backup & Recovery 10 Server for Linux. Command Line Reference

Resilient NAS by Design. Buffalo. A deployment guide to disaster recovery. Page 1

Windows 7 and USB 3.0 driver installation for 100 Series and Braswell platform

Operating System Software

Installing a USB external hard drive backup (Linux)

Oracle VM Server Recovery Guide. Version 8.2

ATA-133 IDE RAID Card. Version 1.1

How to partition your disk with the parted magic linux livecd

Transcription:

CST8207 GNU/Linux O/S I Disks, Partitions, File Systems

Topics DOS disk Partition Table (Master Boot Record - MBR) Identifying DOS Partitions Linux Partition naming The fdisk utility Mounting file systems CST8207 - Algonquin College 2

What is a disk partition? A partition is a section of a physical 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 DOS 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 in /dev 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

Linux 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) Or any other partition swap can go anywhere CST8207 - Algonquin College 9

Programs for Partitioning Linux fdisk program easy to use for DOS partitions similar to DOS fdisk, but more features available console/terminal-based does not need a GUI console-based parted can handle more modern partition tables (e.g. GPT) but is newer and a bit harder to use 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 (not /dev/sda1 )! Useful -l option: fdisk -l ; fdisk -l /dev/sda Useful options for non-legacy use (CentOS): -cu 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

Linux/Unix mounting /dev/sda2 / var/ tmp/ home/ file1 afile dir1/ file2 bfile file1 file 2 /dev/sda3 / wjiang/ idallen/ donellr/ file1 afile file2 file file

Linux/Unix mounting /dev/sda2 / var/ tmp/ home/ file1 afile dir1/ file2 bfile file1 file 2 /dev/sda3 / wjiang/ idallen/ donellr/ file1 afile file2 file file

Linux/Unix mounting /dev/sda2 / var/ tmp/ home/ file1 afile dir1/ file2 bfile file1 file 2 /dev/sda3 / wjiang/ idallen/ donellr/ file1 afile file2 file file

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 15

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 16

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