From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YAruJPF1YGHtJQAAgWs5BA (envelope-from ) for ; Fri, 08 Oct 2021 18:46:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iD22H/F1YGHzCQAAbx9fmQ (envelope-from ) for ; Fri, 08 Oct 2021 16:46:41 +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 EA7B92EF63 for ; Fri, 8 Oct 2021 18:46:40 +0200 (CEST) Received: from localhost ([::1]:38380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYt16-0002d4-0o for larch@yhetil.org; Fri, 08 Oct 2021 12:46:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYt0e-0002cp-1V for help-guix@gnu.org; Fri, 08 Oct 2021 12:46:12 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:60432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYt0b-000549-61 for help-guix@gnu.org; Fri, 08 Oct 2021 12:46:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=rMpmAhdyOEsOK pPpHoCrrBmM8oWoRrmvZQpwo0i6pf0=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=d2dP3KBwM+tRppuTodtfUcN1FdhmjG1fvy8bDV tQlhmhTgE6EpaUT48CE4WWYpESbUBWbhSgaP0xkIhBuoAMDwuzjKFBhRjuWlRxHehlkbZQ ZvRNiADcPoY4GBX0rfdCGi/FrrGcVw0ZTtbDaz2v7YIoBE3WC330H4QaE0HnvPBUy4dPPL BsFN6di3FE1QisMhrYCJT+QsiNIi0HYIvFCMgzE+cySj5EXCXtAgip8eQaZJWQjars8Vl1 fu2YHydrIE2oowkJ3M6UzSkXm1Oj5W7RZgX7W8lwGK+d80zaMlZtpbbl9mSTUFk0WdORdm I9/3esKjG4DRzDph/R0OMuFQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 5a1f5463 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 8 Oct 2021 16:46:03 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: =?utf-8?Q?Th=C3=A9o?= Tyburn Cc: help-guix@gnu.org Subject: Mounting ntfs-3g file systems at Guix System boot time Date: Fri, 08 Oct 2021 18:24:07 +0200 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <87sfxbqxbn.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-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: , 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=1633711601; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rMpmAhdyOEsOKpPpHoCrrBmM8oWoRrmvZQpwo0i6pf0=; b=R/hzRFyV+cWzYqd8LTdNwCj9/BnfN677MXLz3tC6MUtFrOmAsDCk6HMoMdQT1ICX9+EBYy RrRZjSLdRBpc97M4k5baymQmSXu9st9e03CkHd2vFAkHiRN7CxjVXew+6/beRzHQ6nOkPs PnsGDdg99lOEsCARv6YJDn2a89ll5/PO5p01bc9yFV3MklhzNWPaiTEJEViX53OrFUScu4 CbPKm4N6hzcFEGnqhnBoKadBYemMMdisn0Tj1rcDy7yVOCwqolt4npPMT+ORwW8fbyuj5x edEqrKn15Q50VoZq6vuRbP9CRu3aw0OQbCoB7MpDGedtJWdUyVIHzNjdjU+KNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633711601; a=rsa-sha256; cv=none; b=av9fcQZcu1uaSN1LHMvHjdJV8K9N2wTj50+KqjNA5HddHua896UpsnEHdiCTN3Bu23dl0t 1iFk5XlJDD7HShloW5eHMQtJOnObvYat1hadYuYcwbTP5IVaPUoPs5Io3L5mAADzK28gzQ 4jHbxwhDtzeBybrI+U2KpnPxNLgeziPYbnR3ZjumPKeEs6zWh2IvAudLvVsg2awSj8z8eB xwQZvbZboUKbzHwl40vIW1d1BmGA9p0IJ9saNXkGYKlzKpuISloWm6y/Rz9UsjIsBDUsiZ KEeZ7l93OXex2GYg2rwqP8dJq26VgfGSr66UNhZz6UNOqcDoLUY3binnr4YLJQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=d2dP3KBw; 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: -3.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=d2dP3KBw; dmarc=pass (policy=reject) header.from=tobias.gr; 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: EA7B92EF63 X-Spam-Score: -3.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: +7DZ3T15uLwY --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Th=C3=A9o, Th=C3=A9o Tyburn =E5=86=99=E9=81=93=EF=BC=9A > Hi :) Welcome! > From what I found here > https://wiki.archlinux.org/title/Udisks#NTFS_mount_failing > the problem might come from the fact that the ntfs used is that=20 > from the kernel > and not the version from ntfs-3g. They are correct. Guix System doesn't currently support auto-mounting anything with=20 ntfs-3g from the initrd (and maybe at all? I didn't check). > This might also be linked to another problem : notice I add the=20 > 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=20 it needs to be cleaned up before I can push it. I'll try to do so=20 this weekend but it's a busy one. Until then, (check? #f) for=20 NTFS is perfectly fine. Maybe it should even become the default. > 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=20 simply add it to the existing per-file-system logic in (gnu system=20 initrd). For actually mounting ntfs-3g file systems, things aren't so=20 simple, because we call the mount syscall directly. This works=20 fine for =E2=80=98real=E2=80=99 file systems supported by the kernel, but i= t cuts=20 out the =E2=80=98mount helper=E2=80=99 workflow that things like ntfs-3g an= d FUSE=20 in general like to use. We'd have to add a quick hack for ntfs-3g or a general interface=20 for calling mount helper binaries, which will take a bit more=20 thought and time=E2=80=A6 > So the question is : how do I make make guix use the ntfs-3g=20 > package > in my operating system definition ? So for =E2=80=98use =3D=3D mounting at boot time=E2=80=99, I don't think th= is is=20 currently possible. > I looked a bit at the source but couldn't figure out how the=20 > 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=20 available in the initrd. > The decisive steps seem to happen in the "mount-file-system"=20 > define* > at the end of gnu/build/file-system.scm. > What I don't understand there is what "(mount source target type=20 > flags > options)" does, > because I don't find where (mount) is defined. Check out (guix build syscalls) :-) Aside: the coming ntfs3 (no relation despite the similar name)=20 driver promises to replace the old & slow ntfs-3g entirely, and=20 wouldn't suffer from this trouble. Of course a general plan to=20 mount other FUSE file systems at Guix boot would still be nice. Kind regards, T G-R [0]: http://lkml.iu.edu/hypermail/linux/kernel/2109.0/03094.html --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYWB1zA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15SoYBAPNNqE9aQ+b6AHNJbobgAGkpizdFlk5pjEOJVdPg d/7OAQDWwWJti585NfuUXaZ51hRZkJNmRHI0O2lcYAKSTLVhDA== =dwkE -----END PGP SIGNATURE----- --=-=-=--