Date: Sat, 21 Jul 2007 18:06:28 +0400 From: Sergey Zaharchenko <doublef-ctm@yandex.ru> To: Tim Baker <tbaker@commandfinancial.com> Cc: questions@FreeBSD.org Subject: Re: USB dev lock Message-ID: <20070721140628.GA10510@shark.localdomain> In-Reply-To: <3B46D029C27D7B44811CEB84AD02DDA6010D4A00@CFPF28.commandfinancial.com> References: <3B46D029C27D7B44811CEB84AD02DDA6010D4A00@CFPF28.commandfinancial.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Tim! Sat, Jul 21, 2007 at 08:12:46AM -0400 you wrote: > I have a PC running FreeBSD 6.1. We use a 1GB USB key to transfer files > from our desktop PC's to this purposed machine. >=20 > Problem is, when inserting the key, it may or may not select the same > device name. For ease of use, and too many newbies > that don't want to learn, I'd like the device to show as the same name > every time I mount it. >=20 > I have added /dev/da0 with a mountpoint of /flash in the /etc/fstab, > but don't want to deal with adding additional lines and=20 > mountpoints either. I'd like the command mount /flash to work with any > one of the 10 1GB keys I purchased. You might want to kldload geom_label.ko (or compile your kernel with the appropriate option), then label all the USB key filesystems with the same identifier, and then they can be accessed as /dev/msdosfs/YOUR-LABEL-HERE. The label is the -L argument to newfs_msdos or the value in the `Volume Label' editbox in the Windows formatting program. geom_label also works similarly on other filesystems. For example, my USB flash shows up as /dev/msdosfs/DOUBLEF and /etc/fstab has the line /dev/msdosfs/DOUBLEF /home/df/flash msdosfs rw,noauto,... HTH, --=20 DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) --DocE+STaALJfprDB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGohLjwo7hT/9lVdwRApNTAJwKmCwK4eOGw9atpesoOon+Jtp7iQCfQXan QU4mzQG6fcawInLoVzHHq/w= =5zqc -----END PGP SIGNATURE----- --DocE+STaALJfprDB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070721140628.GA10510>