Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013.

Slides:



Advertisements
Similar presentations
Storage Management Lecture 7.
Advertisements

Chapter 12: File System Implementation
Volume Analysis. What is a volume?  Carrier defines a volume: “… a collection of addressable sectors that an Operating System (OS) or application can.
Chapter 4 : File Systems What is a file system?
BSD Partitions COEN 152/252 Computer Forensics. BSD Partitions Some BSD systems use IA32 hardware  Designed to co-exists with MS partitions.  Use DOS.
Disk Fundamentals. More than one platter (round cylinders)
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Grant Cohoe IMPACT OF DISK ALIGNMENT IN VIRTUALIZED ENVIRONMENTS.
File Systems Examples.
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.
Wince File systems. File system on embedded File system choice on embedded is important –File system size can be an issue –Different media are used –
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Chapter 8: Adding a Disk — Unix Hard Disk Basics Installation and Configuration Barry Kane CMSC-691X.
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
Storage Devices Chapters 9 & 10 Ch 9 and 101. Magnetic Storage Device Uses magnetism to store data Electricity flowing through a conductor creates a magnetic.
Partitioning the SD card ● First of all remember that check the drive which you are formatting otherwise you will loose all your data, “SDA” is reserved.
FDISK Partitioning Hard Disks. History We bought our new hard disk drive –Right size for BIOS and OS –Right connections (PATA/SATA) We installed our new.
Computer Forensics DOS Partitioning. Partitioning Practices  We separate partition practices into those used by Personal Computers:  DOS  Apple Servers.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 8 Understanding and Installing Hard Drives.
Linux+ Guide to Linux Certification, Third Edition
Tel : 同济大学软件学院 UEFI 与固件程序设计.
CompTIA Linux+ Certification
Chapter Sixteen Data Recovery and Fault Tolerance.
Unix File System Internal Structures By C. Shing ITEC Dept Radford University.
LIS508 lecture 5: storage devices Thomas Krichel
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
DUAL BOOTING  KNOWING LEGACY BIOS & UEFI FIRMWARE  KNOWING MBR & GPT PARTITION D.BHARANI AM.EN.U4CSE12013.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
Chapter 1 Managing Storage. Contents Understanding Partitioning Understanding LVM Understanding RAID Understanding Clustering and GFS Using Access Control.
The disk surface is divided into tracks. into tracks. 1.
Sys Admin Course Physical Storage and File Systems Fourie Joubert.
COEN 152/252 Computer Forensics Apple Partitions.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Lecture 27. Extended Read Service used for extended read is int 13h/42h On Entry AH=42H DL=drive # DS:SI= far address of Disk address packet On Exit If.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
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.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
GUID Partition Table Unified Extensible Firmware Interface (UEFI) GUID Partition Table (GPT)
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
Windows 10 vs. 7 – Disk Drives NORTH TEXAS PC USER GROUP WINDOWS INSIDE-OUT SIG GLYNN BROOKS FEBRUARY 20, 2016.
ITMT Windows 7 Configuration Chapter 4 – Working with Disks and Devices ITMT 1371 – Windows 7 Configuration 1.
Linux Filesystem Administration
Implementing Hard Drives
Day 28 File System.
Chapter 8 Unix & Linux.
Chapter 8 Adding a Disk.
Computer Forensics NTFS File System.
Linux 103 Training MOdule Basic System Mgmt.
Working with Disks Lesson 4.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Storage and Filesystem
Introduction to Computers
Partitioning a Hard Drive
CS-401 Computer Architecture Assembly Language Programming
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
File Systems Implementation
OPS235: Week 5 Lab4: Investigations 1 – 3
Computer Forensics NTFS File System.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Storage Management Lecture 7.
Presentation transcript:

