From owner-freebsd-questions@FreeBSD.ORG Thu Jun 7 01:57:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D84D16A400 for ; Thu, 7 Jun 2007 01:57:13 +0000 (UTC) (envelope-from ajm91qw@sbcglobal.net) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.freebsd.org (Postfix) with SMTP id 04D1513C43E for ; Thu, 7 Jun 2007 01:57:12 +0000 (UTC) (envelope-from ajm91qw@sbcglobal.net) Received: (qmail 21689 invoked from network); 7 Jun 2007 01:57:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Date:From:To:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=5RHDnMbHCza9Jyk1BRkqIn+kF8QJHJl0HUtV34j2DGkdYhDQmNl8B4cVMaiA30IJX0ktuKF06Sey+AYuyLz4zk+Gjhh1e5dyIp0iVEU6BRBZvOvQg56Aij3W+hppcAsBF5fDirY8CXPrZy3GiZoaFdCyZZQL/SMsfVtIqR50FvA= ; Received: from unknown (HELO localhost) (ajm91qw@sbcglobal.net@70.132.205.129 with plain) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 7 Jun 2007 01:57:12 -0000 X-YMail-OSG: nIZ04PgVM1kI49OUmp9mvhGj52rLpqjoijeVO8SQ5ToarWN1ZMRxcZ57AhmonYKwzV14cdkxzg-- Date: Wed, 6 Jun 2007 20:56:09 -0500 From: ajm To: freebsd-questions@freebsd.org Message-ID: <20070607015609.GC749@powerfull.bsd> References: <716841580706060957o4cae2a93lc24ef11c29c06af9@mail.gmail.com> <200706061321.57016.mike.jeays@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706061321.57016.mike.jeays@rogers.com> User-Agent: Mutt/1.5.15 (2007-04-06) Subject: Re: How to mount USB key 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: Thu, 07 Jun 2007 01:57:13 -0000 On Wed, Jun 06, 2007 at 01:21:56PM -0400, Mike Jeays wrote: > On Wednesday 06 June 2007 12:57, Oscar Chavarria wrote: > > I want to copy files to it. I introduced the key and was recognized as da0. > > > > I did ls dev/da0 ==> dev/da0 > > > > Then > > > > mount /dev/da0 /home ==> incorrect super block. > > > > Thank you in advance for any help. > > If it is a DOS-format device, you need to say > mount -t mdsos /dev/da0 /mnt > or maybe > mount -t msdos /dev/da0s1 /mnt > > In my /etc/sysctl.conf file I have the following: ------------------- # user mounts devices vfs.usermount=1 ------------------- In my /usr/local/etc/sudoers file I have the following: ------------------- # Defaults specification Defaults env_reset Defaults timestamp_timeout=0 Defaults tty_tickets Defaults requiretty Defaults passwd_timeout=1 # User privilege specification alex ALL=/sbin/umount,\ /sbin/mount_msdosfs ------------------- I have added user alex to the wheel group To mount the device as regular user (alex), I created a sub-directory in my home directory. In this example, my home directory is alex and the sub-directory is mnt_drive Execute the following to mount the drive...considering that /dev/da0 is the drive to mount. sudo mount_msdosfs /dev/da0 /usr/home/alex/mnt_drive Execute the following to un-mount the drive sudo umount /usr/home/alex/mnt_drive Hope it helps... -- Alexander FreeBSD 6.0-RELEASE i386