From owner-freebsd-stable@FreeBSD.ORG Wed Jul 22 06:09:38 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53DD2106566B for ; Wed, 22 Jul 2009 06:09:38 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id D53AE8FC0C for ; Wed, 22 Jul 2009 06:09:37 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from via.dino.sk ([84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Wed, 22 Jul 2009 07:59:41 +0200 id 0002E011.4A66AACD.00009881 From: Milan Obuch To: freebsd-stable@freebsd.org Date: Wed, 22 Jul 2009 07:59:21 +0200 User-Agent: KMail/1.9.10 References: <20090722022027.12059.qmail@us1.tomahawkonline.net> In-Reply-To: <20090722022027.12059.qmail@us1.tomahawkonline.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907220759.22608.freebsd-stable@dino.sk> Cc: Sagara Wijetunga Subject: Re: SCSI device not created upon a CF card plug in X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 06:09:38 -0000 On Wednesday 22 July 2009 04:20:27 Sagara Wijetunga wrote: > Hi FreeBSD community > > The SCSI device (eg. da1s1) is not created automatically upon a CF card > plug in on an USB multi-card reader on FreeBSD 7.2 (i386) but the SCSI > device (eg. da1s1) is created automatically if I reboot the computer while > the CF card is plug in. > > Here are detail: > $ camcontrol devlist > at scbus0 target 0 lun 0 (pass0,da0) > at scbus0 target 0 lun 1 (pass1,da1) > at scbus0 target 0 lun 2 (pass2,da2) > at scbus0 target 0 lun 3 (pass3,da3) > > After the CF card is plugged in: > $ ls -l /dev/ | grep da > crw-r----- 1 root operator 0, 105 Jul 22 13:18 da0 > crw-r----- 1 root operator 0, 106 Jul 22 13:18 da1 > crw-r----- 1 root operator 0, 107 Jul 22 13:18 da2 > crw-r----- 1 root operator 0, 108 Jul 22 13:18 da3 > > After reboot while the CF card is plugged in: > $ ls -l /dev/ | grep da > crw-r----- 1 root operator 0, 105 Jul 22 13:24 da0 > crw-r----- 1 root operator 0, 106 Jul 22 13:24 da1 > crw-r----- 1 root operator 0, 110 Jul 22 13:24 da1s1 > crw-r----- 1 root operator 0, 107 Jul 22 13:24 da2 > crw-r----- 1 root operator 0, 108 Jul 22 13:24 da3 > > My questions in this regards are: > 1. Is this an error/bug in FreeBSD 7.2? > This is known limitation of, I think, GEOM stack. > 2. Or, does it require some configuration tweak? > After plugging in your CF card, issue true > /dev/da1 command. After writing zero bytes (nothing gets actually written into your media, thus it is not changed at all) GEOM reads some data from media and creates desired device(s). Regards, Milan