public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: How to move ext4 partition
Date: Wed, 20 Sep 2023 21:28:29 -0000 (UTC)	[thread overview]
Message-ID: <uefo5t$tm7$1@ciao.gmane.io> (raw)
In-Reply-To: 20230920221647.5e3f00e7@digimed.co.uk

On 2023-09-20, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Wed, 20 Sep 2023 20:24:17 -0000 (UTC), Grant Edwards wrote:
>
>> 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?
>
> Given that you'd want to backup before such an operation anyway,

It's a machine with very limited uses, so I'd probably only back up
/etc and /root. Reinstalling probably wouldn't take too much longer
than backing up and restoring /.

> you may as well then restore from that backup. I'm sure it will be a
> lot quicker than GParted's moving all the data around.

That depends on how long it takes me to decide on tar vs. rsync and
what the appropriate options are. After 40 years using Unix, you'd
think I'd know that (or have it written down somewhere). :)

That said, I think I will go with the backup, repartition, restore
method. It's been many, many years since I used GParted, and I can
probably have the whole job done from the command-line before I can
figure out how the GParted GUI works.




  reply	other threads:[~2023-09-20 21:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Grant Edwards [this message]
2023-09-20 21:57     ` [gentoo-user] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='uefo5t$tm7$1@ciao.gmane.io' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox