From owner-freebsd-questions@FreeBSD.ORG Mon Jan 21 18:04:07 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 90A7216A46C for ; Mon, 21 Jan 2008 18:04:07 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.freebsd.org (Postfix) with ESMTP id 16EFD13C47E for ; Mon, 21 Jan 2008 18:04:06 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0LI3msQ064104; Mon, 21 Jan 2008 19:03:54 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0805FB82A; Mon, 21 Jan 2008 19:03:48 +0100 (CET) Date: Mon, 21 Jan 2008 19:03:48 +0100 From: Roland Smith To: Mario Lobo Message-ID: <20080121180348.GA52225@slackbox.xs4all.nl> Mail-Followup-To: Mario Lobo , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline 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.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Fixing a USB disk to a specific device name 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, 21 Jan 2008 18:04:07 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 21, 2008 at 02:16:50PM -0300, Mario Lobo wrote: > On Monday 21 January 2008 14:05:04 Mike Bristow wrote: > > On Mon, Jan 21, 2008 at 05:55:51PM +0100, Roland Smith wrote: > > > On Mon, Jan 21, 2008 at 08:56:32AM +0400, Rakhesh Sasidharan wrote: > > > >> It is possible, but not as daX. Use the glabel(8) utility to label > > > >> your disks. They will show up as /dev/label/ > > > > > > On 7.0-PRERELEASE, 'options GEOM_LABEL' is built into of the GENERIC > > > kernel, so it shouldn't be necessary there. > > > > Note that you can use UFS (and other filesystems labeling) too: for > > example. 'newfs -L bobs_disk' will cause the device containing it to ap= pear > > as /dev/ufs/bobs_disk. > > > > This approach may be better for removable disks; it'll play better with > > other OSs, for example. >=20 > I simply put; >=20 > /dev/da0s1 /PenDrive msdosfs rw,noauto 0 0 >=20 > in fstab. After pluging it in, i type=20 >=20 > mount /PenDrive Keep in mind that this only works for _one_ drive. As soon as you have two, this won't work correctly. If you have multiple drives, you should label them (with newfs_msdos or mtools) e.g. 'diskA' and 'diskB'. With GEOM_LABEL you'll then get /dev/msdosfs/diskA and /dev/msdosfs/diskB, which you can then put in your /etc/fstab; /dev/msdosfs/diskA /mnt/diskA msdosfs rw,noauto 0 0 /dev/msdosfs/diskB /mnt/diskB msdosfs rw,noauto 0 0 Of course you need to own /mnt/diskX if you want to mount it as a normal us= er. 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) --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHlN6DEnfvsMMhpyURAiuKAJwIW9MJWn5m1IoqT/bO3X9WfSZBiQCgn7Fi O8gAEAktpgVXopYUT0kZy8E= =qqPn -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--