From owner-freebsd-questions@freebsd.org Mon Oct 9 16:15:44 2017 Return-Path: Delivered-To: freebsd-questions@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 9B433E34FEB for ; Mon, 9 Oct 2017 16:15:44 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x22a.google.com (mail-ua0-x22a.google.com [IPv6:2607:f8b0:400c:c08::22a]) (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 0D1DC634D3 for ; Mon, 9 Oct 2017 16:15:43 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x22a.google.com with SMTP id 47so14695732uas.8 for ; Mon, 09 Oct 2017 09:15:43 -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=hErvtjF1LhvV1OEwB9upW8JrwY0l3/RrGEsU1Et2Tm0=; b=tQOyQtX7Rta98m9QXibFpY3ueposriNpfi2MA9UyIB/sI8/53G28UNyala//iaywvK nz9UjvgHqAvY5vsKIlZPqG04x6Op5/T/mp24/zJAsjU5rboyYyCyV3Y9K7gGFToKnbBq VxS1ZadIDCIbNnxSlimDCyxixk41M6fpHZiDkwpjmmfeBMxspTnGtGg090YIbgzhYNi+ ptboWATiZn+XZK3wxXXb53b5vown0pDwXqA7EjHwViXvy7mPW2dIr3VJIErV0NODhQ4o hO/eyTxyA1Ccgf0z8KnQtfJhfVCSvaidcAljNBMzJo+oZDZmJiAcphAJmZR4RZn+BOqQ 09Bg== 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=hErvtjF1LhvV1OEwB9upW8JrwY0l3/RrGEsU1Et2Tm0=; b=b4dAVz4PJ1Fz8NOhmbjivcNEuSFmBy/tU2wo0qgY8VAXloAoM6G2k2BC7wByTXoihy gY+VGwVwaqPe6T2tx17I1hmPLIAolWLFu6OEjQPRw2OhInJGaBtB7sz+npHXhUiZ45NN vC7/MuHmoLxEbLqljkPjLhSmUOAI+b9tNX4eiGWlecAza7gOOyREYjZrRnDOHsEMUvhl WI1c/f4MiubA/RrFugjrhx1NY1ZcD/QboxL+nmXWJx7CbOI+COLlnbAi1AD1xeZWzCea goIJ1mNwVazemfDAk39noF4iYHQCZqgSqSzS3KWTfVUVjnxE/wmmEMISUrH6EYoeY0Nj 0Qow== X-Gm-Message-State: AMCzsaXXiZl3OKLSFCLEC9CabgGHkhOZ2oeyLLcxgeS0XnQRBkUFQr+d 1Xhv0ZAiWHkUOY0LovNZkwyW+4Im6ubINrl+NmM= X-Google-Smtp-Source: AOwi7QDL3br1uS0GHRJoYq8Yl4TDhhspebl5fkYreUHB+hCf9lolfEJOgonA4Vm8yusObAXnnsTtXlOLFL5H7FeMoe8= X-Received: by 10.176.25.212 with SMTP id r20mr5830721uai.97.1507565742838; Mon, 09 Oct 2017 09:15:42 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Mon, 9 Oct 2017 09:15:22 -0700 (PDT) In-Reply-To: <20171009113604.3a6d2455@gecko4> References: <20171009113604.3a6d2455@gecko4> From: CeDeROM Date: Mon, 9 Oct 2017 18:15:22 +0200 X-Google-Sender-Auth: Wnbqflo9pSzOYtWiEP-QqKYVDOc Message-ID: Subject: Re: automount usb msdosfs no partition table To: mfv@bway.net Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 16:15:45 -0000 On Mon, Oct 9, 2017 at 5:36 PM, mfv via freebsd-questions wrote: >> On Mon, 2017-10-09 at 01:10 Tomasz CEDRO wrote: >>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? >>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? >>Any hints appreciated :-) >>Tomek > Hello Tomek, > The port/package, sysutils/automount, is able to do what you want. It > automatically mounts MSDOS or gpart partioned USB thumb drives. Alas, > it does not automatically mount CD/DVDs which require command line > intervention. > My configuration file (/usr/local/etc/automount.conf) differs from the > sample as follow: > MNTPREFIX=/media > USERUMOUNT=YES > ATIME=NO > REMOVEDIRS=YES > USER= > NOTIFY=YES > A devd configuration file that was installed by pkg was not changed. > It is located at /usr/local/etc/devd/automount_devd.conf. > My GUI desktop of choice is XFCE4 which has a plugin that recognises > automatically mounted devices. It is possible to use this plugin to > umount a USB thumb drive OR use the command line in a virtual terminal > to umount in the traditional way. > Cheers ... > Marek Hello Marek! Czesc czolem :-) :-) Thank you for your feedback! I will compare the ports configuration with default system automount package.. maybe I will discover a way to auto-mount drives with no partition table which unforunately happens quite often for FAT drives.. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info