Computers, Security & Gadgets
Buy CSG Merchandise:
http://tee.pub/lic/csg
Your support on Patreon is much appreciated: https://www.patreon.com/computers_servers
This video is based on RHEL 8.
Video to cover the section ‘List, create, delete partitions on MBR and GPT disks’ for the RHCSA (Red Hat Certified System Administrator).
More information on the required learning: http://bit.ly/rhcsa8
Notes from the video:
List size / used and available space / % / mount point:
# df -h
Get UUID for partitions and drives:
# blkid
Get disks and paritions in a tree output:
# lsblk
Force system to check for partition changes:
# partprobe
fdisk – MBR(Master Boot Record) partition tool
4 primary partitions(2TB max)
Create partitions:
# fdisk /dev/sdb
# n – new partiton
# p or # e (primary or extended)
# w – write changes
Delete partitions:
# fdisk /dev/sdb
# d – delete partiton
# w – write changes
Change partition type:
# fdisk /dev/sdb
# t – change partition type
# L – list all partition types
# w – write changes
List partitions:
# fdisk -l
gdisk – GPT partition tool
UEFI device – backwards compatible – 128 primary partition – 8 zebibytes per partition
Create partitions:
# gdisk /dev/sdb
# n – new partition
# p or # e (primary or extended)
# w – write changes
Delete partitions:
# gdisk /dev/sdb
# d – delete partition
# w – write changes
If partitions are not showing up after creation or not disappearing after deletion use:
# partprobe
List partitions:
# gdisk -l /dev/sdb
#rhcsa #rhel #linux
thank you for sharing good content .
Thank you for sharing this info to your colleagues.
You specified that part of the video was informational although all is perfect for me.
Please specify on which part to emphasize for the exam.
Thanks for your vids, definitely help allot
you're awesome dude!
Hey man! thanks for all the vids. I went to your Patreon page and I coudn't figure out how I can contribute
Thanks a lot for the informations , but i have a problem. I can't understand what "Partition #1 contains a LVM2_member signature" means. When i try to create a new partition 1 of type 'Extended' and of size 5 GiB, then these message i wrote above its appears. If you can help me i would appreciate it. Thank you in adavance!