Courtsey of Anaconda, I have 4 contiguous unused partitions. I would like to merge them into a single partition.
AFAIK this is the procedure I should follow.
backup Boot to single-user use parted rm partitions 2 3 4 resizepart partition 1 reboot
Do I have it right?
On Sun, 22 May 2022 15:02:06 -0700 Geoffrey Leach wrote:
Do I have it right?
Probably, but:
I usually boot a live image and run gparted so I can use the less confusing GUI interface to get all the details right (may have to install gparted in the live image first).
I'm not sure even single user will allow you to modify the root partition in any way, the live image is safer.
On Sun, 2022-05-22 at 15:02 -0700, Geoffrey Leach wrote:
Courtsey of Anaconda, I have 4 contiguous unused partitions. I would like to merge them into a single partition.
AFAIK this is the procedure I should follow.
backup Boot to single-user use parted rm partitions 2 3 4 resizepart partition 1 reboot
Do I have it right?
That will get you a single large partition, but your filesystem won't be any bigger until you grow it to fit the new size. Different filesystems have different ways of doing this.
poc
On 5/22/2022 6:02 PM, Geoffrey Leach wrote:
Courtsey of Anaconda, I have 4 contiguous unused partitions. I would like to merge them into a single partition.
AFAIK this is the procedure I should follow.
backup Boot to single-user use parted rm partitions 2 3 4 resizepart partition 1 reboot
Do I have it right?
This is indeed a very interesting question. IMO fedora has kind of dumped the CLI partition resizing idea. To my knowledge anyway. I rarely use a GUI myself, or gparted would be fine. I would simply use fdisk to do this myself. Parted is kind of scary to me. As far as resizing partitions which was my issue fdisk could manually set the "CHS" to use an old idea, but making direct changes to filesystem data I don't believe it does that. Fdisk can delete the partition data in the partition table and recreate a new partition without you having to do manual calculating. So the result is a new single partition. In my case there seems to always be a little empty space at the end of an ext2 or 3 (not sure about ext4). I just don't use it. But then again, parted might using resize, simply expand to all used partition space.
On 5/22/22 15:02, Geoffrey Leach wrote:
Courtsey of Anaconda, I have 4 contiguous unused partitions. I would like to merge them into a single partition.
AFAIK this is the procedure I should follow.
backup Boot to single-user use parted rm partitions 2 3 4 resizepart partition 1 reboot
Do I have it right?
If they are unused, you don't need to use single-user mode. Just run fdisk on the cli or gparted or Gnome disks in the gui. Delete all the unused partitions and create a new one with the free space.
On Mon, 2022-05-23 at 21:30 -0700, Samuel Sieb wrote:
If they are unused, you don't need to use single-user mode. Just run fdisk on the cli or gparted or Gnome disks in the gui. Delete all the unused partitions and create a new one with the free space.
Even though you're only modifying unused partitions, you'll be writing partition data about all partitions. I'd be concerned that might be a problem on a running system.
On 5/23/22 22:41, Tim via users wrote:
On Mon, 2022-05-23 at 21:30 -0700, Samuel Sieb wrote:
If they are unused, you don't need to use single-user mode. Just run fdisk on the cli or gparted or Gnome disks in the gui. Delete all the unused partitions and create a new one with the free space.
Even though you're only modifying unused partitions, you'll be writing partition data about all partitions. I'd be concerned that might be a problem on a running system.
You're just modifying the partition table. As long as you don't modify an active partition, it's completely safe. I have done it many times.