Using Large Hard Drives in Linux Presented by Kevin McGregor Manitoba UNIX User Group March 12, 2013

 Because the Master Boot Record (MBR) data structures use 32-bit pointers for LBA (Logical Block Addressing) and sectors are assumed to be 512 bytes long, maximum disk size is ~2.2 TB (2 TiB) The Problem

 Mark whole drive as an LVM physical volume e.g. pvcreate /dev/sdb and make logical volumes out of that  Works fine! So what? I Won't Use Partitions

 But other GPT-unaware OSs may still see it (e.g. on a SAN)  But the disk looks empty (with standard tools) even when it isn't  But it's hard to tell what the disk contains  But it's hard to tell what the disk is for  But mistakes happen That Usually Works Fine…

 With MBR?  2 32 sector limit  Single Point Of Failure (SPOF) – one copy  Maximum four primary partitions  Extended/Logical partitions are lame and fragile (Single-linked list!)  Cylinders? Heads? Sectors per track? Irrelevant cruft now So Label Your Disk

 Up to 2 64 sectors (8 Giga-Terabytes [ZiB])  Two copies; start and end of disk  Variable number of partitions (default 128)  LBA 0 is a "Protective MBR"; a dummy partition table with one partition of type 0xEE covering whole disk (up to a maximum of 2 TiB) GUID Partition Table (GPT)

 LBA 1 is GPT header  Defines  Maximum number of partitions  Number and size of table entries  Disk UUID  Location of GPT, backup GPT  Checksums  GPT entries include  64-bit start LBA and end LBA (not length)  128-bit UUID for partition type  Name (up to 36 UTF-16LE "code units") GPT

 Linux/Windows data EBD0A0A2-B9E C0-68B6B72699C7  Linux swap 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F  Linux LVM E6D6D379-F507-44C2-A23C-238F2A3DF928  Linux RAID A19D880F-05FC-4D3B-A F0F84911E  Good thing we don't have to memorize them! GUID Partition Types

 Don't use fdisk; it's for MBR-only disks  fdisk will warn you if it detects a GPT-labeled disk  Use parted:  mklabel gpt# create the disklabel  p# list the GPT partitions  q# exit parted, writing changes Okay, how?

 Create a basic data partition  mkpart  e.g. mkpart home 1G 2G  Create a swap partition  mkpart linux-swap  e.g. mkpart swap linux-swap 2G 3G Basic parted

 Create a LVM partition  Make a normal data partition  Mark as LVM  parted set lvm on  e.g. parted /dev/sda set 2 lvm on  NOT parted /dev/sda2 lvm on  Marks /dev/sda2 with "Linux LVM" GUID Basic parted (continued)

 Create a software RAID partition  Make a normal data partition  Mark as RAID  parted /dev/sda set 3 raid on  Marks /dev/sda3 with "Linux RAID" GUID Basic parted (continued)

 All current Linux distros can use GPT-labeled secondary disks  To boot from GPT, your system must support the uEFI boot process  The "Protective MBR" no longer contains bootloader  First partition on boot disk is EFI System Partition (ESP) – a FAT filesystem, usually mounted on /boot/efi  See also efibootmgr Booting from GPT

 You can do this, technically… but it's a bad idea  Not generally supported  Prone to error Hybrid MBR/GPT

$ parted /dev/sdb GNU Parted 2.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Model: ATA WDC WD30EFRX-68A (scsi) Disk /dev/sdb: 3001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags kB 3001GB 3001GB Linux RAID raid (parted) align-check opt 1 1 aligned (parted) unit MiB (parted) p Model: ATA WDC WD30EFRX-68A (scsi) Disk /dev/sdb: MiB Sector size (logical/physical): 512B/4096B Partition Table: gpt Number Start End Size File system Name Flags MiB MiB MiB Linux RAID raid A Quick Sample

 This presentation was largely copied from ste_of_training/wednesday/Bonneville_Getting_Beyond_2_Tera bytes_Using_GPT_with_Storage_Devices.pdf ste_of_training/wednesday/Bonneville_Getting_Beyond_2_Tera bytes_Using_GPT_with_Storage_Devices.pdf  See also  And many other sources References

Questions