I have the following
where /dev/sda2
- Windows7 and "unallocated
" is the partition I want to add to my current Linux installation at /dev/sda6
. But I can't do this for some reason. Even when I format unallocated partition and then I click Resize, I can only make it smaller. The same thing is true for /dev/sda6
.
In other words, /dev/sda1
and /dev/sda6
don't see each other.
So how can I merge /dev/sda1
into /dev/sda6
?
There is no much menu item "resize" on /dev/sda3, although it's not mounted:
a@a ~ $ sudo umount /dev/sda3
umount: /dev/sda3: not mounted
a@a ~ $ sudo umount /dev/sda6
umount: /dev/sda6: not mounted
a@a ~ $ sudo umount /dev/sda5
umount: /dev/sda5: not mounted
UPDATE2:
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda2 8:2 0 829.8G 0 part
├─sda3 8:3 0 1K 0 part
├─sda5 8:5 0 3.6G 0 part [SWAP]
└─sda6 8:6 0 98.2G 0 part
sdb 8:16 1 14.6G 0 disk
└─sdb1 8:17 1 14.5G 0 part /cdrom
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 1.1G 1 loop /rofs
Clicking on /dev/sda3 and choosing "resize"
If I understand correctly, you want to keep both Windows and Ubuntu, but give Ubuntu some more space on sda6? First of all BACK UP IMPORTANT DATA! Things can go wrong (although they shouldn't, you can never be too safe!) The issue here is that:
a - It appears that you are booted up onto that specific hard drive at the moment. You cannot modify partitions when you are currently using that drive. To remedy this, boot into a live USB (using your Ubuntu Install disk).
b - When you want to merge two partitions, you need to have them side by side. To do this you need to
1 select sda2, and move it to the left (using the partition menu>move). Note: There will be an error that pops up, warning you about failure to boot, this is normal!
2 Select sda3, click resize, and add the unallocated space to sda3 by dragging the slider on the left all the way to the left. It should look somewhat like this:
3 Select sda6, click resize, and add the unallocated space to sda6.
Afterwards, your diagram should look somewhat like this:
Now what you want to do is click the green checkbox to apply the changes. This will take a long time!
WARNING: after this is done, your computer may not boot up! To remedy this, you have to re-install grub (the screen that you see before you boot into windows or ubuntu). There are two ways to do this:
Either way, you need a Live CD/USB stick to boot off of. I found pretty detailed instructions here. The first method is easier (but you need to have a live CD of ubuntu 12.04 or later, and have internet access), but the second method (via terminal) works too. Just follow the instructions, and feel free to ask any questions!
Here to help,
Dev Newb
note: The pictures will vary slightly from yours (the partition sizes/labels etc), but the overall method should work. Also, I am using gparted on Ubuntu 12.04 LTS, but it should work the same on Ubuntu 13.10
To merge 718 GB unallocated space with the
/dev/sda6
, you have to follow the below steps.First boot from Ubuntu live disk and mark sure that all the partitions are unmounted.Gparted won't resize a mounted partition.
Now right-click on the
/dev/sda2
partition and click on resize.Move the dragger to the extreme left, so that the unallocated space will come just below to the/dev/sda2
partition.Right-click on the extended partition (
/dev/sda3
) and select Resize option.Now you can be able to add the unallocated space to your extended partition.Now the Unallocated space will comes inside your extended partition ie, just below to the
/dev/sda5
partition.Right-click on the
/dev/sda5
partition, select Resize option and move the dragger to extreme right.So that the unallocated space will come just above to the/dev/sda5
partition.Now you can be able to resize your
/dev/sda6
Ubuntu partition.You can not merge partition. Unallocated partition is without file system and must be formatted before usage. Your /dev/sda6 is logical partition on primary partition /dev/sda3 and can not be bigger then host partition /dev/sda3 without space for /dev/sda5.
Solution is to move partition /dev/sda2 on beginning of disk. After that to move and resize partition /dev/sda3 to max space. And at the end resize logical partition /dev/sda6.
I'm not sure, maybe work.
Best of all is to backup data and do fresh install of booth system.