Examine Partition Table

Resize Extended Partition

The NUMBER of the partition to resize from the above table is ‘4‘ – the extended partition

Verify the Resize Results

After running the resize command, you will want to verify your changes by printing the partition table and comapring with the original values of the table prior to the changes.

Adding a New Logical Partition

At this point, we will switch to fdisk. Again, this is by preference, the same actions could be completed with fdisk.

Print the partition table, making sure the sizes are as expected.

We will be adding a new logical partition. It will automatically be numbered by fdisk as /dev/sda9 for this example. The new logical partition will begin at the end of /dev/sda8 and take the remaining space of the exteneded partition. Running the command to create a new partition, verify and take the default values to size as explained.

At this point, you must write the changes to the partition table. You will get warinings and ominous looking messages. Don’t worry, those are normal.


Format the New Partition

When the system is back up, verify the changes writted to the partition table.

At this point, you are ready to format the partition for use. This example is using RHEL 5, so we will useext3 for the partition. However, any partition format can be used that is supported.