[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with auto-mounting a specific file-system.
From: |
Raghav Gururajan |
Subject: |
Help with auto-mounting a specific file-system. |
Date: |
Mon, 20 Apr 2020 06:37:23 +0000 |
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.
- Help with auto-mounting a specific file-system.,
Raghav Gururajan <=
Re: Help with auto-mounting a specific file-system., Michael Rohleder, 2020/04/20