From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A345D158089 for ; Wed, 20 Sep 2023 21:57:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23ECF2BC0E6; Wed, 20 Sep 2023 21:57:13 +0000 (UTC) Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 982C72BC04A for ; Wed, 20 Sep 2023 21:57:12 +0000 (UTC) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-502e6d632b6so578757e87.0 for ; Wed, 20 Sep 2023 14:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695247031; x=1695851831; darn=lists.gentoo.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=uvVaSErYPSOs8FXHINCqkwRQwO7JWfHRlU5pTE4OqLc=; b=WTZI170gvFILxGFAa3WJHAy7zwbbKDr9h9/B4RQbyz19nA1QJmdZhcRmB5rlys0uFM 3QKXzSX6CDcy/23iZP+yZkTv1V9XO4KeGh+d8OjOEaw8kpg+EhTABrIT+k8DqEuk0GLX SsSu/I3dbVEzpCTxZqLU85Ua9MIkUa2NnWJtg0T85ecappnizR6Hv5BcBfllQy0bfhkX cIWCubUlc+GXOwbyJiI9D4wyQBHYmTo6oklCwXOXxK6o/ZycKDnNF6v6RvEN9t1mTVrM o/+OUz03ebLkSFkCOckqgNXqpGNdFY/mn/QfAM0QQ7hh7X3DqB6MKWkRnSHcRLyJSey4 hVqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695247031; x=1695851831; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uvVaSErYPSOs8FXHINCqkwRQwO7JWfHRlU5pTE4OqLc=; b=gsqD/M2a46QkgMbbYJkmm7+SYpdAtQVM0u2tye+rMaSvG+cg7Ic64OwH39P3mf9jOQ ViaLHdTGQeUrmqrZ36cITELrFNBCHblWFDUJjsppirpp5O7vLOzWTZhwxdc1S5hug5x6 EbimzIzGt4IsAiQn0CE9PTzJnXscfnIPchrrtTckXgxXZ73AJxE4VyvmrGFV6jrMwgqH CGrCo+swKc3HKykB3bbYdC78DJKyWGYyvwt4iYB2TF93r1RhP7m9U5WoGqRAgtPA7m9P 88LeGu6qy5JCcuekV2dB1kl+McMXfjObqX/AwI+guXYW9PI/8Mppo+PSF/iKE3GU9nJL PKmQ== X-Gm-Message-State: AOJu0YwNyaKD5dw97OOGnlDCGBYA5s3Cbaq3NCS7cSskfIAhwpZGDmYr cXT5b7kqjMA4ie5NTzL1hB+t9CzLvi3ilElKArkUbN6913VW07U7 X-Google-Smtp-Source: AGHT+IFRO9FjDuQ0Lsc/lRmC9puPx9OGgJ/oE7cKhw3xESUiqIiwZCz/4vlIeQqP2j2akX5Mptw1LeC99OlkOjft9/U= X-Received: by 2002:ac2:4c3b:0:b0:500:ac0b:8d52 with SMTP id u27-20020ac24c3b000000b00500ac0b8d52mr3208397lfq.7.1695247031141; Wed, 20 Sep 2023 14:57:11 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20230920221647.5e3f00e7@digimed.co.uk> In-Reply-To: From: Victor Ivanov Date: Wed, 20 Sep 2023 22:57:00 +0100 Message-ID: Subject: Re: [gentoo-user] Re: How to move ext4 partition To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 6b4cd41f-2ddc-4228-a88a-2a67dd59cac7 X-Archives-Hash: 8204b371d369083efdd743e4b779676e 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 I find tar works just fine: $ tar -cpf /path/to/backup.tar --xattrs --xattrs-include='*.*' -C / . Likewise to extract, but make sure "--xattrs" is present Provided backup space isn't an issue, I wouldn't bother with compression. It could be a lot quicker too depending on the size of your root partition. > That said, I think I will go with the backup, repartition, restore > method. Sounds like a sound course of action to me, reinstalling is just too much faff and can often be avoided. I have a long standing distrust of partition management utilities that claim to move filesystem data too. I'm sure they work juuuuust fine :) Just make sure you update /etc/fstab and bootloader config file with the new filesystem UUID or partition indices. Regards, V