all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Arnaud B <arnaud.beaudhuin@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Instantiating the OS declaration after a small change
Date: Fri, 06 Apr 2018 10:26:00 +0200	[thread overview]
Message-ID: <87woxk212f.fsf@gnu.org> (raw)
In-Reply-To: <CAAD90k81ywdP8rU--5JCEFo0rWceurHTGbs8TnyFXj4m21HyVQ@mail.gmail.com> (Arnaud B.'s message of "Thu, 5 Apr 2018 17:58:18 +0200")

Hello,

Arnaud B <arnaud.beaudhuin@gmail.com> skribis:

> Context :
> In the process of trying to build packages, through the use of guix
> environments, I need more space on my home partition.
> To do so, deleting former generations followed by 'guix gc' was not enough,
> and I need to move things to my external ntfs drive (please don't ask why I
> have to use that file system...).
> As I'm regularly going to mount it, I added a file-system declaration in my
> config.scm.

OK.

> Question :
> Do I have to apply 'guix system reconfigure', a lenghty process (on my
> computer at least) for such a small change, especially if I did not write
> it correctly, or is there another possibility ?  I actually just want to
> test that file system declaration.
> From 6.2.13 of the manual, I'm thinking about 'guix system build'. Or could
> I do it temporarily in another scm file ?

I have a similar use case: an external HDD that I plug in from time to
time.

What I do is declare it as not being automatically mounted on startup:

     (file-system
       (title 'uuid)
       (device (uuid "eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee"))
       (mount-point "/mnt/disk")
       (type "ext3")
       (mount? #f))

This adds an entry to /etc/fstab so when I plug it in, I can simply time
“sudo mount /mnt/disk”.

Now, if you use GNOME or similar, the udisks service and its friends are
support to automatically mount partitions from removable storage.

HTH,
Ludo’.

  reply	other threads:[~2018-04-06  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 15:58 Instantiating the OS declaration after a small change Arnaud B
2018-04-06  8:26 ` Ludovic Courtès [this message]
2018-04-06 13:03   ` Arnaud B
2018-04-06  8:29 ` Ricardo Wurmus

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=87woxk212f.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=arnaud.beaudhuin@gmail.com \
    --cc=help-guix@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 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.