From owner-freebsd-questions@FreeBSD.ORG Mon Aug 4 16:02:44 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 067B010656CC for ; Mon, 4 Aug 2008 16:02:44 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7928FC1F for ; Mon, 4 Aug 2008 16:02:43 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id m74G2dmF081351; Mon, 4 Aug 2008 18:02:40 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id B73E5BA8F; Mon, 4 Aug 2008 18:02:39 +0200 (CEST) Date: Mon, 4 Aug 2008 18:02:39 +0200 From: Roland Smith To: joeb Message-ID: <20080804160239.GA1158@slackbox.xs4all.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: GEOM + mount_msdosfs usb flash stick 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: Mon, 04 Aug 2008 16:02:44 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 04, 2008 at 02:12:09PM +0800, joeb wrote: > On 7.0 release of FBSD trying to mount a usb flash memory stick. The stick > has a msdos file system on it and has been loaded with files using windows > xp. When I plug the stick into my FBSD 7.0 box I get Geom console msg > 'GEOM_LABEL:Label for provider Da0s1 is msdosfs_flashdrive'. > Does this mean the flash stick is mounted and the mount point is > msdosfs_flashdrive'? No. It means that GEOM_LABEL has created a named device in /dev/msdosfs/flashdrive.=20 This is easier to use then e.g. /dev/da0s1. Consider the case where you have two USB mass storage devices. One will be da0, the other da1, da0 being the one that was plugged in first. The label 'flashdrive' on the other hand won't change unless you change it. > When is issue this command, mount_msdosfs /dev/da0s1 /mnt I get this > console msg ' GEOM get label removed'. Using the /mnt mount point every > thing works fine. If you use 'mount_msdosfs -m 644 -M 755 /dev/msdosfs/flashdrive /mnt' you can keep using this command (e.g. put it in a script) as long as you don't change the label. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiXKB8ACgkQEnfvsMMhpyV6oACfaqh375IKq3CZREzwhlOa+U2U z3MAoKRCp4y1K/FDWBl2yz++WGXzA8/q =Bdv2 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--