Tech Brief on the parted partitioning tool

Latest response

Every few months I get an email from Yogesh Babar, a Red Hat senior technical support engineer, telling me that he has written a document, exploring some Linux technology, that he would like to get published on the Red Hat Customer portal. For me, it's a pleasure to work on his content because he takes the time to try everything out and really dig into how it works. I just need to add a bit of polish and put it out on the portal..

Over time, Yogesh has generated an impressive list of Tech briefs. He wrote a Tech Brief called Understanding How Kdump Works that covers how to use and configure the kdump service. In Understanding Linux Process States, Yogesh covers how processes work in Linux and how processes are started in different run states. His first Tech Brief to touch secure boot features in RHEL 7 was UEFI Secure Boot in Red Hat Enterprise Linux.

In October, 2015, Yogesh produced a Tech Brief that focused on GRUB 2, but also covering the original GRUB (GRUB Legacy) and UEFI issues relating to the new GRUB boot process. If you are interested in the topic, I suggest go to the article Booting with GRUB Legacy, GRUB 2, and UEFI and download the attached PDF Tech Brief. If you are new to GRUB 2 (which was added to Red Hat Enterprise Linux for RHEL 7), this will give you insights into how the new boot process works and how you can configure it for your own needs.

Yogesh's latest Tech Brief covers the parted partitioning tool. For old-school Linux administrators, who partition with fdisk or cfdisk, parted offers some significant advancements. Primarily, parted lets you create GPT partitions, which allow partitioning of much larger disks with the potential for many more partitions. To find the parted Tech Brief, visit the Partitioning disks with parted article and download the attached PDF.

Responses

Hi Chris,

Thanks for the useful and valuable information. One thing, can you please add the link to the "Partitioning disks with parted" article ?
I assume that you meant this Knowledgebase article -> https://access.redhat.com/articles/3209451 ... I hope that this is correct ... :)

Regards,
Christian

Thanks Christian. Yes, that's the right link. I've updated the post to properly point to it.

You're welcome Chris, thanks for updating ! :)

Regards,
Christian

Yes, good article about parted tool. Inclusion of 'resizepart' in parted is good move.

Hi Sadashiva,

I want to mention that working on disks is not recommended from within a running system, things may break badly. It's much better and safer to do it from a GParted Live media with unmounted drives when you want to resize them.

Cheers :)
Christian

That is a well understood/aware topic. A person who is going to work/resize a disk should be well aware of boundary/limits of the parted tool. However, not all environments allowed to use a live media, so in such situations admins would have to use disk partition tools such as parted, fdisk to get the task done.

Okay, that's a point Sadashiva, but it should be an absolute exception - right ?
I wrote the comment with "newer users" in mind, we see a lot of them lately. :)

Regards,
Christian

I agree Christian. You are absolutely right. It is for users who are well versed with such tools, also need to keep backup plan in place if something messed up in partition table. Always, better to make a backup of the existing partition table details before any activity at least, using the command sgdisk (available with gdisk package) which can be a life saver many a times (for msdos partition table, could use sfdisk for backup and restore).

Correct Sadashiva, this is what I recommend for system backups : Clonezilla
I'm using it nearly every day and it never let me down - absolutely reliable. :)

Regards,
Christian