all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Instantiating the OS declaration after a small change
@ 2018-04-05 15:58 Arnaud B
  2018-04-06  8:26 ` Ludovic Courtès
  2018-04-06  8:29 ` Ricardo Wurmus
  0 siblings, 2 replies; 4+ messages in thread
From: Arnaud B @ 2018-04-05 15:58 UTC (permalink / raw)
  To: help-guix

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

Hello everyone,

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.

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 ?

Many thanks in advance,

Arnaud

[-- Attachment #2: Type: text/html, Size: 1525 bytes --]

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

* Re: Instantiating the OS declaration after a small change
  2018-04-05 15:58 Instantiating the OS declaration after a small change Arnaud B
@ 2018-04-06  8:26 ` Ludovic Courtès
  2018-04-06 13:03   ` Arnaud B
  2018-04-06  8:29 ` Ricardo Wurmus
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2018-04-06  8:26 UTC (permalink / raw)
  To: Arnaud B; +Cc: help-guix

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’.

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

* Re: Instantiating the OS declaration after a small change
  2018-04-05 15:58 Instantiating the OS declaration after a small change Arnaud B
  2018-04-06  8:26 ` Ludovic Courtès
@ 2018-04-06  8:29 ` Ricardo Wurmus
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2018-04-06  8:29 UTC (permalink / raw)
  To: Arnaud B; +Cc: help-guix


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

> 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 ?

In principle “guix system reconfigure” should not be a lengthy process
if that small change is the only change.  If you upgrade Guix, though,
in addition to making that change, things might take longer.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

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

* Re: Instantiating the OS declaration after a small change
  2018-04-06  8:26 ` Ludovic Courtès
@ 2018-04-06 13:03   ` Arnaud B
  0 siblings, 0 replies; 4+ messages in thread
From: Arnaud B @ 2018-04-06 13:03 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

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

Hello Ludo

Thanks for helping me.
Actually I had come up with that declaration :
  (file-systems (cons* (file-system
                        (device "my-root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
              (file-system
                        (device "backup3")
                        (title 'label)    ;; ntfs uuid requires conversion
                        (mount-point "/home/arnaud/backup3")
                        (needed-for-boot? #f)
                        (mount? #t)
                        (flags '())   ;; options such as ro come here
                        (type "ntfs-3g"))
                      %base-file-systems))
but reading the sources in guix/file-systems.scm, I see that is not an
option in fact. But I see that besides ext and btrfs there is now support
for luks encrypted partitions in the way, and that is great news for my
other disks.

So, for the ntfs one, I guess I'll have to manually mount / unmount it as
you explained. Actually, after installing the ntfs-3g package, it worked
with this :
sudo ntfs-3g -o uid=1000 -o gid=998 /dev/sdb1 /home/arnaud/backup3/
The uid / gid bits were necessary to get read-write access ; it worked
flawlessly in console but not in Gnome's file manager for some reason, but
that didn't bother me as I rely on emacs dired  instead.

As for the GUI, yes I'm using Gnome at the moment but I intend to go back
to my usual stumpwm, as I have not managed to have guile-wm running (but on
paper that would be awesome - without the capital of course !)

Cheers

Arnaud


2018-04-06 10:26 GMT+02:00 Ludovic Courtès <ludo@gnu.org>:

> 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’.
>

[-- Attachment #2: Type: text/html, Size: 5093 bytes --]

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

end of thread, other threads:[~2018-04-06 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 15:58 Instantiating the OS declaration after a small change Arnaud B
2018-04-06  8:26 ` Ludovic Courtès
2018-04-06 13:03   ` Arnaud B
2018-04-06  8:29 ` Ricardo Wurmus

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.