unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* (no subject)
@ 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
  0 siblings, 1 reply; 3+ messages in thread
From: Théo Tyburn @ 2021-10-08 15:24 UTC (permalink / raw)
  To: help-guix

Hi :)

I'm trying to mount an internal hard drive with ntfs partition
automatically when I boot. So I added this to
file-systems in my operating-system definition :

(file-system
    (device "/dev/sdb1")
    (mount-point "/mnt/ihd")
    (type "ntfs")
    (check? #f))

By doing so the filesystem is owned by root and other users don't have
any permissions on it.

So based on what I found running "man mount" I tried adding one after
the other these options
(options "rw"), (options "defaults"), (options "guid=users,umask=000")

so for example I tried
(file-system
    (device "/dev/sdb1")
    (mount-point "/mnt/ihd")
    (type "ntfs")
    (options "rw")
    (check? #f))

but I always get the same error when I reboot after reconfiguring:
'ntfs: (device sdb1): parse_options(): Unrecognized mount option rw'

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 from the kernel
and not the version from ntfs-3g.
The first doens't seem to recognize mount options.

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"
I guess ntfsfix also comes bundled with ntfs-3g
so it would make sense that these two bugs have the same origin.

So the question is : how do I make make guix use the ntfs-3g package
in my operating system definition ?
Of course the package is available in the package list of the
operating system definition.

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.
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.
This is as far as my guile/geiser hacking level can take me for now.
If sommeone can explain me, I'd be gratefull !

Théo Tyburn


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-08 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).