unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Help with auto-mounting a specific file-system.
@ 2020-04-20  6:37 Raghav Gururajan
  2020-04-20  9:15 ` Pierre Neidhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Raghav Gururajan @ 2020-04-20  6:37 UTC (permalink / raw)
  To: help-guix

Hello Guix!

I wanted to make use of my memory card slot in my X200-T and decided to use it to store cloned git repos. I have placed a 32GB card, with formatted btrfs file-system, with label "repo". I wanted to auto-mount this file-system at ~/repo. So I used the following in 'file-systems' section of my config.scm.

  (file-systems (append
                 (list (file-system
                         (device (uuid "1234-ABCD"))
                         (mount-point "/")
                         (type "btrfs")
                         (needed-for-boot? #t)
                         (dependencies mapped-devices))
                       (file-system
                         (device (file-system-label "repo"))
                         (mount-point "/home/user/repo")
                         (type "btrfs")
                         (needed-for-boot? #f)))
                 %base-file-systems))

Now, the setup work and the file-system 'repo' gets auto-mounted at ~/repo. But I am facing two issues:

[1] ~/repo becomes 'root protected' and stays like that.
[2] Despite declaring `(needed-for-boot? #f)`, system does not boot when the memory card is absent/unplugged.

How do I overcome these issues?

Thank you!

Regards,
RG.

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

end of thread, other threads:[~2020-04-20 19:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  6:37 Help with auto-mounting a specific file-system Raghav Gururajan
2020-04-20  9:15 ` Pierre Neidhardt
2020-04-20  9:22 ` Raghav Gururajan
2020-04-20  9:29   ` Pierre Neidhardt
2020-04-20  9:42   ` Raghav Gururajan
2020-04-20  9:52     ` Pierre Neidhardt
2020-04-20 13:39       ` Raghav Gururajan
2020-04-20 14:32         ` Pierre Neidhardt
2020-04-20 19:45 ` Michael Rohleder

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