From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0FKzKQeqj2IZAwEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 18:25:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4CedKAeqj2JrhQEAG6o9tA (envelope-from ) for ; Thu, 26 May 2022 18:25:43 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28D593F790 for ; Thu, 26 May 2022 18:25:43 +0200 (CEST) Received: from localhost ([::1]:56634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuGIw-0007UM-3X for larch@yhetil.org; Thu, 26 May 2022 12:25:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuGIX-0007Tb-FR for guix-devel@gnu.org; Thu, 26 May 2022 12:25:18 -0400 Received: from mail-4324.protonmail.ch ([185.70.43.24]:55125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuGIV-0007FC-BI for guix-devel@gnu.org; Thu, 26 May 2022 12:25:17 -0400 Date: Thu, 26 May 2022 16:24:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1653582308; x=1653841508; bh=H6lVz0zQHnsC3HakFGARcGPcI8e8JD1m65rDbifhqu0=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=YMKdEy2AlTkX2G1V5s/nUpxZMNa7u9rY+9upOYuk7BJAyWePEDTf5OXmid73F9vzD 3Xshb8/J4aMvLvL0aTsvH1FKve15AmRi8BPJeofeVhgwpyIZf1uCaR96/HGXl3DCSd cNfGWcdnn9utkH+r2lt+yWspvPAw9UMKpShGxT8tYXHse5gZkk/fIxZunu4oflGOFS pPp1QlSH2MAJPF1EDGbLAwdZ3jjE9NMjkSMX9tkFUdzQp7O2iXlmKDw+lqyOK2Daii Leu9PDvy3HEBKAvyjj2C95EIo3vLWi+inimFvqncvBra9NXakmeJYOoTWrMtGEu6dL cm6T4dZc0iClA== To: =?utf-8?Q?Th=C3=A9o_Maxime_Tyburn?= From: Kaelyn Cc: Giovanni Biscuolo , guix-devel@gnu.org Subject: Re: Move /gnu/store to another filesystem Message-ID: In-Reply-To: <874k1cmuyl.fsf@gmail.com> References: <87czg1mk77.fsf@gmail.com> <87wne8mvum.fsf@xelera.eu> <874k1cmuyl.fsf@gmail.com> Feedback-ID: 34709329:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.24; envelope-from=kaelyn.alexi@protonmail.com; helo=mail-4324.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Kaelyn Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653582343; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=H6lVz0zQHnsC3HakFGARcGPcI8e8JD1m65rDbifhqu0=; b=NsECcMKS9sUstNyoqN+BVN9JW5Gb+1MTwx/4SaISAjTyMTYkY7pTdNQKpa2IE3/XNNPbO6 jQOlp1/18K4Hp3DA640CMm/rjQ4xXDOp+txEn35DVdN3uE/AvQfpt29ulfeiWdQDJ3hYhq e7P6vfrYvGDW/MQyTkkHdVUGz1dYaqWaOMtvT6HhBgdo3fXUUdCWVcnk/ADcmywMEMyT+g UMfJF84QNKIoUPClLj7wy10UTvD7HggPx3PWW14E0I/vVTQgx1zkO4EwgF8gKEbiicEWKJ TeLlostT6+M2GmHoOg8jTkfhS3/R8XeKjNxVLRx4dICa3Wn2b1gU0oUsYBUYLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653582343; a=rsa-sha256; cv=none; b=o2flAuRCeYkxM+8QiAKxrqARIFTN2kAISaCArsDcoQJ5D6IFB4RcHWCqBSBNDwbQ1XkEmk FZAQWnHEiWogRTYMBn0vrtS0fpAqu/RY+2Q5zDclT2L9qYo4UaJ2Uike0sQjC4Ygmr6WAf Tk/LKEySIBnxQFaXq6yBY9fNzKm/LFqz5O6IldIgYI+YbELJHcF5ldwOVRVi92SgCLvhYZ AbAJ40ltAMY9Yr43fOCVo16Laju/84lCDNVsrKwvjfnv37gHDst0CJufyX+xo5kkXgLE8r QFnUic2QxMbUhqkPfGAtGLvSacDgxXzbTq1qwmJ8IchFEOGl7+GO5jrBBW2XXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=YMKdEy2A; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=YMKdEy2A; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 28D593F790 X-Spam-Score: -4.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: jFaYvF3Deib/ Hi Th=C3=A9o, n Thursday, May 26th, 2022 at 3:44 AM, Th=C3=A9o Maxime Tyburn wrote: > Hi Gio, > > Giovanni Biscuolo g@xelera.eu writes: > > > [...] > > > maybe you misconfigured "mount-point" and "type"? > > > > what about: > > > > --8<---------------cut here---------------start------------->8--- > > > > (define %store-fs ;; <--- This is what I want to add. > > (file-system (device (file-system-label "storage-fs")) > > (mount-point "/gnu/store") > > (type "btrfs") > > > > --8<---------------cut here---------------end--------------->8--- > > > > WDYT? > > > Oh yes sorry, I did a mistake while copy-pasting. What you suggested > is actually what I am using. If you have the new /gnu/store as a btrfs subvolume, you may need to tell `= mount` which subvolume to mount there. I haven't tried moving /gnu/store, b= ut my systems have / and /gnu/store as separate btrfs subvolumes in the sam= e LUKS-encrypted partition. Here is the `file-systems` stanza of one of my = system's operating-system declaration, in case it is helpful: (file-systems (let ((rootfs (file-system (mount-point "/") (device "/dev/mapper/cryptroot1") (type "btrfs") (check? #f) (options "compress=3Dzstd,subvol=3D@guix") (dependencies mapped-devices)))) (cons* rootfs (file-system (mount-point "/boot/efi") (device (file-system-label "EFI")) (type "vfat") (mount-may-fail? #t) (dependencies mapped-devices)) (file-system (mount-point "/gnu") (device "/dev/mapper/cryptroot1") (type "btrfs") (check? #f) (options "compress=3Dzstd,subvol=3D@gnu_store") (dependencies (cons rootfs mapped-devices))) %base-file-systems))) Cheers, Kaelyn > > > > Anyway this is probably not the right way to do it. Simply coping > > > /gnu/store around looks a bit brutal. > > > > AFAIK we can move /gnu/store anywhere if the system is not live, > > like you did booting in "rescue mode" > > > Well then I don=E2=80=99t see what could have gone wrong. I=E2=80=99ll tr= y it agin. > > > Happy hacking! Gio' > > > Tks!