unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Tomáš Čech" <sleep_walker@gnu.org>
To: guix-devel@gnu.org
Subject: Re: Store on separate partition
Date: Fri, 26 Aug 2016 00:04:38 +0200	[thread overview]
Message-ID: <20160825220438.qbpqq3ihnpmgdhiz@venom> (raw)
In-Reply-To: <20160825143037.hor76u6kysexqlhk@venom>

[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]

On Thu, Aug 25, 2016 at 04:30:37PM +0200, Tomáš Čech wrote:
>On Wed, Aug 24, 2016 at 12:37:49PM +0200, Carlos Sánchez de La Lama wrote:
>>>>my (not very big) root partition is almost full, even after
>>>>garbage-collecting. I am trying to move the store to a separate
>>>>partition, but this is problematic as you need the store at boot time
>>>>for the system utilities (and to mount partitions, actually).
>>>
>>>I tried to do it recently but failed.  My understanding is that it's
>>>impossible, but I may be wrong.
>>
>>After giving it some more thinking, I also think this is not
>>possible. The kernel image itself is in the store (and must be, because
>>you can have several system generations, each using a different
>>kernel). Same with initrd images.
>>
>>I have finally moved the whole root to a bigger disk, not much different
>>to moving the store as root size (aside from the store) is rather small.
>
>I think it is impossible now but to achieve that you'd need only:
>
>1] to store /gnu/store on separate partition (so grub will find it with its --search)
>2] and have some bind mounts ready in initrd stage.
>
>It would be nice to have more flexibility in this area.

According to
https://www.gnu.org/software/guix/manual/guix.html#File-Systems it
seems that 'bind-mount' is supported flag so together with
'needed-for-boot?' it should be doable.

normal mount
/dev/sdX --> /mnt/store-partition

bind mount
/mnt/store-partition/gnu --> /gnu

grub should find your kernel and initrd with --search

S_W

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-08-25 22:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24  7:06 Store on separate partition Carlos Sánchez de La Lama
2016-08-24  7:35 ` Vincent Legoll
2016-08-24  8:18 ` Alex Kost
2016-08-24 10:37   ` Carlos Sánchez de La Lama
2016-08-25 14:30     ` Tomáš Čech
2016-08-25 22:04       ` Tomáš Čech [this message]
2016-08-29 16:15   ` Ludovic Courtès
2016-08-31 12:48     ` Carlos Sánchez de La Lama
2016-08-31 21:21       ` Ludovic Courtès
2016-09-01  4:34         ` John Darrington
2016-09-01  6:35           ` Vincent Legoll

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=20160825220438.qbpqq3ihnpmgdhiz@venom \
    --to=sleep_walker@gnu.org \
    --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).