From owner-freebsd-stable@freebsd.org Wed Oct 11 10:20:39 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7BB1E27676; Wed, 11 Oct 2017 10:20:39 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-ua0-x22f.google.com (mail-ua0-x22f.google.com [IPv6:2607:f8b0:400c:c08::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B6F02E10; Wed, 11 Oct 2017 10:20:39 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-ua0-x22f.google.com with SMTP id l40so775289uah.2; Wed, 11 Oct 2017 03:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=YogWfiEdm6E51B+tKy5zDdYwcF04FrTdJjDwq23hMyc=; b=RcHH5bBo8WxgIQ37OjZybwL2fEK5a5BTTkPjM8hmdyCu1BuDhwsZDTvkZwMZT554Xc XrZpmVddqAscyVg54TwtcNGWNOKK0zh2AiJxGvL+J7xHGs+t4A1I3JvAaYOuRF4c7BDJ jHqG7mJuAxb10mDYqHVXqxmnEYpzqkYjC+moa5VUNGLWVwVVNlbMb9lQl67ZLTIKbIaf 5IQ+lFDaS7ez5LoMJ0DlGcmCEC9pVWAndFwUrQ8oBCxqofGWnaowpB8Q0s0MR5jbdT8y IeuUZgRMLzXDK1mnavB3zqlaSJ8Bz0ynWe52qcfvfWrtZMV/vW3LmqEsXB20WcpZema3 P8jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=YogWfiEdm6E51B+tKy5zDdYwcF04FrTdJjDwq23hMyc=; b=W9Hn6DZmt4dY3WEDbAOTUPvL+fetRP0IJ8uiT5q7sfrlWJ/sYwNBLn2ZqgvxO2sDHi o2IUOxaW1qpaBrJnBaPhJRAAKJ68mz34AOtVoRnmzQb7vWhNvjrxiwuSv8HYRCi8cyLw hYgg6G53H54qHITraoUJtzN1fYXTHwutZ52gvZNpcf0C0JiQmZMfxzZuNmbXW8/44SUo qn6UCLAGS4POJ1t3Z1RGF0qMxWGE7tP+k/Be76zRX/Fg4dOKyZu6c3RWpJjUW/TqWrex cdhyw9Z1Pe387sRwbTSBkIHfNRVBwcik1YynPxR3riUXH2wWY5A6ybvU0kRbTT7HV8bW 0yAg== X-Gm-Message-State: AMCzsaUu+iVkylGLbhvgAnLcWFBOdjQS5XbdA14+47f0S/7UBbX6z4/j iQEWVJuY4lzyhHqb6ttIzAD8paKpsYg5MuR8mEQr0A== X-Google-Smtp-Source: AOwi7QD1/9wuHOxxM9hQRn5l6whP58BheBBKYKSH5O40tJuBExOVyUFN0a1ljfeiv4B4qWAK4vsJYk56vI00iBI8K9E= X-Received: by 10.176.85.15 with SMTP id t15mr10768765uaa.172.1507717238498; Wed, 11 Oct 2017 03:20:38 -0700 (PDT) MIME-Version: 1.0 Sender: etnapierala@gmail.com Received: by 10.176.66.67 with HTTP; Wed, 11 Oct 2017 03:20:38 -0700 (PDT) In-Reply-To: References: From: Edward Napierala Date: Wed, 11 Oct 2017 11:20:38 +0100 X-Google-Sender-Auth: pB6DZLKMDZyHejsOTe5iTKj3q0w Message-ID: Subject: Re: automount usb msdosfs no partition table To: Tomasz CEDRO Cc: FreeBSD Questions Mailing List , FreeBSD Stable Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2017 10:20:39 -0000 2017-10-09 0:10 GMT+01:00 Tomasz CEDRO : > Hello world :-) > > I need to configure automount for a testing machine. It seems to work > fine, except for two issues: > > 1. Mount point does not disappear after device disappears, what makes > things harder to script when device is gone. automount -c does not > remove the mountpoint, only restarting the service does. It is a bug > or feature? > Bug, or perhaps a missing feature. No known workaround at this point, I'm afraid. > 2. Automounter does not mount USB Pendrive / MSDOSFS devices that does > not have a parition table. Some USB Drives does not have valid > partition table, they appear as /dev/da0 and can be mounted with > mount_msdosfs /dev/da0 /mnt, but they are not recognised by > automounter.. how can I make it work with such devices? > It should just work: [trasz@v2:~]% ll /media total 5 drwxr-xr-x 3 root wheel 512 Oct 6 15:38 . drwxr-xr-x 21 root wheel 1024 Oct 5 23:58 .. [trasz@v2:~]% doas mdconfig -s1g md0 trasz@v2:~]% doas newfs_msdos /dev/md0 newfs_msdos: cannot get number of sectors per track: Operation not supported newfs_msdos: cannot get number of heads: Operation not supported /dev/md0: 2096576 sectors in 65518 FAT16 clusters (16384 bytes/cluster) BytesPerSec=512 SecPerClust=32 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=256 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=2097152 [trasz@v2:~]% ll /media total 5 drwxr-xr-x 3 root wheel 512 Oct 6 15:38 . drwxr-xr-x 21 root wheel 1024 Oct 5 23:58 .. drwxr-xr-x 3 root wheel 512 Oct 10 06:50 md0 [trasz@v2:~]% With the pendrive plugged in, can you do "gpart show", "/etc/autofs/special_media" (as root), and paste the output?