Hello,
On one disk, I have an extended partition (sdc4) starting at 41338880 Inside, I have a ext4 partition (sdc5) starting at 53919744 (see attached file) In between the space is unallocated
How can I make that the partition sdc4 starts just at the beginning of sdc5
Thanks
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 | | Room# D114A ===========================================================================
On 2021-06-06 1:22 a.m., Patrick Dupre wrote:
On one disk, I have an extended partition (sdc4) starting at 41338880 Inside, I have a ext4 partition (sdc5) starting at 53919744 (see attached file) In between the space is unallocated
How can I make that the partition sdc4 starts just at the beginning of sdc5
You can use gparted to move and resize the partition. If it's a necessary partition that you can't unmount, you'll need to use a live boot to do it.
On 6/6/21 10:22 AM, Patrick Dupre wrote:
Hello,
On one disk, I have an extended partition (sdc4) starting at 41338880 Inside, I have a ext4 partition (sdc5) starting at 53919744 (see attached file) In between the space is unallocated
How can I make that the partition sdc4 starts just at the beginning of sdc5
I see no attached file.
Why do you want to move the beginning of the extended partition sdc4, maybe to enlarge sdc3?
Since you are not really moving that, you should just destroy and recreate some of the partitions (sdc4, sdc5 for sure, sdcx with x>=6 if you have them). If you do it manually, you have to be careful and don't mess things up. If you use some tool, you have to hope the tool doesn't mess things up.
Paste your fdisk -l output if you want.
Regards.
Hello,
The way, I did: with fdisk deleted partition 5 and 4 created a new partition extended starting at the position of sdc5 by removing 2048. And recreate sdc5 starting at the right position. Every thing was fine !
On 6/6/21 10:22 AM, Patrick Dupre wrote:
Hello,
On one disk, I have an extended partition (sdc4) starting at 41338880 Inside, I have a ext4 partition (sdc5) starting at 53919744 (see attached file) In between the space is unallocated
How can I make that the partition sdc4 starts just at the beginning of sdc5
I see no attached file.
Why do you want to move the beginning of the extended partition sdc4, maybe to enlarge sdc3?
Since you are not really moving that, you should just destroy and recreate some of the partitions (sdc4, sdc5 for sure, sdcx with x>=6 if you have them). If you do it manually, you have to be careful and don't mess things up. If you use some tool, you have to hope the tool doesn't mess things up.
Paste your fdisk -l output if you want.
Regards.
Roberto Ragusa mail at robertoragusa.it
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On 6/7/21 1:39 PM, Patrick Dupre wrote:
Hello,
The way, I did: with fdisk deleted partition 5 and 4 created a new partition extended starting at the position of sdc5 by removing 2048. And recreate sdc5 starting at the right position. Every thing was fine !
Yeah, that is what I was suggesting, but you have to be very careful with the block numbers (especially with the extended partition).
And, for all the developers reading, this kind of operations is exactly why you should never think about doing a trim/discard to the block device when deleting a partition (I remember somebody proposing that, unsuccessfully).
Regards.