unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Raghav Gururajan" <raghavgururajan@disroot.org>
To: help-guix@gnu.org
Subject: Help with auto-mounting a specific file-system.
Date: Mon, 20 Apr 2020 06:37:23 +0000	[thread overview]
Message-ID: <2638304b56ed648dd780625b49e3bb76@disroot.org> (raw)

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.

             reply	other threads:[~2020-04-20  6:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-20  6:37 Raghav Gururajan [this message]
2020-04-20  9:15 ` Help with auto-mounting a specific file-system 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

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=2638304b56ed648dd780625b49e3bb76@disroot.org \
    --to=raghavgururajan@disroot.org \
    --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.
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).