This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:disk_partitioning [2011/12/01 13:56] gcooper |
computing:storage:disk_partitioning [2014/05/05 23:41] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Advanced Format (4K Sector) Drive Partitioning ====== | ====== Advanced Format (4K Sector) Drive Partitioning ====== | ||
- | This information is equally or more important for SSD's as it is for spinning hard drives. | + | :!: If in doubt or you just don't want to read this page, start your partition at **sector 2048** ('' |
+ | |||
+ | **Background**: | ||
+ | |||
+ | **Great info**: http:// | ||
+ | |||
+ | :!: This information is equally or more important for SSD's as it is for spinning hard drives. | ||
===== Partition Alignment and 4K Sector Disk Drives ===== | ===== Partition Alignment and 4K Sector Disk Drives ===== | ||
Line 11: | Line 17: | ||
There may also be a label on the drive advising that it is an Advanced Format drive. | There may also be a label on the drive advising that it is an Advanced Format drive. | ||
- | **A simple rule to go by for creating properly aligned partitions: | + | **A simple rule to go by for creating properly aligned partitions |
Verify that every partition begins on a **sector** which is a multiple of 8. If your partitioning tool is showing **bytes**, make sure the beginning is divisible by 4096, the new Advanced Format sector size. | Verify that every partition begins on a **sector** which is a multiple of 8. If your partitioning tool is showing **bytes**, make sure the beginning is divisible by 4096, the new Advanced Format sector size. | ||
Line 24: | Line 30: | ||
* Use '' | * Use '' | ||
* Start first partition at '' | * Start first partition at '' | ||
+ | * '' | ||
* Additional partitions will also be aligned | * Additional partitions will also be aligned | ||
* Using the graphical '' | * Using the graphical '' | ||
**'' | **'' | ||
+ | |||
+ | * Newer versions of '' | ||
+ | * Creates aligned partitions | ||
+ | * Same default as newer Windows | ||
===== Partitions over 2TB ===== | ===== Partitions over 2TB ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | http:// | ||
http:// | http:// | ||
http:// | http:// | ||
+ | |||
+ | **For RAID arrays**: http:// | ||
Install '' | Install '' | ||
Line 40: | Line 57: | ||
yum install parted | yum install parted | ||
</ | </ | ||
- | |||
==== Display Partitions ==== | ==== Display Partitions ==== | ||
Line 80: | Line 96: | ||
==== Partition the Drive ==== | ==== Partition the Drive ==== | ||
- | This partitions a 'data' | + | Common filesystems: |
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | '' | ||
< | < | ||
- | parted | + | mkpart PART-TYPE [FS-TYPE] START END |
+ | </ | ||
+ | |||
+ | :!: Many newer partition tools make the assumption that '' | ||
+ | |||
+ | This partitions a ' | ||
+ | |||
+ | < | ||
+ | parted | ||
(parted) mklabel gpt | (parted) mklabel gpt | ||
Line 89: | Line 119: | ||
(parted) u s | (parted) u s | ||
- | (parted) mkpart primary | + | (parted) mkpart primary |
(parted) p | (parted) p | ||
Line 96: | Line 126: | ||
</ | </ | ||
- | ==== Create the Filesystem ==== | + | ===== Create the Filesystem |
The XFS filesystem is a good choice for very large disks. | The XFS filesystem is a good choice for very large disks. | ||
- | This example creates an XFS filesystem labelled 'backup': | + | This example creates an XFS filesystem labelled 'Backup': |
< | < | ||
- | mkfs.xfs -L backup | + | mkfs.xfs -L Backup |
</ | </ | ||
- | ==== Enable XFS on CentOS ==== | + | ==== Enable XFS on CentOS |
< | < | ||
yum --enablerepo=centosplus install kmod-xfs xfsdump xfsprogs dmapi | yum --enablerepo=centosplus install kmod-xfs xfsdump xfsprogs dmapi | ||
+ | </ | ||
+ | |||
+ | ==== Enable XFS on CentOS 6 ==== | ||
+ | |||
+ | < | ||
+ | yum install xfsdump xfsprogs | ||
</ | </ |