Results 1 to 5 of 5

Thread: Unallocate Partitions: want to merge with existing ones: Gparted

  1. #1
    Join Date
    Feb 2012
    Location
    ArcelorMittal Kazakhstan
    Beans
    149
    Distro
    Ubuntu 14.04 Trusty Tahr

    Unallocate Partitions: want to merge with existing ones: Gparted

    Please see the screen shot.

    It has two "unallocated" partitions.

    I want to merge them with existing partitions, /dev/sda5 (or /dev/sda3).

    How to merge both "unallocated" partitions (one of 9 GB and other of 1 MB) with one of the existing /dev/sda*.

    Help.
    Attached Images Attached Images
    Last edited by satyamM; July 15th, 2013 at 05:47 PM.

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Unallocate Partitions: want to merge with existing ones: Gparted


  3. #3
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,377
    Distro
    Ubuntu Mate Development Release

    Re: Unallocate Partitions: want to merge with existing ones: Gparted

    Sorry, but basically you can't "merge" partitions this way.

    The first unallocated space is only 1MB -- and you can't do anything with that due to rounding.

    The second unallocated space is to the "right" of your swap partition. You can't "merge" it with any other partition because space has to be adjacent to a partition.

    If you wanted to add this space to sda5, you would have to do the following:
    1) Boot from a partitioning tool --Gparted LiveCD can do this, as can the Ubuntu installer
    2) Move the swap partition to the right
    3) Move the NTFS partition to the right
    4) Expand the Ext4 partition to take up the new unallocated space

    Be advised that this could easily take HOURS to do, and with any partitioning exercise, there is always the risk of losing data. So, you should back up the stuff in the NTFS partition before you attempt to move it.
    Ubuntu 20.04, Mint 19.10; MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  4. #4
    Join Date
    Feb 2012
    Location
    ArcelorMittal Kazakhstan
    Beans
    149
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Unallocate Partitions: want to merge with existing ones: Gparted

    Can I go like following way:

    1. Do swapoff and Delete the linux+swap partition.
    2. Extend /dev/sda3 to whatever I desire (probably extend it to last and leaving 1 GB at last)
    2. Then allocate 1GB to swap space.

    I'm not sure of anything. I'm just asking. Will deleting swap space in first step will cause any bad??

    I am again attaching the screenshot for quick reference.
    Attached Images Attached Images
    Last edited by satyamM; July 17th, 2013 at 02:06 PM.
    Satyam M.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Unallocate Partitions: want to merge with existing ones: Gparted

    If you delete swap and recreate it, you also then need to update the new UUID in fstab.
    sudo blkid -c /dev/null -o list

    sudo cp /etc/fstab /etc/fstab.backup
    gksudo gedit /etc/fstab

    If you change the size of a Windows partition you need to run chkdsk for it to internally update its boot sector. Best to use Windows tools on Windows NTFS partitions but never to create new partitions.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •