2

I first noticed an issue when trying to install Linux Mint 14 as a third OS alongside Ubuntu 12.10 and Windows 7 - I was unable to create another partition to install Mint to.

Poking around, I realised that I had reached the limit of primary partitions: (from left to right of the table) 1) a ~100 MB primary partition that I meant to use for storing Grub files but never got down to, 2) a 25 GB extended partition, with the entire partition containing an ext4 Ubuntu partition, 3) a ~513 GB partition containing Windows 7, 4) some ~50 GB of unallocated space, and finally 5) a 4 GB swap partition.

I decided to wipe off the first ~100 MB partition, which I didn't need anyway. This brought me to a dilemma, however: as Ubuntu, during initial installation, had created an extended partition for itself, which meant that I could not create any more. Having an extended partition for Ubuntu is virtually useless as there is only enough space to contain Ubuntu itself, and the benefits of extended are worthless here. And if I go ahead and install Mint now, I would face the same issue of too many primary partitions in the future should I want to create any more.

What I'd really like to do is this: convert the current extended partition into a normal primary partition, and create a new extended partition in the unallocated space for all future partitions. Is this possible, and if so how? Thanks in advance!

Terence
  • 23

2 Answers2

2

My FixParts program can convert from primary to logical and vice-versa, albeit with some caveats concerning what's legal in terms of MBR partition layouts. If I understand your layout and goals, FixParts should do what you need. This is likely to be safer than using fdisk or parted, since there's less room for user error. I'd recommend also converting the swap partition to a logical while you're at it, since that will reduce your primary partition count to 3, giving your more options should you ever need another primary partition. If you convert your swap space to a logical partition, you'll then need to use GParted to resize the extended partition that FixParts will create around the swap partition. It's best to do all of this from an emergency disc.

Rod Smith
  • 44,284
  • 7
  • 63
  • 105
0

You can use parted. Put it into sector mode with unit s, and note the exact start and end sector of the logical partition, then delete it and the extended partition containing it, then create a new primary partition with the exact same start and end sectors as the previous logical partition. Then you can install mint and it will be able to create a new extended partition in the free space.

psusi
  • 37,551
  • Mind explaining the "unit S' part? I tried googling (a newbie here) but came up short. Also, wouldn't deleting the logical partition (and the extended that contains it) delete all my Ubuntu data? – Terence Dec 04 '12 at 05:28
  • @Terence, umm... you type in the command "unit s" in parted. Deleting the partition doesn't do anything but remove the partition from the partition table. As long as you create a new partition in exactly the same place, your data will still be there. – psusi Dec 04 '12 at 15:27