From owner-freebsd-questions@freebsd.org Fri Feb 12 19:16:37 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D015752D179 for ; Fri, 12 Feb 2021 19:16:37 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dcjsc6m2cz3mj3 for ; Fri, 12 Feb 2021 19:16:36 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x334.google.com with SMTP id u14so598133wmq.4 for ; Fri, 12 Feb 2021 11:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=bw323HkznuuOK3ZbiREQaug9do3LMe5CBR6AXEPCess=; b=K47jKfbfbQkW/xWLGU8ZgIGtSoBF4pWxrDlyn2FxZFn/zStH4XxeEitBgQF8dcrgiR CqJLaTY9qEor/RhPD1KDh0rHUfyysTe+u4cG5d+FsTBRF+mYEuYSX3TiPzkIEXq5apkA AgF5GYxXRXg4i+rRrpzZLGZJU7AjiIQUbxgt/SKLDrsD2/pGkbDGW9nrRLbQfZyiNv5q Za8RpGQ/jZkuyl2QA8ocQ5QZ4jJJgiIYmVqDpKL/dZGnzVv61DXcKcUMzJnKqsyI6B0y fPqNxbnxZlZx8d6+O/w3fuxJEAEhwJV53NHhUHS/OvjB5fh8fAuqZqjRwZcx8I5tOkVh zn6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=bw323HkznuuOK3ZbiREQaug9do3LMe5CBR6AXEPCess=; b=At5qvWv0j19qCToGbwW7MjUXDdp2TyoNHkSt0rZohFu6WdMFTlY5cdtsw6e92qps+r y5TpCUtGq6umC3EgGbqYLhNQGglKZIP0PgcWYVvhYrEss5D4NnBUF6bKUiYTLPT65Q4s e2tzqmOBEy+8po3pDzB3KssRjVqLwITFfDTQnlaUyYmkoXRv3JenVmWIijnNev1KAn6A IoQ2wq24Zs0osTzEvMLMYNO32E7uLVnBHn1xwtKWZoSm+TEEeRF3UY0+LAK+Q2SkBPuJ pwKo6DbmlUryQOHLYL3v3L3r4E81H1mZuDUgLlf4OvPPnnDe8RkdDZS5OpY8kafbORKD RxvQ== X-Gm-Message-State: AOAM530rx+MTzzbe+u7ucsEeFAr62T/ebp7Q69PnAICmglgZlC+hGY7E WzNhV8sJev43hDxuxO3s8YvjblDVOwMz/g== X-Google-Smtp-Source: ABdhPJzBWjmcE4ORGWyFi09cwnKHXXStzSAuZBOX26ST9hLhvvssCcWz2GCU1kla53d3FvKI9FY/Qw== X-Received: by 2002:a1c:7e15:: with SMTP id z21mr4020726wmc.27.1613157394720; Fri, 12 Feb 2021 11:16:34 -0800 (PST) Received: from [192.168.1.14] (88-105-96-80.dynamic.dsl.as9105.com. [88.105.96.80]) by smtp.gmail.com with ESMTPSA id f8sm11283113wrp.65.2021.02.12.11.16.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Feb 2021 11:16:34 -0800 (PST) Subject: Re: automount documentation To: freebsd-questions@freebsd.org References: From: Graham Perrin Message-ID: <6b617ae7-861d-eb33-dbd1-6ec734e3e53f@gmail.com> Date: Fri, 12 Feb 2021 19:16:33 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4Dcjsc6m2cz3mj3 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=K47jKfbf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[88.105.96.80:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::334:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::334:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::334:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2021 19:16:37 -0000 On 12/02/2021 08:04, Jacques Foucry wrote: > Le jeudi 11 févr. 2021 à 21:08:48 (-0800), Kevin Oberman à écrit: > Hello, > >> Is there documentation somewhereon setting up automount/automountd? The >> only one I found is an old Forums post on a rather old version of automount >> from when it was a port.. Beyond that, the man pages are useful, but not >> really what I was hoping for. I searched and found no mention of automount >> in the Handbook at all. >> >> I'm pretty sure that I had a tutorial a year ago when I tried setting up >> automount, but I really didn't need it then. Now it would be extremely >> handy. > > Have seen this: https://vermaden.wordpress.com/2018/10/11/freebsd-desktop-part-17-automount-removable-media/ > I recently edited my /etc/rc.conf to include these lines: # enable autofs(8), sysutils/automount or sysutils/dsbmd -- no more than one # autofs_enable="NO" # dsbmd_enable="NO" I'm currently experimenting with sysutils/automount (not to be confused with the automount feature that's integral to FreeBSD) on FreeBSD 14.0-CURRENT. As far as I can tell it works, but it's not entirely compatible with the Removable Devices feature of KDE Plasma. In the example below, a Dolphin window to the file system opened automatically shortly after connecting the USB drive: % tail -f -n 0 /var/log/messages Feb 12 19:07:24 mowa219-gjp4-8570p kernel: ugen0.8: at usbus0 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1 on uhub1 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1: on usbus0 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1:  SCSI over Bulk-Only; quirks = 0xc100 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: umass1:4:1: Attached to scbus4 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1 at umass-sim1 bus 1 scbus4 target 0 lun 0 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: Removable Direct Access SCSI device Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: Serial Number 070B29D2DF235960 Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: 40.000MB/s transfers Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: 3815MB (7814304 512 byte sectors) Feb 12 19:07:24 mowa219-gjp4-8570p kernel: da1: quirks=0x2 ^C % lsblk da1 DEVICE         MAJ:MIN SIZE TYPE LABEL MOUNT da1              2:33  3.7G GPT - -            -:-    47K -                                     - -   da1p1          2:34  3.7G ms-basic-data gpt/Basic /media/da1p1            -:-   1.5M -                                     - - % pkg info --list sysutils/automount automount-1.7.2:         /usr/local/etc/automount.conf.sample         /usr/local/etc/devd/automount_devd.conf         /usr/local/sbin/automount         /usr/local/share/licenses/automount-1.7.2/BSD2CLAUSE         /usr/local/share/licenses/automount-1.7.2/LICENSE         /usr/local/share/licenses/automount-1.7.2/catalog.mk % cat /usr/local/etc/automount.conf USERUMOUNT=YES ATIME=NO REMOVEDIRS=YES FM="dolphin" USER=grahamperrin %