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 CE73D158089 for ; Thu, 21 Sep 2023 09:32:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A3752BC062; Thu, 21 Sep 2023 09:32:37 +0000 (UTC) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 BBA052BC013 for ; Thu, 21 Sep 2023 09:32:36 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-5041335fb9cso1319644e87.0 for ; Thu, 21 Sep 2023 02:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695288755; x=1695893555; 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=zNCLH5HCR2Krns26e+6VUIw7PVVleGQi39RiKIpgOAU=; b=gZM0dFwLr5hLwef8BN9MLQZFP8QaaT2pne7h2rSZVBLIsWPsMgRV+6erWPrEFIKToT zFl64uligvYbaspb4NIiS6YnZvbWkTII/1GlysbltazvK/iRrvLvR52CKqWLF+4E4PUs rcbBEIpd4Mgm5OQpkd13CZ4aBtvAG/8mRo40OmUW/YFDErdsrlXpIxa18Q9hDMXdQQZ3 2OuHwGpk97tnb6tzgMk9g2JjQPZVd98UBx4ZZAvMMcqoh8IZqRdSmEd1/jrKmg2y86A2 8W0NG9agooOoSfc6/GC5QNsaUAUeiVo5FC0YY3OzISu8t+RHKLg2ZfDIQAjRjYnhOIht /2Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695288755; x=1695893555; 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=zNCLH5HCR2Krns26e+6VUIw7PVVleGQi39RiKIpgOAU=; b=d1yUZ1CMrSmZItZ+596x6RER3/M1GQQaGWga9zlca5bV7NpT4KNOZOrHskladkQ2wc wMvlPOfA4efiNXsUm/t+5cIQ7AsA0n7xA2TxYthTe9apjmp3wEAuT8r7NWKcjS0/9CM5 jcncHqS6emPp+mRmaXxZRjQa9LscAejJsHDG/3p+8vo5f2fEJBgwZKal2wFRnk5KAmny +kOsh+FqYfoYSOPVdk/t2VBcXw9z0FXz7dLGHcf5dQp8ZYWBdEntJl1N0/biEY3yLE/X W6I7AgXrfZzsQQ2YJ6Dtr7shOtjIyekWOUrnjoQ39TwXucNtXZ9moC+OzogSQ7TkJhH3 Ry/g== X-Gm-Message-State: AOJu0YxzfhM/QonDcRLVLf9+s/tz3+UbI00wlEm2mBTa0MdxVATrSLTf PxnExUSzgbr5ysaKwAVvmcAo+FKh5Ohr/RFbIIgWyaoBLA+IRg== X-Google-Smtp-Source: AGHT+IEPuTxpNX8oyYFrNABzb0Z0SqN3CDH1e+xT50ag3eh5NEyMdSrp9yU7r73pcrNIh5iPGRP2OJKe/R+YC+wq3f4= X-Received: by 2002:a19:e01a:0:b0:4ff:9efd:8a9e with SMTP id x26-20020a19e01a000000b004ff9efd8a9emr4033553lfg.7.1695288755110; Thu, 21 Sep 2023 02:32:35 -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: Thu, 21 Sep 2023 10:32:23 +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: d744d141-e326-4731-b808-cc15f278f687 X-Archives-Hash: a0ea22d1d33181a16897d9157f04bb31 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 will not preserve extended attributes". I remember coming across this too as I've previously had issues preserving some extended attributes, notably on files under my home directory. However, I found that using "--xattrs-include='*.*'" in addition to "--xattrs" works pretty well and does record attributes that would otherwise be excluded with just "--xattrs". I cannot comment, however, if it truly includes "everything" in every possible scenario. > > Both the drive being "fixed" and the backup drive are in a USB3 > attached dual slot drive dock, so I'm thinking compression might be > worthwhile. > Then LZO or zstd might indeed be a better approach as suggested by Frank. > > 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 > time. That's why I keep systemrescuecd and Gentoo minimal install > USB drives on hand. Me too, even just recently when I migrated my OS to another build I decided to do a few partition touch ups and fell once more into this trap. I updated fstab but not the bootloader. Luckily, Gentoo minimal install image is so tiny a bootable medium can literally be created in minutes. Good luck! Regards, V