From owner-freebsd-current@FreeBSD.ORG Sat Jun 27 05:02:16 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 ACF9C106564A; Sat, 27 Jun 2009 05:02:16 +0000 (UTC) (envelope-from vinnix.bsd@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF6D8FC17; Sat, 27 Jun 2009 05:02:16 +0000 (UTC) (envelope-from vinnix.bsd@gmail.com) Received: by yxe11 with SMTP id 11so1792018yxe.3 for ; Fri, 26 Jun 2009 22:02:15 -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=rAkCwRVVd3ZX1dt6O9yoSxW7M5rMj1+cmR/kgk4Oazs=; b=kMRRpBD6zaVqpfl+/eCcz3WP/QM11+zQFab869gSjKFkTsgZNMl0WW0jo7FMz1ksMD 9ke7etexxWTYRsqYaTLwRBgNdK46+1nCvSC7slk+IGCvtu9ZXwNZFHAw1OlpbFvjqWSV 5wVGNShST/fODX3VEd0GM0j1G4MsSSar/M/sk= 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=gO1nU9YIPJb75uysQuXGgFz0641+U6FGmGpPyCFYWnB9fd98y6XItqrOTE4/vFo3nr v6oVBD6wGwfPAv9NRsK1CU/UgYl2lSHHxU32bb+azMxLRntFxBHxAorSUmP73/cYvsVF fBcKfW8mTBskNUPm9KDNBCkxwFXxh+hO0aypg= MIME-Version: 1.0 Received: by 10.231.15.6 with SMTP id i6mr1543800iba.12.1246077174524; Fri, 26 Jun 2009 21:32:54 -0700 (PDT) In-Reply-To: <20090418023632.GJ13564@dereel.lemis.com> References: <49E895CB.2040407@lissyara.su> <20090417213125.GI13564@dereel.lemis.com> <49E9015D.9000404@samsco.org> <20090418023632.GJ13564@dereel.lemis.com> Date: Sat, 27 Jun 2009 01:32:54 -0300 Message-ID: <1e31c7980906262132k7571c4b8ucfde94ec94cb1d8@mail.gmail.com> From: Vinicius Abrahao To: Alex Keda , Scott Long , marcus@blazingdot.com, freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: rbgarga@freebsd.org, Greg 'groggy' Lehey Subject: Re: new usb stack - boot problem from usb hdd 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: Sat, 27 Jun 2009 05:02:16 -0000 Hi Guys, 0) First sorry for this annoying and long email... I'm probably having the same problem here: 1) FreeBSD 8.0-CURRENT #6: Tue Jun 23 02:37:12 BRT 2009 2) When I boot from my external usb hard disk[1] :p I had this problem with boot[2]: "Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR: " 3) If I, at the "mountroot>" prompt, try to mount the root filesystem with mountroot> ufs:da0 The error occurs again, but I don't know why, doing this It's make possible now trying boot from da0s1a 4) mountroot> ufs:da0s1a Now the system boot normally! 5) It's my first time for these "boot from usb" occasions, so I'm thinking that I made something wrong at the installation of disk. Anyway here is my lsusb -v result[3]. 6) umass is on KERNELFILE, I put these lines at /boot/loader.conf: umass_load="YES" kern.cam.scsi_delay=1000 but this not affect the problem. 7) Marcus, this patch is off (404) http://people.freebsd.org/~thompsa/root_wait.diff 8) fdisk and bsdlabel results: ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 62910477 (30718 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 62910540, size 93385845 (45598 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 62910461 79 4.2BSD 0 0 0 c: 62910477 63 unused 0 0 # "raw" part, don't edit partition a: partition extends past end of unit partition c: partition extends past end of unit bsdlabel: partition c doesn't start at 0! bsdlabel: An incorrect partition c may cause problems for standard system utilities [1]: http://www.triarius.com.br/vinicius/bsd/hd_note_usb.jpg [2]: http://www.triarius.com.br/vinicius/bsd/dmesg.txt [3]: http://www.triarius.com.br/vinicius/bsd/lsusb.txt 9) What I'm doing wrong? Thanks for your attention, Best regards, Vinicius