I Want to merge my /sda1
and /dev/sda6
. I have Ubuntu in both /sda1 and /dev/sda6
. But just now I have formatted /dev/sda1
, now I want to merge it with /dev/sda6
(it has Ubuntu).
Please suggest me step wise using gparted
.
I Want to merge my /sda1
and /dev/sda6
. I have Ubuntu in both /sda1 and /dev/sda6
. But just now I have formatted /dev/sda1
, now I want to merge it with /dev/sda6
(it has Ubuntu).
Please suggest me step wise using gparted
.
There are at least three problems with your question:
/dev/sda1
and /dev/sda6
are not adjacent to one another -- two other partitions exist in-between them. Also, /dev/sda1
is a primary partition and /dev/sda6
is a logical partition. Thus, even if you found some obscure tool to merge two partitions, it would be useless in this context, because a partition must be a continuous set of sectors, like sectors A to D, not A to B and C to D, with other partitions occupying sectors B to C./dev/sda1
is NTFS and /dev/sda6
is ext4fs. Thus, even if you found a tool to merge two partitions, and if they were adjacent to one another, you couldn't do it because they're different filesystem types.All that said, I suspect that your /dev/sda1
is empty, and you simply want to expand the size of /dev/sda6
, using the space of /dev/sda1
. That task can be done, but it requires some intermediate tasks:
/dev/sda1
./dev/sda2
to the left. This will have the effect of moving the free space now occupied by /dev/sda1
to the right of /dev/sda2
./dev/sda3
to the left. Again, this has the effect of moving the free space to the right of /dev/sda3
./dev/sda4
, so that its start point is as far to the left as possible. It should now encompass the free space. (Note that an extended partition is a sort of placeholder that itself contains logical partitions. Thus, although the free space is within the extended partition, it's still available to logical partitions and so remains free, in some sense.)/dev/sda6
to the left, so that it now consumes the free space.This procedure carries some significant caveats:
As an alternative to this procedure, you might consider using your existing /dev/sda1
more-or-less as-is. This question and answer, for instance, describe how to add a partition as a separate /home
partition. You'd need to create a fresh ext4fs (or other Linux native) filesystem on the partition, but this approach bypasses all of the preceding caveats. OTOH, your current Ubuntu root (/
) partition is tiny (16.28 GiB), so unless you want to increase its size for more user storage space, you might not free up enough space by using /dev/sda1
as /home
. Maybe moving /var
or something else to the new partition would work better, but that creates its own inflexibility. Moving the entire installation to /dev/sda1
, which is 53.61 GiB, might be a better approach. See here for some discussions on this approach.
/dev/sda1
, or if you can back it up easily, you might find it easiest to create a fresh Ubuntu installation on /dev/sda1
. If you back up your data from the current Ubuntu installation, you could also re-use /dev/sda6
as something -- maybe /var
or home
, depending on your needs.
– Rod Smith
Apr 25 '17 at 13:24