First off I see many answers which include gparted, I do not wish to use gparted. I wish to use a console based application such as fdisk.
Hello! I'll keep this short, my computers harddisks and partitions look like this:
sda 8G
-sda1 1G // this is swap
-sda2 3G // this is my current root
-sda3 4G // this is my current /home
sdb 8G // this is my new harddrive!
-sdb1 8G // this will be my new /home!
What I want to do is: I wish to replace sda3(4G) which is my current home with my new harddrive sdb1(8G). After that I wish to "merge" sda3 into sda2. I wish for the following:
sda 8G
-sda1 1G // this is swap
-sda2 7G // I want this to be my root
sdb 8G
-sdb1 8G // I want this to be my home
I have mounted the sdb to home now with no problem by editing the fstab uuid for home. I am however stuck with trying to extend sda2 with the 4G of sda3. I've been trying to look at tutorials and the closest I've gotten to was something to do with fdisk and resize2fs. However I'm trying to do this without having to delete the entire sda partition (the sda3 partition I can delete though).