0% found this document useful (0 votes)
3 views6 pages

18 ManipPart

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

18 ManipPart

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Red Hat Certified

System
Administrator

Manipulating
Partitions
MBR partitions
MBR partitions have been around
for quite a while and are easy to
work with. They have their
limitations though – they can only
hold 4 primary partitions and can
only address up to about 2TB of disk
space.
Manipulating MBR Partitions
fdisk is the command used to
manipulate MBR partitions.
Quick reference:
Use t to change the partition type
82 is the Linux Swap partition type
83 is the Linux partition type
8e is the Linux LVM partition type
Use d to delete a partition.
Use n to create a partition.
Use p to look at the current partition
table.
Use w to write current changes to
disk and quit.
GPT partitions
GPT partitions exist to address the
limitations of MBR partitions. Newer
servers using UEFI can address GPT
partitions, as well as older servers
that use BIOS if they have additional
software.
GPT partitions can have a nearly
unlimited number of partitions
(compared to 4 when using MBR)
and the size is limited to what your
operating system can address (Red
Hat has certified GPT partitions
using XFS at 500TiB and a
theoretical maximum of 16EiB)
Manipulating GPT Partitions
gdisk is the command used to
manipulate GPT partitions.
Quick reference:
Use t to change the partition type
8200 is the Linux Swap partition type
8300 is the Linux partition type
8e00 is the Linux LVM partition type
Use d to delete a partition.
Use n to create a partition.
Use p to look at the current partition
table.
Use w to write current changes to
disk and quit.
Making the new partition
useable
Format the disk
mkfs.xfs /dev/device

Create the mountpoint


mkdir /mnt/mountpoint

Mount the disk


mount /dev/device \
/mnt/mountpoint

If needed, enable it to mount at


boot time
Edit /etc/fstab and
configure the mount using the UUID

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy