From owner-freebsd-current@FreeBSD.ORG Tue Mar 24 07:32:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68C22106564A for ; Tue, 24 Mar 2009 07:32:40 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id C6D7C8FC1E for ; Tue, 24 Mar 2009 07:32:39 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1690720ewy.43 for ; Tue, 24 Mar 2009 00:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=90J2psyc3tE3Lrru5Gbb8x4qlx1pnHeIyP14NkiYvrs=; b=Ut35mFcTqtjjg5PdQZuaEArFWG44FUCJPd3FhP4BuVuMEH6FQdKFBane/VV9FUBEnY YkQ94cMhyEjD1/n0byZCqZNbrEOt0SNlxe9kNIk2leSg2Dc5u4b4IKepuzZ4UdETlSnO 3D9D21dD1IzLmoeNlCvyJdDJ8eULGUj8c5fF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mz0o529ib5Jl4Vy+80N84DUFfOMBdxBr18BM5cFa3Zmj20MikHLV1kFc95xkgAVAgF 7vP5eHVh1yuA1KIvNcgc9cZgUY0FY1lVXH6wGVx29cYM19m4snUNgz1IAAijS4mCLciG QK0w6bJa8Mk0ddgKabZfy/BG1eErtFS0cB8+g= MIME-Version: 1.0 Received: by 10.210.91.7 with SMTP id o7mr2960445ebb.39.1237879958867; Tue, 24 Mar 2009 00:32:38 -0700 (PDT) In-Reply-To: <800e97aebad7e157c6b31466447501f7.squirrel@cygnus.homeunix.com> References: <200903231541.n2NFfP6f002755@monk.cnd.dundas.on.ca> <1237829409.1771.13.camel@balrog.2hip.net> <3a142e750903231646x165d2bf2jcac4c6ca2c83702c@mail.gmail.com> <800e97aebad7e157c6b31466447501f7.squirrel@cygnus.homeunix.com> Date: Tue, 24 Mar 2009 08:32:38 +0100 Message-ID: <3a142e750903240032s3e3dbb72pd12e984886fef908@mail.gmail.com> From: "Paul B. Mahol" To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: Booting from usb hard disk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 07:32:40 -0000 On 3/24/09, Nenhum_de_Nos wrote: > > On Mon, March 23, 2009 20:46, Paul B. Mahol wrote: >> On 3/23/09, Robert Noland wrote: >>> On Mon, 2009-03-23 at 11:41 -0400, Douglas Berry wrote: >>>> On Mon, 23 Mar 2009 05:36:15 CDT, Robert Noland wrote: >>>> > So I have my i386 install on a usb hard disk, which I can only boot >>>> > on one machine now. The one machine that I can make work has a bios >>>> > option that reads "BIOS ehci handoff". This used to work with the >>>> > old usb stack. The machines that it doesn't work on, boot the >>>> > kernel, but fail to mount root, giving me the forbidding mountroot> >>>> > prompt, which is immediately followed by the message saying that da0 >>>> > is attached. da0 is however not listed in the available boot >>>> > devices list. I tried playing around with the timeout in >>>> > vfs_mount.c, but that didn't seem to have any impact. It has been >>>> > suggested that this may be a "geom" timeout, but I don't know >>>> > anything about the boot system really. >>>> >>>> I have been using tunefs(8) labeled partitions on my usb hard disk >>>> under CURRENT. I changed the fstab entries to match the labels >>>> (eg. assume mylabel is myroot, /dev/da0s1a becomes /dev/ufs/myroot) >>>> It works well on most systems. On some systems, I see the symptom >>>> you show, but I am saved by the labels showing up just after the >>>> mountroot prompt. I am then able to type >>>> >>>> ufs:/dev/ufs/myroot >>>> >>>> and resume the boot. Maybe this helps you? >>> >>> Well, I haven't tried labeling the partitions, but ufs:/dev/da0s1a >>> doesn't work from the rootmount> prompt. Even after da0 shows up. >> >> That is strange, I just recently have used one of usb sticks (256MB) to >> fix >> stupid sysinstall error. In my case da0 appeared after some delay but >> usual da0s1a appeared after ? and I was able to mount root >> partition multiple times. >> I used usb via modules, on i386 revision r190297, with "boot -s" >> (I hacked fbsd installation on stick because I didnt have time for fine >> details ....) >> >> Could try just with uhci (but it will be too sloow) > > how can I make it use this module and not another ? (how to force) I doubt it will help but anyway ... Just ensure that you are using custom kernel without any of usb, ehci, uhci, etc lines. And forcing uhci is simple, just dont kldload ehci (or dont "load echi" from boot loader prompt) and load any other usb modules you need. -- Paul