From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QPHbKTCGYGFwRwAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 19:56:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eAOwJDCGYGGYagAAB5/wlQ (envelope-from ) for ; Fri, 08 Oct 2021 17:56:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20D59300F1 for ; Fri, 8 Oct 2021 19:56:00 +0200 (CEST) Received: from localhost ([::1]:49460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYu6A-0006fY-70 for larch@yhetil.org; Fri, 08 Oct 2021 13:55:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYu5s-0006fB-41 for help-guix@gnu.org; Fri, 08 Oct 2021 13:55:40 -0400 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:34593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYu5p-00078s-Qk for help-guix@gnu.org; Fri, 08 Oct 2021 13:55:39 -0400 Received: by mail-io1-xd34.google.com with SMTP id i189so3905223ioa.1 for ; Fri, 08 Oct 2021 10:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vr244F0Bb6ghmJiM+SmbsoLZ6QrEDEi+tOHaDV1m0ns=; b=Y2l+8t99ua3JWah1EBn3oC0shQ/epsXikZVGrjD/yy1yM8+o/auW3fODW2YKaw7F26 aW3QjwKcnjI3tV+BVZmtjuZhT/ScrtQUhYdKTrprmrJZNMC7zs0dsSIFCe76gqRZ11h7 8rc8+CqYUB8bTNSCaxq+okmL2Ud8LdNYE4mabb7x/W62xsf+isxDPkZnXB0u0Hl/pd0a A4DoaCd4PEkq8WkodGyAB6NzKLRv3or5oODOBXSMmQ64vgyyqLDJsDMV85XD+pphO+/q H4dQEp6W+fgrCHbNH3HGCmHi7UUBNKc8VKj0OZzGQfc314uvdusKidyNcMVqEWrOdUqk PbLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vr244F0Bb6ghmJiM+SmbsoLZ6QrEDEi+tOHaDV1m0ns=; b=tTXQXY/AQGNkKw/ZC9orNiB+ZKcP4uAkMzi7rUAvIL+edlbQnmvQiLGQw6inEqoxBg WOZHjUANFq2ZL/tr1sIVIyw29aWOztqkPfiTXD8hDG/gEv2B7qm7ppG8sRZ7QfTKZm+m 7LWQux6qMEkfEeLja4L5U39HyU952G83ugnR24AhIXOO7hk/GIAG80EFaodxYe2JAk0L d/hJu0kpPrYZ48GXZYcYCI9sdda0CqU6RYWSaU4QIvPCodwyCREgDpxfHiQiLV/k2Xb+ vGkPrSQrdvr+xjw85c7T6CsfZlvt8PH689IzVHlN1nE+Gr7uofqtHY4yzXQmgIGHMUv0 k6ag== X-Gm-Message-State: AOAM533Z84s8O/dflJmHzJSoh59/F1YWPaHa6hil2Ntxd16hs/lnna0b 6Lk6jUHog6qGGdzgqnqRVLDAAcOorf9B70JMEiE7c3Gs X-Google-Smtp-Source: ABdhPJylmH65HsVpAOujPq2xotufb2Uu77OtDvGODixebytHFYFXdWpB1krP9epFNcW/OZei2K8lIgagw6o3yE5pfvM= X-Received: by 2002:a6b:148d:: with SMTP id 135mr5974222iou.174.1633715736522; Fri, 08 Oct 2021 10:55:36 -0700 (PDT) MIME-Version: 1.0 References: <87sfxbqxbn.fsf@nckx> In-Reply-To: <87sfxbqxbn.fsf@nckx> From: =?UTF-8?B?VGjDqW8gVHlidXJu?= Date: Fri, 8 Oct 2021 17:55:25 +0000 Message-ID: Subject: Re: Mounting ntfs-3g file systems at Guix System boot time To: Tobias Geerinckx-Rice Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::d34; envelope-from=theo.tyburn@gmail.com; helo=mail-io1-xd34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633715760; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vr244F0Bb6ghmJiM+SmbsoLZ6QrEDEi+tOHaDV1m0ns=; b=gPzZMYQPP9PC8mXuy5vNuaNAppaZj3EQZs4s3WTfKq3F7czPqteKlt3zmw2q/7x+W4P2Jl SAwdodA/J2OINUXAQQVMJx6oV67yfyBZNrDIA1nl9+ExDUrVg8uqmKQY7KB868bxZWAcbD OpyUqNDsW7XEfXxlSndTImjRO8q+fGUs+1i7eTjd2tSs4KxV9ohP964zb66kjiFvctqVOO ubMWGpyZEDuIqFuCPXobvRpS2LO2KzN2IenxoRsVnN7wKZHpHNDM3dkufoegQaGm7zWq2v swcAOjmQz7W+1rGUMdNSqOWwS3a5EfBlmSZm+OLPZpCs4cAQj8+9U4MJtqFMgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633715760; a=rsa-sha256; cv=none; b=joF7dosUGkQrBtWbSP+UJnXr4eMkms8y9oJMkPMmed1tTDzD5iKxaQ4/gWiVW7bwAgSKeZ ie1zi3OFJ8og6NhP/BveImeS0xJwqYOnaM8zAfnMkNCXmXQ4eAmshCTN+hoT5zbaQ1uqoM 2H7E4aiRT8axiraDE/YqVoqkc9DsCHfIpdPRjFfd+pG5JMcEkx7EUGBf96PafyhCAiiNJq aqdzvCV2Xy7zeZZkuoXokeHwsPh1ObXjwA0xE2OfxdeY1e0ql8MSkeKnV3YhCtvcdtjGXD tjxk7dlv8l9Kb+tgHzoHZLhVbufSACwKrdoMqTWSy245Jtutpxa8/iyCZTZZUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y2l+8t99; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Y2l+8t99; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 20D59300F1 X-Spam-Score: -1.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: +P9LJCcaaX0m 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 =E2=80=98real=E2=80=99 file systems supported by the kernel, but= it cuts > out the =E2=80=98mount helper=E2=80=99 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=E2=80=A6 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 =E2=80=98use =3D=3D mounting at boot time=E2=80=99, 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