From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id RvIqHKV9VWB3KAAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 04:44:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sC+GF6V9VWCPCAAA1q6Kng (envelope-from ) for ; Sat, 20 Mar 2021 04:44:21 +0000 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 8E9F814900 for ; Sat, 20 Mar 2021 05:44:20 +0100 (CET) Received: from localhost ([::1]:39992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNTTG-0008Su-Bv for larch@yhetil.org; Sat, 20 Mar 2021 00:44:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNTT8-0008Sl-0B for help-guix@gnu.org; Sat, 20 Mar 2021 00:44:10 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:43851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNTT6-0000VW-7z for help-guix@gnu.org; Sat, 20 Mar 2021 00:44:09 -0400 Received: by mail-qk1-x730.google.com with SMTP id x14so5163987qki.10 for ; Fri, 19 Mar 2021 21:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:references:message-id:user-agent :mime-version; bh=CEV2ebLsEHO1+K3AtoE2Jvn6tssV0TodzpjAs9vNHc4=; b=JluIS2G5376l4SebiJLP6I8LC0E+z9mBOQlelfXK9mUaFjKzAkkAbKqOifd0J/e/qz te6b/RiXaTR0aGfIOvLOYjubtDgPQP/cO29iKb8D+P8BlGjqkMtk8W+3G6LRMIoCFjVk Cy5a2SEqkMVwkY6wiHJlbz/mEDbckhkmS++dhyLRheELZLCUNop2l8nPiVFOucApztpX jz/fSVSb902VsLyHM88MOIHhVN1nRQJngmFtsPYG1NqFF238/ESQs/7Y+An5HDquV0En kxKeavh4NxfqPWQcu7gTC/xZHYe2l/C0wfL4PmL/xK0qh7ZkpQSof0lM8/DzuAFEkU9A y1fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:references:message-id :user-agent:mime-version; bh=CEV2ebLsEHO1+K3AtoE2Jvn6tssV0TodzpjAs9vNHc4=; b=CsUOo9Pazb1NbTIwjVp3EZIHONRqELR9OHd93bIAosaRiC7cGen62HF6xh33gdtMsz ffDi5xcVIX9TxnoLAfSH0MeDtqgWS4VzIwdHYUknNuD15ejE3c5A1D7bDgfRXEc3Osef M6ZeMResUSr97WV2vM0HPPY2JitWCrgqApuhFr1CKDBYayZtgoOU9MKaHLK3WYj41d+L v2UG0xqiC+Ap/aWNU2b7loIV82MLcrW6QCfOleuq96owmB1jygIR/Rgee9n9qOMDTXnF 3DjS4SrKDX9ob8tQMDe4mTz9BAAZL0K5xm0feDr+mR4IwoOZnvOrnafK5vAszAggTwac imsQ== X-Gm-Message-State: AOAM5310XeYzfNdvUvNqvvSZrVEQK31FDjIDSnP6JRcDU0X9mStnYQdm o5K/qJ/nQldz28EfG8iBeKHUdDg139g= X-Google-Smtp-Source: ABdhPJz/9TcQi2Q7YGUAVOGoa1l2MPVJgShD7UR7peJNE2uwJ6E+8SBrKTxkqZzYqaNAUbFhSuJapw== X-Received: by 2002:a37:9a07:: with SMTP id c7mr1741816qke.352.1616215446786; Fri, 19 Mar 2021 21:44:06 -0700 (PDT) Received: from hurd (dsl-148-122.b2b2c.ca. [66.158.148.122]) by smtp.gmail.com with ESMTPSA id b17sm5063407qtp.73.2021.03.19.21.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 21:44:06 -0700 (PDT) From: Maxim Cournoyer To: raingloom Subject: Re: How do I specify a btrfs subvolume? Date: Wed, 17 Mar 2021 22:48:08 -0400 References: <20210317024425.5b6cb1de@riseup.net> Message-ID: <87tup6bfje.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x730.google.com 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616215460; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CEV2ebLsEHO1+K3AtoE2Jvn6tssV0TodzpjAs9vNHc4=; b=I2ynF9brMC64mR3SiEa7/3MCLLH76SxFnzM3GDABUDgIEyF8NuYMT+h7n+EqHR7cg1uHFM 1voeNkAeDmz/zff+zgALdBw340MRBT2uVneLsxntgqsEYrMDPsqz1UZ+89GaTu/5B/tFSj nTYlKJEBgMy4hZ+HjmONvGrLyotatnJTPLrbxqZ/svDQOlW3CwxSF7Jz3a5sbnJyzvrT1A XjZr95do/qiTsk8NjyQLLnGmfIIQkI42F6tCkS6VfMd58i8XZj/y5C1zl9o9yZgzveGz0Q uyjWc6V+hDUAZOnq+jc3/Blpz5gCJ9rNog7OizHTYb3b136APQP78QvqQ6pJDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616215460; a=rsa-sha256; cv=none; b=LTE06zqJEeRQG5iZ/pV2k9cwoVYeTW3sfa+ibyctfRzsqKia9R5gYrTz++ZvQ+FKhlAtMa iNGrwYPeLeQqL1SQsRzYfPIinl7JirEeDmuflnmn3JMxfan+gyW8+FvEuc6mnFEVVSLlFM cwFcLqkKIiqlNRRI3dnWN1mxieMkLyCn/zpafw365kVfGLFpt+1y58aD7lZnkVh3FhH/oC WfItR9mpNww+B9bHoy+GoC0cr08oaPp5SLKmn1wqzqTBR4bLLWKODHLbepW3zqVv0O9/Qb iyHOTiZUsjCwaTVyCoHSxjAUXlFP58OsGCHSWdRx7gfus8RHukf1mEUHmOKP1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JluIS2G5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JluIS2G5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 8E9F814900 X-Spam-Score: -1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: n9Y/XuYKnn9+ Hi, raingloom writes: > On Sun, 14 Mar 2021 20:33:06 -0500 > Nathan Dehnel wrote: > >> This is extremely confusing: >> https://guix.gnu.org/manual/en/html_node/Btrfs-file-system.html Hello! Trying to explain it was a real challenge. Would you mind detailing what exactly got you confused? Hopefully it can be improved. >> I made my best attempt at creating and mounting a subvolume at >> /media/offsite-backup: >> >> (file-systems >> (cons* (file-system >> (mount-point "/") >> (device >> (uuid "b2e0f449-0583-46fd-8c23-ad2e6cd661a1" >> 'btrfs)) >> (type "btrfs")) >> (file-system >> (mount-point "/media/offsite-backup") >> (device >> (uuid "b2e0f449-0583-46fd-8c23-ad2e6cd661a1" >> 'btrfs)) >> (type "btrfs") >> (options "subvol=offsite-backup,compress=zlib:9")) >> >> It gives this error: >> >> building >> /gnu/store/mrs1qbg619qk4n2lv8k377arclgzwqjq-install-bootloader.scm.drv... >> guix system: bootloader successfully installed on '/dev/sda' guix >> system: warning: exception caught while executing 'start' on service >> 'file-system-/media/offsite-backup': In procedure mount: mount >> "/dev/sda2" on "///media/offsite-backup": No such file or directory >> guix system: warning: some services could not be upgraded >> >> But /media/offsite-backup exists. Trying it on my end. $ blkid /dev/sda2: UUID="0792432c-78d8-4dcc-87c5-30200c3d02db" TYPE="crypto_LUKS" PARTUUID="b2284a29-5c96-4983-afae-daf1528bb1b2" /dev/mapper/cryptroot: UUID="2e97fbbd-fa4e-4858-948b-b3a89278a39b" UUID_SUB="7cf6061d-a2d8-4c69-ad34-8d8e31b973cd" TYPE="btrfs" /dev/sdc: UUID="7bb7e1dd-b0f9-45dc-bf2a-39c6d3a4ee42" TYPE="crypto_LUKS" /dev/sdb2: UUID="a9aead40-9d01-4f7a-bb83-be70dd192b7b" TYPE="crypto_LUKS" PARTUUID="4bc8deb4-7ad9-524f-ada9-0ef0783c2704" According to [0], on has to use the UUID rather than the UUID_SUB; perhaps that's what is causing you problems if you used the UUID_SUB? I updated my (working) file system declaration from: (file-systems (cons* (file-system (mount-point "/") (device "/dev/mapper/cryptroot") (type "btrfs") (options "compress-force=zstd,space_cache=v2") (dependencies mapped-devices)) %base-file-systems)) to (file-systems (cons* (file-system (mount-point "/") (device (uuid "2e97fbbd-fa4e-4858-948b-b3a89278a39b" 'btrfs)) (type "btrfs") (options "compress-force=zstd,space_cache=v2") (dependencies mapped-devices)) %base-file-systems)) reconfigured and reboot. Granted, I don't currently mount a subvolumes on this machine. I do on a second one, I could try it there too if you're still blocked. > I'm looking at > https://wiki.archlinux.org/index.php/Btrfs#Mounting_subvolumes > and it seems like you either need a numberic ID or an absolute path, > not a relative one. > On my machine `findmnt` returns `subvol=/`. In Guix, you want to use the subvolume name (that's the 'subvol' option), not the subvolume ID, as Guix relies on the subvolume name to generate the GRUB configuration. This is explained in the manual and an error message with a hint should be displayed when attempting to use subvolumes with an ID for the root file system. HTH, Maxim [0] https://www.linux.com/training-tutorials/how-manage-btrfs-storage-pools-subvolumes-and-snapshots-linux-part-1/