You are not logged in.

#1 2013-03-27 10:35:20

arkindal
Member
From: 127.0.0.1
Registered: 2009-09-01
Posts: 37

Autofs won't automount

Hello everyone,
I followed the wiki for autofs step by step (minus the things I don't care about, I only need usb and cd/dvds to automount) and when I was done I still couldn't get it to actually automounting.
What could I do to see where the error is?

Offline

#2 2013-04-14 11:13:34

axper
Member
Registered: 2013-01-25
Posts: 115

Re: Autofs won't automount

*************EDIT: SOLVED**************
I had probably forgotten '1' at the end of sdb1, now my /etc/autofs/auto.misc looks like this:

flashb -fstype=auto,async,nodev,nosuid,umask=000,gid=disk   :/dev/sdb1

I also removed --timeout option in auto.master, and autofs is working fine now.
***************************************

I have exact same problem.

More info:
1. Flash drive has a 1gb ext4 partition and works perfectly elsewhere.

$ lsblk /dev/sdb
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb      8:16   1  954M  0 disk 
└─sdb1   8:17   1  953M  0 part
$ sudo fdisk -l
.............

Disk /dev/sdb: 1000 MB, 1000341504 bytes, 1953792 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00056ce1

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     1953791      975872   83  Linux

2. Modprobe'd autofs4, but doesn't show up in lsmod, is this normal?

$ modprobe autofs4 && lsmod | grep autofs4

3. Autofs config files:

/etc/autofs/auto.master

# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).

/media/autofs /etc/autofs/auto.misc --timeout=1

/etc/autofs/auto.misc

# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdb
cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
#floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl

/etc/conf.d/autofs

#localoptions='rsize=8192,wsize=8192'

# e.g. --timeout=60
daemonoptions=''

There is this line in /etc/nsswitch.conf

automount: files

4. Daemon looks ok

$ sudo systemctl status autofs
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled)
   Active: active (running) since Sun 2013-04-14 14:42:54 AMT; 28min ago
  Process: 2405 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /run/autofs.pid (code=exited, status=0/SUCCESS)
 Main PID: 2407 (automount)
   CGroup: name=systemd:/system/autofs.service
           └─2407 /usr/sbin/automount --pid-file /run/autofs.pid

Apr 14 14:42:54 work2 systemd[1]: Started Automounts filesystems on demand.

5. Permissions of /etc/autofs/auto.master /etc/autofs/auto.media /etc/autofs/auto.misc /etc/conf.d/autofs are all 644 ( -rw-r--r-- ).


Any help appreciated.

Last edited by axper (2013-04-24 18:56:18)

Offline

#3 2013-04-14 13:25:42

axper
Member
Registered: 2013-01-25
Posts: 115

Re: Autofs won't automount

*EDIT* See the post above for a solution that worked for me.

Ok even thunar automount does't work for me...
Opening thunar from terminal and plugging usb in results in this

$ thunar
thunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Could not detect the volume corresponding to the device.
thunar-volman: Could not detect the volume corresponding to the device.

Any help?

Last edited by axper (2013-04-24 18:57:02)

Offline

Board footer

Powered by FluxBB