From: Kaelyn <kaelyn.alexi@protonmail.com>
To: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
Cc: Giovanni Biscuolo <g@xelera.eu>, guix-devel@gnu.org
Subject: Re: Move /gnu/store to another filesystem
Date: Thu, 26 May 2022 16:24:59 +0000 [thread overview]
Message-ID: <KfyWiGdCJ4NgXroxDW1tSmSKgV4Yh0HPELJwqgJnEfRmMx2_fw8oRAdl7DWKAnhEZwniO4HDyF5NMfly_9eVq5dnSn-giloPnmpvHYruPRk=@protonmail.com> (raw)
In-Reply-To: <874k1cmuyl.fsf@gmail.com>
Hi Théo,
n Thursday, May 26th, 2022 at 3:44 AM, Théo Maxime Tyburn <theo.tyburn@gmail.com> 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, but my systems have / and /gnu/store as separate btrfs subvolumes in the same 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=zstd,subvol=@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=zstd,subvol=@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’t see what could have gone wrong. I’ll try it agin.
>
> > Happy hacking! Gio'
>
>
> Tks!
next prev parent reply other threads:[~2022-05-26 16:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 16:56 Move /gnu/store to another filesystem Théo Maxime Tyburn
2022-05-26 10:28 ` Giovanni Biscuolo
2022-05-26 10:44 ` Théo Maxime Tyburn
2022-05-26 16:24 ` Kaelyn [this message]
2022-05-26 19:48 ` Théo Maxime Tyburn
2022-05-27 5:56 ` Giovanni Biscuolo
2022-05-27 9:34 ` Théo Maxime Tyburn
2022-05-27 11:08 ` Théo Maxime Tyburn
2022-05-27 12:48 ` Giovanni Biscuolo
2022-05-27 14:12 ` Théo Maxime Tyburn
2022-05-27 15:55 ` Giovanni Biscuolo
2022-05-27 16:37 ` Théo Maxime Tyburn
2022-05-27 11:28 ` Tobias Geerinckx-Rice
2022-05-27 11:37 ` Tobias Geerinckx-Rice
2022-05-27 14:09 ` Théo Maxime Tyburn
2022-05-27 13:56 ` Théo Maxime Tyburn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='KfyWiGdCJ4NgXroxDW1tSmSKgV4Yh0HPELJwqgJnEfRmMx2_fw8oRAdl7DWKAnhEZwniO4HDyF5NMfly_9eVq5dnSn-giloPnmpvHYruPRk=@protonmail.com' \
--to=kaelyn.alexi@protonmail.com \
--cc=g@xelera.eu \
--cc=guix-devel@gnu.org \
--cc=theo.tyburn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.