Re: [gentoo-user] Re: How to move ext4 partition

2023-09-23 Thread Håkon Alstadheim
Den 22.09.2023 08:48, skrev Wols Lists: On 20/09/2023 23:39, Grant Edwards wrote: 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

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-22 Thread Wols Lists
On 20/09/2023 23:39, Grant Edwards wrote: 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

[gentoo-user] Re: How to move ext4 partition

2023-09-21 Thread Grant Edwards
On 2023-09-21, Jack wrote: > >> [...] Of course I've discovered for the Nth time in the past 10-15 >> years, that for the root= command line argument, the kernel doesn't >> grok LABEL or UUID values -- it only understands device names and >> PARTUUID. > > while my Gentoo grub.cfg has

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-21 Thread Jack
On 9/21/23 16:23, Grant Edwards wrote: On 2023-09-21, Victor Ivanov wrote: On Wed, 20 Sept 2023 at 23:58, Grant Edwards wrote: Just make sure you update /etc/fstab and bootloader config file with the new filesystem UUID or partition indices. I always forget one or the other until after I

[gentoo-user] Re: How to move ext4 partition

2023-09-21 Thread Grant Edwards
On 2023-09-21, Victor Ivanov wrote: > On Wed, 20 Sept 2023 at 23:58, Grant Edwards > wrote: > >>> Just make sure you update /etc/fstab and bootloader config file >>> with the new filesystem UUID or partition indices. >> >> I always forget one or the other until after I try to boot the >> first

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-21 Thread Victor Ivanov
On Wed, 20 Sept 2023 at 23:58, Grant Edwards wrote: > Yep, that's pretty much what I decided on based on the tar command > shown at > >https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage > > Interestingly, the Arch Linux Wiki recommends using bsdtar because > "GNU tar with --xattrs

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-21 Thread Victor Ivanov
On Thu, 21 Sept 2023 at 02:01, Frank Steinmetzger wrote: > > $ tar -cpf /path/to/backup.tar --xattrs --xattrs-include='*.*' -C / . > > Does that stop at file system boundaries (because you tar up '/')? I think > it must be, otherwise you wouldn’t use it that way. No, it doesn't. It will archive

[gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Grant Edwards
On 2023-09-20, Frank Steinmetzger wrote: > Am Wed, Sep 20, 2023 at 10:57:00PM +0100 schrieb Victor Ivanov: > >> On Wed, 20 Sept 2023 at 22:29, Grant Edwards >> wrote: >> > >> > That depends on how long it takes me to decide on tar vs. rsync and >> > what the appropriate options are. >> >> I've

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Neil Bothwick
On Wed, 20 Sep 2023 21:28:29 - (UTC), Grant Edwards wrote: > > 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

[gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Grant Edwards
On 2023-09-20, Victor Ivanov wrote: > On Wed, 20 Sept 2023 at 22:29, Grant Edwards > wrote: >> >> That depends on how long it takes me to decide on tar vs. rsync and >> what the appropriate options are. > > I've done this a number of times for various reasons over the last 1-2 > years, most

[gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Grant Edwards
On 2023-09-20, Wol 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

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Frank Steinmetzger
Am Wed, Sep 20, 2023 at 10:57:00PM +0100 schrieb Victor Ivanov: > On Wed, 20 Sept 2023 at 22:29, Grant Edwards > wrote: > > > > That depends on how long it takes me to decide on tar vs. rsync and > > what the appropriate options are. > > I've done this a number of times for various reasons

Re: [gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Victor Ivanov
On Wed, 20 Sept 2023 at 22:29, Grant Edwards wrote: > > That depends on how long it takes me to decide on tar vs. rsync and > what the appropriate options are. I've done this a number of times for various reasons over the last 1-2 years, most recently a few months ago due to hard drive swap, and

[gentoo-user] Re: How to move ext4 partition

2023-09-20 Thread Grant Edwards
On 2023-09-20, Neil Bothwick wrote: > On Wed, 20 Sep 2023 20:24:17 - (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