Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 15:25:44 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Rainer Duffner <rainer@ultra-secure.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: devfs.conf & usb-thumbdrives
Message-ID:  <20050829222544.GB31841@odin.ac.hmc.edu>
In-Reply-To: <43138A6B.30108@ultra-secure.de>
References:  <43138A6B.30108@ultra-secure.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--dc+cDN39EJAMEtIO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 30, 2005 at 12:21:31AM +0200, Rainer Duffner wrote:
> Hi,
>=20
> I recently bought some Samsung USB-stick:
> umass0: 0 USB DRIVE, rev 2.00/2.00, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: < USB DRIVE 2.00> Removable Direct Access SCSI-2 device
> da0: 40.000MB/s transfers
> da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to=20
> ready change,
>=20
>=20
> it 1 GB.
>=20
> I created a devfs.conf-entry like this:
> lbe# egrep da0 /etc/devfs.conf
> perm    da0     770
> perm    da0s1   770
>=20
> but the permissions are still like this:
> lbe# ll /dev/da0*
> crw-r-----  1 root  operator   11, 112 29 Aug 23:13 /dev/da0
> crw-r-----  1 root  operator   11, 115 30 Aug 00:15 /dev/da0s1
>=20
> I first need to restart devfs:
> lbe# /etc/rc.d/devfs restart
> lbe# ll /dev/da0*
> crwxrwx---  1 root  operator   11, 112 29 Aug 23:13 /dev/da0
> crwxrwx---  1 root  operator   11, 115 29 Aug 23:13 /dev/da0s1
>=20
> Why does it ignore these settings until a restart of the service?

/etc/devfs.conf is a set of rules to be applied at startup, not a set of
rules to apply when creating devices.  For that, you want devfs.rules(5).

-- Brooks

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--dc+cDN39EJAMEtIO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDE4tnXY6L6fI4GtQRAj9uAJ9gPTEftpD9fP84mEDuq9bZUneK5ACfefSN
t4NfvYSfGLpVnF18Th7Tm7k=
=sKRL
-----END PGP SIGNATURE-----

--dc+cDN39EJAMEtIO--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050829222544.GB31841>