this post was submitted on 06 Nov 2024
27 points (93.5% liked)

techsupport

2469 readers
1 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
 

This is an external ssd, so I'm not super worried about things going wrong.

top 14 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Move the NTFS partitions, one at a time, toward the end of the drive. Let gparted complete each operation seperately. When you're done you should have all the NTFS partitions stacked at the back end of the drive but without having to change their UUID and sda#. Moving the 160G partition will take awhile, but just be patient, make sure the power doesn't fail and the drive is securely connected and won't get bumped during the operation, and let it do its thing. Then you can simply expand the ext4 partition into the newly available space ahead of the NTFS partitions.

Gparted is the only partition editor I've ever used that has successfully moved NTFS partitions on a drive without breaking a Windows install. I'm convinced it's the best out there, I always keep a live image of it around. It's an essential tool. I've done this exact thing to rearrange partitions on a dual-boot system, though it was a significantly smaller drive.

*edit: this is an external SSD, so do you actually boot from it? If not and you just want to keep the data on the Windows partition, you can just delete the other smaller NTFS partitions.

You can definitely just delete the linux-swap and create a new one wherever it's convenient.

[–] [email protected] 4 points 2 weeks ago (1 children)

How do I move the partitions?

[–] [email protected] 1 points 2 weeks ago (1 children)

Is this your first time using gparted?

Here's an example with pictures:

https://gparted.org/display-doc.php?name=moving-space-between-partitions

Basically you're going to select the partition, then click Resize/Move and then drag the end of the partition all the way to the right and then the beginning of the partition as far to the right as you want (the final size of the partition does not have to stay exactly the same as it is now, but dont squash them down to exactly the size of the data that's currently in the partition, leave some extra space).

The difference between this example and your situation is that your partitions are not inside of an extended partition (yours are all primary partitions). This doesn't matter, you only need to worry about moving the start and end points of each primary partition.

Start with the partition that is furthest to the right.

[–] [email protected] 2 points 2 weeks ago

Thanks a lot, I somehow could not find this information in my search yesterday.

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

Looks like you need to delete the swap partition between them. If you are using it you can turn it off in the os it is being used and then recreate it afterwards.

Edit - I see now that the partition you are talking about is not even pictured in the image at the top and there are lots more partitions between them. While I think it is possible to move partitions I can't tell you how. The drive is a bit of a mess though, maybe consider getting another one and moving some of the stuff off it?

[–] comador 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

copy the contents of that 296GB partition somewhere, delete the entire hda9 and recreate it, hopefully sucking ouo those spare 2+1MB, then copying the data back.

You have too many partitions to begin with though and beyond that, those 3MB may be just outside of alignment with the other partions, meaning you may not be able to reclaim them.

Regardless, it's 3MB, not a big deal.

[–] [email protected] 3 points 2 weeks ago (1 children)

I can't tell, but are you assuming I'm talking about the 3MB of unallocated space around the highlighted partition? because I'm not, I'm referring to the large allocated space at the right side of the drive.

[–] BenM2023 1 points 2 weeks ago* (last edited 2 weeks ago)

Copying all the data elsewhere and re-partition is still the right answer...

You could possibly get away with copying the data out of the last partition, deleting the last 3 and extending the other one then copying the data back but, as others have said, you seem to have rather too many partitions.

ETA: there is no way to merge ntfs and ext4 partitions anyway - even without the intervening partitions that are present here. Copy, destroy extend is the only way.

[–] serenissi 2 points 2 weeks ago

Certainly you can move the partitions to do that. But you can also make a dm-linear (lvm) volume out of both partitions and use that. On ssd there won't be any performance impact.

[–] [email protected] 1 points 2 weeks ago (2 children)

Are you just taking about the 1mb? If so I'd just leave it, it's common to leave some buffer space at the start and/or end of a block device.

[–] [email protected] 4 points 2 weeks ago

I'm talking about the almost 500 GB at the rightmost end of the drive.

[–] InternetCitizen2 1 points 2 weeks ago (1 children)
[–] [email protected] 1 points 2 weeks ago (1 children)
[–] [email protected] 2 points 2 weeks ago