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 1171B158089 for ; Thu, 21 Sep 2023 20:24:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25F6B2BC089; Thu, 21 Sep 2023 20:24:05 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8ED82BC017 for ; Thu, 21 Sep 2023 20:24:04 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qjQDK-0004O0-Ut for gentoo-user@lists.gentoo.org; Thu, 21 Sep 2023 22:23:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to move ext4 partition Date: Thu, 21 Sep 2023 20:23:44 -0000 (UTC) Message-ID: References: <20230920221647.5e3f00e7@digimed.co.uk> User-Agent: slrn/1.0.3 (Linux) 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 X-Archives-Salt: 93db2e12-fb41-47ff-bf16-2e40c8a9b0ca X-Archives-Hash: 8f3c7729dc8d3e3dada944b5fd3ba02a 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 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. The tar backup restore worked just fine (and didn't take long, even though both drives were connected via USB). I've since fixed a second machine by adding a bios-boot partition. I should have started using them when I switched from MBR to GPT, but I think I got bios-boot partitions confused with UEFI boot partitions. :/ I'm also working on switching to using either labels or uuids in fstab and grub configs so that changes in partition numbers don't cause problems. 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. -- Grant