You are not logged in.

#1 2014-08-30 16:29:47

tinh
Member
Registered: 2012-12-16
Posts: 34

autofs and ntfs-3g partition

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

#2 2014-09-05 16:16:54

valtuarte
Member
Registered: 2014-09-05
Posts: 1

Re: autofs and ntfs-3g partition

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

#3 2014-09-08 08:22:28

tinh
Member
Registered: 2012-12-16
Posts: 34

Re: autofs and ntfs-3g partition

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

#4 2014-09-08 15:30:53

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: autofs and ntfs-3g partition

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

#5 2014-09-08 16:42:33

tinh
Member
Registered: 2012-12-16
Posts: 34

Re: autofs and ntfs-3g partition

do you refer to the fstab file?

Offline

Board footer

Powered by FluxBB