From owner-freebsd-stable Wed Mar 12 2:39:20 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA9DA37B401 for ; Wed, 12 Mar 2003 02:39:17 -0800 (PST) Received: from netlx014.civ.utwente.nl (netlx014.civ.utwente.nl [130.89.1.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 285FE43FAF for ; Wed, 12 Mar 2003 02:39:13 -0800 (PST) (envelope-from g.vandalum@student.utwente.nl) Received: from puinhoop.student.utwente.nl (licht.student.utwente.nl [130.89.169.80]) by netlx014.civ.utwente.nl (8.11.4/HKD) with ESMTP id h2CAdAB28494 for ; Wed, 12 Mar 2003 11:39:10 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by puinhoop.student.utwente.nl (Postfix) with ESMTP id E2A2D3110F for ; Wed, 12 Mar 2003 11:39:05 +0100 (CET) Subject: Re: USB storage devices and booting From: "G. van Dalum" To: freebsd-stable@freebsd.org In-Reply-To: <200303101424.h2AEOFQp038066@whizzo.transsys.com> References: <200303101424.h2AEOFQp038066@whizzo.transsys.com> Content-Type: text/plain Organization: Message-Id: <1047465545.1615.34.camel@server> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 12 Mar 2003 11:39:05 +0100 Content-Transfer-Encoding: 7bit X-UTwente-MailScanner: Found to be clean Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I tried to attach a usb storage device last week it did not work correctly and i searched the net for a solution as i am a bit of a newbee and i didn't want to ask stupid questions on this or other lists. As i read the discussion on usb devices i thought my problem my be relevant so here it is: when i attach a usb flash storage device to my computer before booting it gets detected all right and i can mount it but reading and writing doesn't work vm_fault: pager read error, pid 1000 (cp) i don't have any scsi devices attached to my system exept the umass device when i detach it and reattach it i get these messages umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT i have set sysctl kern.cam.da.no_6_byte=1 why is the usb device detected ok during boot and not after? Guus On Mon, 2003-03-10 at 15:24, Louis A. Mamakos wrote: > While testing a fix to a USB driver a little while ago, I ran into a > weird but explainable situation. Say, for example, you've got a FreeBSD > system with one or more SCSI disks, and with the root partition on > one of those disks. The loader passes along a hint as to which device > the kernel should mount as the root partition, and away we go. > > Now, boot your system with a USB storage device attached. It seems > to get bound as "da0" before the first SCSI drive has a chance to. > This results in surprising behavior when you boot and it can't mount > a root partition off the drive it thought it booted from. > > I suppose I could hardwire the SCSI drives in my kernel configuration, > but that doesn't seem like the right answer. I don't normally boot > with the USB storage thing plugged in, but it's possible that I might > leave one attached and then have the system reboot while it's unattended > and not come back. > > Is there a relative priority between the various drivers as they get > device names allocated from (presumably) the CAM subsystem? > > louie > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message