Bobcares

fdisk Extend Extended Partition | Guide

by | Apr 16, 2023

Learn how to extend Extended Partition with fdisk. Our Server Management Support team is here to help you with your questions and concerns.

How to Extend Extended Partition with fdisk

The fdisk program is a popular Linux command-line utility that helps us create and modify partition tables. It is a powerful tool that lets root or users with sudo privileges alter the partition table using the program.

How to Extend Extended Partition with fdisk

Furthermore, the fdisk utility recognizes Sun, SGI, and BSD partition tables as well as GUID Partition Table and Master Boot Record. In fact, many operating systems and disks use the GPT and MBR partition tables.

  1. First, we have to run the following command to identify the disk and partition we want to extend:

    sudo fdisk -l

    Then, we have to note down the partition number of the extended partition that we want to extend.

  2. Next, run the following command to launch fdisk and select the disk we want to modify:

    sudo fdisk /dev/sdx

    Remember to replace ‘sdx’ with the disk identifier, such as /dev/sda, /dev/sdb, etc.

  3. Now, we have to enter the “p” command to print the current partition table and verify the partition number of the extended partition we want to extend.
  4. Then, enter the “d” command to delete the logical partitions within the extended partition. Remember to take a backup before proceeding.
  5. At this point, we have to enter the “n” command to create a new logical partition within the extended partition. Here, we must specify the starting sector as the first available sector within the extended partition. Additionally, we have to set the ending sector as the last sector of the extended partition (this will be the same as the original value).
  6. Now, repeat step 5 for each logical partition you deleted in step 4, with the same starting sector but corresponding ending sectors depending on the size of each partition.
  7. After we have recreated all the logical partitions, we must enter the “w” command to write the changes to the disk and exit fdisk.
  8. Finally, run the command below to inform the kernel about the new partition table:

    sudo partprobe

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In summary, our Support Techs demonstrated how to extend Extended Partition with fdisk.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.