I have a 1TB HDD but it’s partition’s got splitted. So when i try to do it on windows i got an error. I can’t exactly remember but maybe doing it on linux could work. How to force merge partitions in manjaro?
You cannot merge partitions. You can move the data from one partition to another, then remove the empty partition and expand the partition & file system.
I think i mean extend the partition.
For example partition 1 and partition 2 i want partition 2 to merge to partition 1 so it could get more space. How?
You can only extend a partition when you have the disk space to do it.
If the space is already occupied by another partition,
you’d save the data that is on it
and then remove that partition.
Then you can extend the first partition to occupy the now free space
then grow the file system to the new size of the partition
and then, finally, play back the data that you previously had saved.
not possible - you can keep two partitions and mount them so that you can effectively use their capacity - but you cannot “merge” them to become one
It’s really not difficult to understand: How would you put 2 drawers together with the contents?
You take the stuff out of the second drawer and put it somewhere else if there is no room in the first drawer. Then take the first drawer and enlarge it so that it fills 2 drawers. Now put the stuff from the second drawer, which you have parked elsewhere, into the first drawer, which you have also enlarged. Et voila: merged.
That’s how you merge partitions.
If your 2nd partition is empty or you do not need the data that is stored there, You can delete this partition 2.
But to do anything like this
- you need to boot from USB (so that partition 1 and partition 2 are not mounted)
- you can use
gparted
to delete partition 2 - then you can increase partition 1 to fill the whole disk
But before you do this, you need to make sure to have an actual backup of everything from partition 1 and partition 2
A word of advice here:
Don’t try to use windows tools to manage Linux partitions.
Windows tools (usually) do not understand Linux filesystems …
… and will likely really mess things up.
Id follow the above advice: copy ALL needed data off BOTH partitions; then decide how to proceed — either expand Partition 1 or just delete both and create a fresh new one. Assuming, of course, that this does not involve a system partition.
It may be helpful to see the output of the following:
sudo parted -l
… and
lsblk -fT
It also wouldn’t hurt to provide us with an inxi
report as well:
inxi -zv8
Windows ntfs or Linux ext4/btrfs? An important difference.
Yes, the ‘file can not be moved’ error. There are ways to try to fix this, it mostly doesn’t work; find out in the Win forums. As a basic rule; edit Win partitions from within Win and Linux partitions from booted USB Linux iso. However…
I have edited ntfs partitions (that gave the error on Win10) on external drives using Manjaro’s Gparted (running on a different internal drive) and it does work (if gparted’s ntfs support isn’t buggy, which right now it may well be, search this forum for ‘ntfs’).
Be warned! Do not try this without backing up all data on the drive! This can go totally wrong; plenty of stories online where it did.