creating extended partition
There are a number of possible solutions, but the one I recommend is as follows:
- Back up all your important data. Partition moving and resizing operations are inherently dangerous, so things occasionally go wrong when performing steps like the following. Having a backup ensures you won't lose irreplaceable data.
- Boot a Linux emergency disc, such as Parted Magic or the Ubuntu installer in its "try before installing" mode.
- Launch GParted.
- Using GParted, shrink /dev/sda1.
- Using GParted, delete both swap (/dev/sda5) and the extended partition that holds it (presumably /dev/sda4).
- Optionally, using GParted, expand /dev/sda3 into the space freed by the previous step. Alternatively, you can just leave blank space there.
- Create a new extended partition in the blank space left by step #4.
- Create a new swap partition inside the extended partition.
- Create new partition(s) for Linux Mint inside the extended partition. Alternatively, you could leave this to the Mint installer.
The result will be a legal, if somewhat odd, partition table. One drawback is that this procedure leaves your Windows installation the same size as or bigger than it is now. If you wanted to use some of the Windows space for Mint, you'd need to shrink and move the partition, which is the riskiest type of partitioning operation. It's also likely to leave Windows unbootable until repaired. Overall, it's best to avoid this if possible -- and given your stated goals, it seems to be possible to avoid it.
In theory, both Ubuntu and Windows should remain bootable after this procedure; however, it's conceivable that one or both OSes might be rendered unbootable. If so, you'll need to repair bootability with an emergency system. The details of how to do this depend on the details of the problem, so I won't address those details here; I just want you to be aware that there's a small but real risk of this happening, and that the problem can be overcome if you encounter it.
This is an unfortunate situation for you. Re-sizing sda1 will not allow you to expand the size of the logical partition, because the space must be contiguous, and there is another partition between sda1 and the extended area.
Both Linux installs can share one swap partition. When you are setting up the partitions, just tell the installer to use the already existing swap.
Have you considered a 2nd hard drive?
Related videos on Youtube
H S over 1 year
this is my current hard disk status(Running linux Mint LIVE CD)
- Ubuntu 12.04 on 206 GB partition at dev/sda1.
- dev/sda2 system reserved.
- Windows 7 on 90GB partition at dev/sda3
- and linux swap in extended partition.
what i want to do- I want to install Linux mint KDE on my system for that i want to create a new partition of 30GB(by shrinking the free space available at dev/sda1), i can't create that because i can create only 4 Primary partitions which are already there. so do i have to delete the Swap partition? and if i did how to force Mint KDE and Ubuntu 12.04 to use/share same swap space in new logical partition?
H S almost 10 yearsi can't buy new HDD. student life problems. thanks for your time :)
trognanders almost 10 yearsI understand those problems :) Shuffling partitions around on a full drive can be a headache! Luckily you already have Ubuntu installed, which in my very humble opinion is the better Linux distribution.
H S almost 10 yearscan you tell me how to share swap partition between two Linux Operating systems?
trognanders almost 10 yearsSwap partitions are mounted just like other partitions. Once the swap partition exists, you just use manual partitioning instead of guided/automatic... then you can say to use the other swap partition.
trognanders almost 10 yearsIf both distros are installed, swap partitions are mounted in /etc/fstab, so you could just tell either distro to mount the other's swap. Word of warning, this will not work well if you like to hibernate either distro to disk.
H S over 9 yearsi am not pro can you tell me how to edit fstab? any link ?
trognanders over 9 yearsThis seems like a pretty good guide, link