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 22:39:11 -0000 (UTC) [thread overview]
Message-ID: <uefsaf$n7s$1@ciao.gmane.io> (raw)
In-Reply-To: c25cc8a1-651d-4480-b21a-6e0c27c1cd8f@youngman.org.uk
On 2023-09-20, Wol <antlists@youngman.org.uk> wrote:
> Or, assuming the people who wrote gparted have two brain cells to rub
> together, I'm pretty sure they use the same technique as memmove.
>
> "If the regions overlap, make sure you start from whichever end won't
> overwrite the source, otherwise start at whichever end you like".
>
> Barring screw-ups (a very unsafe assumption :-), I'm pretty certain you
> don't even need a backup!
>
> I suspect the man-page even confirms this behaviour.
Not that I could see. The only mention of "move" on the man page is
in this list of features.
With gparted you can accomplish the following tasks:
- Create a partition table on a disk device.
- Enable and disable partition flags such as boot and hidden.
- Perform actions with partitions such as create, delete,
resize, move, check, label, copy, and paste.
Assuming GParted is smart enough to do overlapping moves, is it smart
enough to only copy filesystem data and not copy "empty" sectors?
According to various forum posts, it is not: moving a partion copies
every sector. [That's certainly the obvious, safe thing to do.]
The partition in question is 200GB, but only 7GB is used, so I think
backup/restore is the way to go...
--
Grant
next prev parent reply other threads:[~2023-09-20 22:39 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 ` [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 ` Grant Edwards [this message]
2023-09-22 6:48 ` [gentoo-user] " 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='uefsaf$n7s$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