From: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
To: guix-devel@gnu.org
Subject: Move /gnu/store to another filesystem
Date: Wed, 25 May 2022 18:56:23 +0200 [thread overview]
Message-ID: <87czg1mk77.fsf@gmail.com> (raw)
Hello,
I am running out of space on my 128GB SDD. It seems to be too small for
holding 2 months of store with regular updates. So I want to "transfer"
it to an interal HDD which is much larger and has a btrfs on it.
This is what I tried so far. I created a btrfs subvolume on my HDD and
called it gnu-store. I then booted from a usb-stick, and copied
/gnu/store/* directly into the subvolume. As a final preparation I moved
/gnu/store to /gnu/store-backup and created an empty /gnu/store folder. I finally
booted from a system which basically mounts gnu-store on /gnu/store (see
the definition below). Note that I ran "guix system reconfigure ..." before
doing the copy, so the stores are identical. It boots but
complains that there is "no such language scheme".
Maybe this portion of the system definition will make it clearer:
--8<---------------cut here---------------start------------->8---
(define %boot-fs
(file-system (device (file-system-label "boot-fs"))
(mount-point "/boot")
(type "ext2")))
(define %root-fs
(file-system (device (file-system-label "root-fs"))
(mount-point "/")
(type "ext3")))
(define %store-fs ;; <--- This is what I want to add.
(file-system (device (file-system-label "storage-fs"))
(mount-point mt-point)
(type "/gnu/store")
(options (string-append "subvol=" "gnu-store"))
(needed-for-boot? #t)
(dependencies %root-fs)))
(operating-system
[...]
(file-systems (append
(list %boot-fs %root-fs %store-fs)
%base-file-systems))
[...])
--8<---------------cut here---------------end--------------->8---
What am I doing wrong here? I though with this config root would be mounted first then the store
will be mounted on it. But this error seems to tell that something is
missing.
Anyway this is probably not the right way to do it. Simply coping
/gnu/store around looks a bit brutal.
I’d appreciate any kind of help :)
Théo
next reply other threads:[~2022-05-25 20:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 16:56 Théo Maxime Tyburn [this message]
2022-05-26 10:28 ` Move /gnu/store to another filesystem Giovanni Biscuolo
2022-05-26 10:44 ` Théo Maxime Tyburn
2022-05-26 16:24 ` Kaelyn
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czg1mk77.fsf@gmail.com \
--to=theo.tyburn@gmail.com \
--cc=guix-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).