all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Move /gnu/store to another filesystem
@ 2022-05-25 16:56 Théo Maxime Tyburn
  2022-05-26 10:28 ` Giovanni Biscuolo
  0 siblings, 1 reply; 16+ messages in thread
From: Théo Maxime Tyburn @ 2022-05-25 16:56 UTC (permalink / raw)
  To: guix-devel

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-05-27 16:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.