I have windows 8/Ubuntu 12.10 dual boot and i have 300 GB unallocated space in my HDD but whe i try to create a new partition it tells me that i have reached the maximum number of partitions(in both systems). My swap partition and unallocated space are contiguous, any ideas how can i solve this ?
If you use MBR then you can only have:
Thus you have three options:
In general when it comes to "PC" (MBR - master boot record) partitioning, only four root partition entries are allowed. This can be either 4 primary partitions or 3 primary partitions and one extended partition.
Within an extended partition you can create many more logical partitions.
If that's what you're running into, then you'll need to replace one of your existing Primary partitions with an Extended partition and then start (re)creating logical partitions inside the Extended.
More info here on Wikipedia.