I am not sure that you will be able to use gparted for this because you are planning to merge 2 non-contiguous partitions.
As I see, you are not really using a lot of your hard disk space. Now that you are comfortable with using Linux, may I suggest that you switch your system to using the Logical Volume Manager (LVM) which can help you solve all these problems. The best would be to re-install your system by using LVM - am not sure if Mint provides that.
See: https://askubuntu.com/questions/3596/what-is-lvm-and-what-is-it-used-for for a discussion of LVM.
If you do not want to go the whole hog, you can just put your /home
on LVM.
The following is a very brief set of steps that you would need to follow. You can search for detailed instructions on the Internet.
- Backup your home directory - you can do that on a flash drive or an external HDD.
- As you would be touching your home directory and rebooting the computer multiple times, you may face problems logging in as yourself. To avoid these problems you can unlock the
root
account by setting a specific password. The way to do that is simply sudo passwd root
and set an easily memorizable, but tough password. Also, it may be good to use a rescuecd like that from http://www.system-rescue-cd.org and burn it on USB drive.
Reboot the computer. Using fdisk
change the type of partition of /dev/sda2
and /dev/sda7
to 8e
(Linux LVM) from 83
(linux).
fdisk /dev/sda
Welcome to fdisk (util-linux 2.28.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command
Command (m for help): t
Partition number (1-3, default 3): 2
Partition type (type L to list all types): 8e
Changed type of partition 'Linux LVM' to 'Linux LVM'.
Command (m for help): w
Do the same for partition 7
Now reboot again to get the kernel to read your partition table and login as root
. If using sysrescucd, it automatically logs in as root.
- Create a physical volume (PV) on
/dev/sda2
and /dev/sda7
using pvcreate
. Again please see the resources linked in this post etc.
- Create a Volume Group (VG) and then a Logical Volume (LV) called "home" which you can then install with any filesystem of your choice.
I prefer ext4
and now xfs
because they allow for online re-sizing of the file system. The advantage of online re-sizing is that I do not have to umount
the filesystem to extend it, and also while extending the logical volume, one can pass in a flag to resize the fielsystem.