help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Always mount external disk


From: Marek Paśnikowski
Subject: Re: Always mount external disk
Date: Tue, 20 Aug 2024 12:17:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Caleb Herbert <csh@bluehome.net> writes:

> Hi Guix,
>
> I'd like to always mount my main data disk, HUSKY, to my server
> Farnsworth.  However, I would like for the system to not complain if
> HUSKY is not plugged in.
>
> I presume (from discussing it in #guix) that "non-boot-file-system-
> service" should be used for this task.  How do I use it?  I see no
> examples or documentation in the Manual or Cookbook.
>
> I was definitely told that this was not correct:
>
> (file-system (mount-point "/mnt/HUSKY")
>              (device (file-system-label "HUSKY"))
>              (type "xfs")
>              (create-mount-point? #t))
>
> Thanks,

It is in [the Manual][1]:

(file-system ...
             (mount-may-fail? #t))

Keep it simple — test first and see if it satisfies you.  Add more
options only when needed.  Software gets complicated really quickly.

[1]: https://guix.gnu.org/manual/en/html_node/File-Systems.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]