RHCSA RHEL 8 - List, create, delete partitions on MBR and GPT disks
Вставка
- Опубліковано 18 вер 2024
- Buy CSG Merchandise:
tee.pub/lic/csg
Your support on Patreon is much appreciated: / 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: 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 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.
Glad this is helpful. Any parts that I specifically mention as informational don't worry about them in the exam.
Great video Bud!! thank you for your hard work
thank you for sharing good content .
Thanks for your vids, definitely help allot
Glad it helps 😀
hello im from indonesian and i love your video
awesome video! cleared up some confusion I had around all this. What is more common these days MBR or GPT? Seems like GPT would be since it's more modern, but I read MBR is more compatible.
I still see mostly MBR and people are more concerned with compatibility.
you're awesome dude!
thanks mate 👍
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!
It means that the partition must've had another use at some point. You can safely overwrite it if you know that partition is not being used.
@@compsecgadgets Thanks!
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, really appreciate it. I ended up using KoFi as find Patreon only really offers a subscription model. ko-fi.com/csg_yt is the page if you want to contribute 👍
@@compsecgadgets Thank you. I just used it and will again. I know it's a lot of work but it might be a good idea to update the discriptions on your videos with a link to this page. and thanks again for your videos.
Tried to support you through patron, but couldn't figure out how.
Tried Patreon and found it really hard to work with and they were looking for a subscription model which didn't fit. Thanks for your interest in supporting! I use ko-fi now: ko-fi.com/csg_yt/