From owner-freebsd-questions@FreeBSD.ORG Tue Feb 26 19:22:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E61B0106566B for ; Tue, 26 Feb 2008 19:22:25 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 9ECEC13C4F3 for ; Tue, 26 Feb 2008 19:22:25 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (p54A7F988.dip.t-dialin.net [84.167.249.136]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 6C25140548E; Tue, 26 Feb 2008 20:22:24 +0100 (CET) Message-ID: <47C466EB.3040402@bsdforen.de> Date: Tue, 26 Feb 2008 20:22:19 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.9 (X11/20080205) MIME-Version: 1.0 To: a.j.werven@student.utwente.nl References: <000301c87475$e2cc61e0$0200a8c0@satellite> <20080221153446.D1306@wojtek.tensor.gdynia.pl> <00a301c8788c$300cf810$0200a8c0@satellite> <47C4366B.5010506@bsdforen.de> <47C454F5.6070502@student.utwente.nl> In-Reply-To: <47C454F5.6070502@student.utwente.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: mount_msdosfs options with mp3 player X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 19:22:26 -0000 Alphons "Fonz" van Werven wrote: > Dominic Fandrey wrote: > >> I suggest you simply label it (using a windows machine I suppose) and >> use the GEOM label as a fixed mountpoint. This would show up as >> /dev/msdosfs/mp3player. > > Sounds like a very good suggestion. If you have several such devices, e.g. > MP3 players, USB sticks, cardreaders, ZIP disks (anyone remember those?) > etc., this would be an easy way to manage them consistently. > > I never bothered with automounting though, so I couldn't comment on that. > > Alphons > I don't care about automounting either. But I find GEOM labels really useful. I use them to be able to juggle my hard disks and be able to boot my systems, no matter the device number or type (e.g. ata or usb). I start every label with a unique identifier for the disk it's on. This way I can easily create rules in my devfs.rules that allow user mounts, but protect the system partitions: add path 'ufs/*' mode 0660 group operator add path 'ufs/2*' mode 0600 add path 'label/*' mode 0660 group operator add path 'label/2*' mode 0600 2 is the identifier for the disk I'm using (one day I'll have to use 2 digits and relabel everything... when that time has come I'll just switch to 3 digit numbering). So all members of operator have full access to ufs partitions, execept for the one the system resides on. The label type is for swap devices. It's what appears when 'glabel create' is used instead of filesystem native labels. Since swap devices don't have native labeling they end up there.