devfs.conf & usb-thumbdrives

Brooks Davis brooks at one-eyed-alien.net
Mon Aug 29 22:25:45 GMT 2005


On Tue, Aug 30, 2005 at 12:21:31AM +0200, Rainer Duffner wrote:
> Hi,
> 
> 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 
> ready change,
> 
> 
> it 1 GB.
> 
> I created a devfs.conf-entry like this:
> lbe# egrep da0 /etc/devfs.conf
> perm    da0     770
> perm    da0s1   770
> 
> 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
> 
> 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
> 
> 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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050829/4e6530f4/attachment.bin


More information about the freebsd-current mailing list