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

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

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

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

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