Grant Edwards
2023-09-20 20:30:01 UTC
I've got a Gentoo install using a GPT partition table and Legacy boot
using Grub2. There is a single /root parition and a single swap
partition on the drive.
I did not create a bios-boot partition at the start of the disk, so I
had to force grub2 to install using block-lists. I'd like to fix that
now. This requires that I move the ext4 root partition towards the end
of the drive to create 2MB of free space at the start of the drive for
a new bios-boot partition.
I see that Gnu parted no longer has a move command.
However, GParted apparently does. Can GParted move an ext4 filesystem
to a destination location that overlaps its starting location?
For example, I have a 500GB partition containing an ext4 filesystem
starting at sector 2048 (1MiB). I want to move that filesystem so that
it starts at sector 3*2048 (3MiB).
Can that be done in-place?
Or should I just back up the filesystem to a second drive and start
from scratch?
using Grub2. There is a single /root parition and a single swap
partition on the drive.
I did not create a bios-boot partition at the start of the disk, so I
had to force grub2 to install using block-lists. I'd like to fix that
now. This requires that I move the ext4 root partition towards the end
of the drive to create 2MB of free space at the start of the drive for
a new bios-boot partition.
I see that Gnu parted no longer has a move command.
However, GParted apparently does. Can GParted move an ext4 filesystem
to a destination location that overlaps its starting location?
For example, I have a 500GB partition containing an ext4 filesystem
starting at sector 2048 (1MiB). I want to move that filesystem so that
it starts at sector 3*2048 (3MiB).
Can that be done in-place?
Or should I just back up the filesystem to a second drive and start
from scratch?