[SOLVED] Merging partitions

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Roland
Level 4
Level 4
Posts: 226
Joined: Sun Oct 04, 2009 9:44 am
Location: the Netherlands

[SOLVED] Merging partitions

Post by Roland »

How can I add/merge /dev/sda6 to /dev/sda1? I do not want to keep the data of /dev/sda6, but I want to the data /dev/sda1.
Grub is on /dev/sda1.
See attachment. My disk is a SSD.
(sda1: Mint 13; I was curious and installed Ubuntu on sda6, dual boot, but I want to discard Ubuntu now.)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
wayne128

Re: Merging partitions

Post by wayne128 »

Roland wrote:How can I add/merge /dev/sda6 to /dev/sda1? I do not want to keep the data of /dev/sda6, but I want to the data /dev/sda1.
Grub is on /dev/sda1.
See attachment. My disk is a SSD.
(sda1: Mint 13; I was curious and installed Ubuntu on sda6, dual boot, but I want to discard Ubuntu now.)

Your sda1 is in Primary, sda6 is extended.
You do not want to keep sda6..ok?

Then, do this
1. boot from Live DVD or Live USB,
you cannot work on partition when running on sda1 or sda6.


2. run Live, and run gparted
if necessary unmount all partitions and swap off

3. delete sda7
4. delete sda6
5. shrink extended partition while keeping the swap on sda5

6. when all is good, now you can expand the sda1 to cover what was left unallocated from step 5.

note: DO NOT touch sda1's left hand side or start of partition.. or else your sda1 cannot boot.

7. reboot and hope for the best
Roland
Level 4
Level 4
Posts: 226
Joined: Sun Oct 04, 2009 9:44 am
Location: the Netherlands

Re: Merging partitions

Post by Roland »

Thank you.

I can not shrink the partition.
wayne128

Re: Merging partitions

Post by wayne128 »

there is some 'icon' next to your swap partition.

try to turn off the swap, right click on swap partition and select 'Swap off'.
Roland
Level 4
Level 4
Posts: 226
Joined: Sun Oct 04, 2009 9:44 am
Location: the Netherlands

Re: Merging partitions

Post by Roland »

I can only delete the partition, not unmount or whatever.
Or can format it as linux-swap. So it is not a swap-partition?
eanfrid

Re: Merging partitions

Post by eanfrid »

You must also actually commit the deletion of the two logical partitions you selected (those listed at the bottom) before trying to shrink "from the left", the extended partition.

Edit: your swap partition is probably either damaged or encrypted.
Roland
Level 4
Level 4
Posts: 226
Joined: Sun Oct 04, 2009 9:44 am
Location: the Netherlands

Re: Merging partitions

Post by Roland »

Thank you/merci, but that did not help. And I can' t get rid of the icon of the swap-parition.
Mark Phelps
Level 7
Level 7
Posts: 1869
Joined: Mon Jun 10, 2013 4:39 pm

Re: Merging partitions

Post by Mark Phelps »

Your posts where you say you cannot shrink the partition are pointing at unallocated space -- NOT a partition.

Now that you have unallocated space in the front part of the Extended partition, you need to highlight that and shrink it.
Roland
Level 4
Level 4
Posts: 226
Joined: Sun Oct 04, 2009 9:44 am
Location: the Netherlands

[SOLVED] Re: Merging partitions

Post by Roland »

Mark Phelps wrote:Your posts where you say you cannot shrink the partition are pointing at unallocated space -- NOT a partition.

Now that you have unallocated space in the front part of the Extended partition, you need to highlight that and shrink it.
You are right! Thank you and thanks to wayne128 and eanfrid. Problem solved.
Locked

Return to “Installation & Boot”