unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Théo Tyburn" <theo.tyburn@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: Mounting ntfs-3g file systems at Guix System boot time
Date: Fri, 8 Oct 2021 17:55:25 +0000	[thread overview]
Message-ID: <CACcFj3mtpsBJVKZOmXLzy_ppKNKuPHYn8AUKjpyWrCXWbXt40w@mail.gmail.com> (raw)
In-Reply-To: <87sfxbqxbn.fsf@nckx>

Thank you for the swift and kind reply Tobias,

> Welcome!

Thanks!

> > This might also be linked to another problem : notice I add the
> > field
> > (check? #f).
> > Without it I got the error :
> > "ntfsfix : no such file or directory"
>
> Oops, that's a bug.  I have a static ntfsfix in my local tree but
> it needs to be cleaned up before I can push it.  I'll try to do so
> this weekend but it's a busy one.  Until then, (check? #f) for
> NTFS is perfectly fine.  Maybe it should even become the default.

Oh I see. Happy I could find one. Anyway there is no hurry.

> > I guess ntfsfix also comes bundled with ntfs-3g
> > so it would make sense that these two bugs have the same origin.
>
> Kind of, in the abstract, but also not really.  For ntfsfix we can
> simply add it to the existing per-file-system logic in (gnu system
> initrd).
>
> For actually mounting ntfs-3g file systems, things aren't so
> simple, because we call the mount syscall directly.  This works
> fine for ‘real’ file systems supported by the kernel, but it cuts
> out the ‘mount helper’ workflow that things like ntfs-3g and FUSE
> in general like to use.
>
> We'd have to add a quick hack for ntfs-3g or a general interface
> for calling mount helper binaries, which will take a bit more
> thought and time…

I see. I was thinking about something like that, but was not sure it
was possible.
I'll have a look at initrd source to try to follow along when this
interface gets put together. If this is not too advanced I could also
give a hand depending on my progress.

> > So the question is : how do I make make guix use the ntfs-3g
> > package
> > in my operating system definition ?
>
> So for ‘use == mounting at boot time’, I don't think this is
> currently possible.
>
> > I looked a bit at the source but couldn't figure out how the
> > command
> > (mount.ntfs or mount.ntfs-3g)
> > is selected depending on the fs type.
>
> So, nowhere.  We never call the mount binary and it's not
> available in the initrd.
>
> > The decisive steps seem to happen in the "mount-file-system"
> > define*
> > at the end of gnu/build/file-system.scm.
> > What I don't understand there is what "(mount source target type
> > flags
> > options)" does,
> > because I don't find where (mount) is defined.
>
> Check out (guix build syscalls) :-)

I'll study that!

> Aside: the coming ntfs3 (no relation despite the similar name)
> driver promises to replace the old & slow ntfs-3g entirely, and
> wouldn't suffer from this trouble.

That sounds promissing !

> Of course a general plan to
> mount other FUSE file systems at Guix boot would still be nice.

Yes that would still be really good to have. It was also difficult on
Debian to do this.

Kind regards,

TT


      reply	other threads:[~2021-10-08 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-08 15:24 Théo Tyburn
2021-10-08 16:24 ` Mounting ntfs-3g file systems at Guix System boot time Tobias Geerinckx-Rice
2021-10-08 17:55   ` Théo Tyburn [this message]

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=CACcFj3mtpsBJVKZOmXLzy_ppKNKuPHYn8AUKjpyWrCXWbXt40w@mail.gmail.com \
    --to=theo.tyburn@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /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).