So I have sda1, the Windows 7 boot partition, sda2, the Windows 7 sys partition, sda3, the Windows Recovery Environment and finally sda4, the Ubuntu partition. I have 31.74 gb of not allocated space, but when I try to create a new (logical) partition, it says that I can make only 4 primary partitions. I know, but all my primary partitions are important for me, and I can't swap off no one of these.

How can I create a new logical partition without removing any other partition?

2 Answers
2

I believe the short answer is you can't - it's not possible with an "MBR formatted" disk and there is no workaround for its four-partition limit.

Given that, the option of a second hard disk is one resolution.

Be aware that extended partitions, and logical partitions inside an extended partition, are not bootable; an operating system can only be installed on a primary partition and I believe all of the listed partitions have to be bootable ergo, be a primary partition types as opposed to extended/logical.

I've included some reading on MBR {disks} and GPT {disks} from Microsoft and Wikipedia simply because they're good-to-know things and not to suggest using a GPT-formatted disk as an option to your dilemma.

The answer to your question is, not surprisingly, you can't. This is not a Linux issue, it is the PC architecture.

What you can do, however, is to migrate temporarily the data from one of your partitions either to another one or a second hard drive, delete this partition, create an extended partition in its place and divide it into logical partitions.

The total data storage space of a PC hard disk can be divided into at most four primary partitions, or alternatively three primary partitions and an extended partition. These partitions are described by 16-byte entries that constitute the Partition Table, located in the master boot record.