You are not logged in.
Pages: 1
Hi everyone,
I'm having issues to mount a ntfs disk with an autofs rule.
here is the slave file:
# cat /etc/autofs/auto.windows
# automount second disk which contains windows data
/windows -fstype=ntfs-3g,uid=n0t,gid=n0t,nofail,users :/dev/sdb2
and the concerning line in `auto.master`:
# cat /etc/autofs/auto.master
[...]
/- /etc/autofs/auto.windows
[...]
This is what I get from systemd:
Aug 30 15:47:51 n0tlocal systemd[1]: Stopping Automounts filesystems on demand...
-- Subject: Unit autofs.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit autofs.service has begun shutting down.
Aug 30 15:47:52 n0tlocal systemd[1]: Starting Automounts filesystems on demand...
-- Subject: Unit autofs.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit autofs.service has begun starting up.
Aug 30 15:47:52 n0tlocal automount[2359]: do_umount_autofs_direct: couldn't get ioctl fd for direct mount /windows
-- Subject: Unit autofs.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit autofs.service has finished starting up.
--
-- The start-up result is done.
However, when I try it manually, running this command :
# mount -t ntfs-3g /dev/sdb2 /mnt
I've got a working well rw file system.
What I'm doing wrong? Thanks
Offline
Same happens to me.
Only workaround found so far is getting rid of mount options and leave it as:
[/etc/autofs/auto.windows]
/windows -fstype=ntfs-3g :/dev/sda1
Offline
Thanks to bring your help. However, this doesn't seems to work for me.
Also, it still works perfectly with the
mount
command in root.
Offline
I am not sure if this will help, but have you tried systemd's automount feature? It may work for your use cases.
Last edited by Pse (2014-09-08 15:31:05)
Offline
do you refer to the fstab file?
Offline
Pages: 1