On Tue, 2009-09-29 at 16:51 +0200, Marius Nünnerich wrote:
> On Tue, Sep 29, 2009 at 16:03, Gavin Atkinson <ga...@freebsd.org> wrote:
> > On Tue, 2009-09-29 at 14:40 +0200, Marius Nünnerich wrote:
> >> 2009/9/29 Andrey V. Elsukov <bu7c...@yandex.ru>:
> >> > Marius Nu"nnerich wrote:
> >> >>
> >> >> Explicitly setting the root partition
> >> >> (vfs.root.mountfrom="ufs:/dev/da0s1a") in /boot/loader.conf does not
> >> >> help either: Again, the system knows which partition it should mount
> >> >> to "/", but it fails to do so. (vfs.root.mountfrom.options=rw was set
> >> >> too).
> >> >
> >> > It's known problem and we are waiting for fix. There is a race between
> >> > USB and CAM/SCSI subsystems.
> >>
> >> OK, thank you! Is there a PR open for this?
> >
> > I think your problem is probably usb/138798.
> 
> 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
Index: sys/kern/vfs_mount.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_mount.c,v
retrieving revision 1.308
diff -u -r1.308 vfs_mount.c
--- sys/kern/vfs_mount.c	5 Jun 2009 14:55:22 -0000	1.308
+++ sys/kern/vfs_mount.c	29 Sep 2009 17:08:25 -0000
@@ -1645,6 +1645,9 @@
 
 	options = NULL;
 
+	/* NASTY HACK: wait for USB sticks to appear */
+	pause("usbhack", hz * 10);
+
 	root_mount_prepare();
 
 	mount_zone = uma_zcreate("Mountpoints", sizeof(struct mount),
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to