Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 18:10:15 +0100
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        Marius =?ISO-8859-1?Q?N=FCnnerich?= <marius@nuenneri.ch>
Cc:        "Andrey V. Elsukov" <bu7cher@yandex.ru>, FreeBSD Stable Mailing List <freebsd-stable@FreeBSD.org>
Subject:   Re: Booting FreeBSD 8.0-RC1 from usb stick
Message-ID:  <1254244215.87530.30.camel@buffy.york.ac.uk>
In-Reply-To: <b649e5e0909290751i238a4e4aob54a0d7ba7fa5fdf@mail.gmail.com>
References:  <b649e5e0909290201o6f038fd3xdccf94c5039c9e1@mail.gmail.com> <4AC1E179.4000908@yandex.ru> <b649e5e0909290540t242981eav1d1664ab5d186e9f@mail.gmail.com> <1254232996.87530.9.camel@buffy.york.ac.uk> <b649e5e0909290751i238a4e4aob54a0d7ba7fa5fdf@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-CsQ9oFww4OQ34Td2DV2e
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, 2009-09-29 at 16:51 +0200, Marius N=FCnnerich wrote:
> On Tue, Sep 29, 2009 at 16:03, Gavin Atkinson <gavin@freebsd.org> wrote:
> > On Tue, 2009-09-29 at 14:40 +0200, Marius N=FCnnerich wrote:
> >> 2009/9/29 Andrey V. Elsukov <bu7cher@yandex.ru>:
> >> > Marius Nu"nnerich wrote:
> >> >>
> >> >> Explicitly setting the root partition
> >> >> (vfs.root.mountfrom=3D"ufs:/dev/da0s1a") in /boot/loader.conf does =
not
> >> >> help either: Again, the system knows which partition it should moun=
t
> >> >> to "/", but it fails to do so. (vfs.root.mountfrom.options=3Drw was=
 set
> >> >> too).
> >> >
> >> > It's known problem and we are waiting for fix. There is a race betwe=
en
> >> > USB and CAM/SCSI subsystems.
> >>
> >> OK, thank you! Is there a PR open for this?
> >
> > I think your problem is probably usb/138798.
>=20
> Thanks! I hoped there would be some quick fix like putting some DELAY
> into CAM or usb to go ahead for now but it isn't. Anyone has an idea
> for where to put this or a patch to try? I suppose usb should finish
> before CAM comes along?

Hmm, that PR might not be your problem.  Do you see the USB stick probe
and appear after the kernel has tried to mount it, like in that PR, or
do you see the USB stick probe before mountroot is attempted, but it
still fails?

Either way, you could try the attached hack. Be aware that this really
is not the correct fix, but might at least be enough to get you going
until the correct fix is in place.

No guarantees, warranty etc.

Gavin

--=-CsQ9oFww4OQ34Td2DV2e
Content-Disposition: attachment; filename=root-mount-usb-nasty-hack.diff
Content-Type: text/x-patch; name=root-mount-usb-nasty-hack.diff; charset=ASCII
Content-Transfer-Encoding: base64

SW5kZXg6IHN5cy9rZXJuL3Zmc19tb3VudC5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2hvbWUv
bmN2cy9zcmMvc3lzL2tlcm4vdmZzX21vdW50LmMsdg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjMw
OA0KZGlmZiAtdSAtcjEuMzA4IHZmc19tb3VudC5jDQotLS0gc3lzL2tlcm4vdmZzX21vdW50LmMJ
NSBKdW4gMjAwOSAxNDo1NToyMiAtMDAwMAkxLjMwOA0KKysrIHN5cy9rZXJuL3Zmc19tb3VudC5j
CTI5IFNlcCAyMDA5IDE3OjA4OjI1IC0wMDAwDQpAQCAtMTY0NSw2ICsxNjQ1LDkgQEANCiANCiAJ
b3B0aW9ucyA9IE5VTEw7DQogDQorCS8qIE5BU1RZIEhBQ0s6IHdhaXQgZm9yIFVTQiBzdGlja3Mg
dG8gYXBwZWFyICovDQorCXBhdXNlKCJ1c2JoYWNrIiwgaHogKiAxMCk7DQorDQogCXJvb3RfbW91
bnRfcHJlcGFyZSgpOw0KIA0KIAltb3VudF96b25lID0gdW1hX3pjcmVhdGUoIk1vdW50cG9pbnRz
Iiwgc2l6ZW9mKHN0cnVjdCBtb3VudCksDQo=


--=-CsQ9oFww4OQ34Td2DV2e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1254244215.87530.30.camel>