linuxdisk-partitioning

How to resize partition size while the middle partition is the BIOS Boot?


I used Clonezilla to restore an old system to a larger hard disk. However, when I do all my job, I found my first partition doesn't use all the disk space.

I know the method to resize the partition size by using fdisk, however, I noticed that there is a BIOS boot partition between the first partition and free space. Now I don't know how to deal with it.

So I want to ask how to expand my first partition to use most of my free space in this disk.

The second partition type is BIOS Boot, Contents: Unknown

disk partition


Solution

  • I finally figure it out.

    I made a live boot Linux mint USB stick, then boot into the Linux Mint on USB stick. Start the GParted, then move the /dev/sda2 to the end of the hard drive. Than expand the /dev/sda1 partition to use the free space.

    Then I got this:

    move second partition

    But be sure to back up all your data if you want to do the same thing.