public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to move ext4 partition
@ 2023-09-20 20:24 Grant Edwards
  2023-09-20 21:16 ` Neil Bothwick
  0 siblings, 1 reply; 17+ messages in thread
From: Grant Edwards @ 2023-09-20 20:24 UTC (permalink / raw
  To: gentoo-user

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?



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-09-23 12:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-20 20:24 [gentoo-user] How to move ext4 partition Grant Edwards
2023-09-20 21:16 ` Neil Bothwick
2023-09-20 21:28   ` [gentoo-user] " Grant Edwards
2023-09-20 21:57     ` Victor Ivanov
2023-09-20 22:12       ` Frank Steinmetzger
2023-09-20 23:03         ` Grant Edwards
2023-09-21  9:20         ` Victor Ivanov
2023-09-20 22:58       ` Grant Edwards
2023-09-21  9:32         ` Victor Ivanov
2023-09-21 20:23           ` Grant Edwards
2023-09-21 21:39             ` Jack
2023-09-21 22:17               ` Grant Edwards
2023-09-20 23:03     ` Neil Bothwick
2023-09-20 21:37   ` [gentoo-user] " Wol
2023-09-20 22:39     ` [gentoo-user] " Grant Edwards
2023-09-22  6:48       ` Wols Lists
2023-09-23 12:16         ` Håkon Alstadheim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox