Debian Bug report logs - #631754
mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives

version graph

Package: kfreebsd-image-8.1-1-686; Maintainer for kfreebsd-image-8.1-1-686 is GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>;

Reported by: Timo Juhani Lindfors <timo.lindfors@iki.fi>

Date: Sun, 26 Jun 2011 20:03:02 UTC

Severity: normal

Found in version kfreebsd-8/8.1+dfsg-8

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 20:03:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timo Juhani Lindfors <timo.lindfors@iki.fi>:
New Bug report received and forwarded. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 20:03:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Sun, 26 Jun 2011 22:59:20 +0300
Package: kfreebsd-image-8.1-1-686
Version: 8.1+dfsg-8
Severity: normal

The photos at

http://iki.fi/lindi/kfreebsd/ufsid-boot-trouble/

have been captured from the display of my aspire one laptop that boots
debian kfreebsd-i386 squeeze from a USB flash drive.

As you can see, the kernel does not wait long enough for the USB flash
drive. It prints ROOT MOUNT ERROR and drops me to "mountroot>" prompt.

If I enter a wrong device (one that contains ext2) three times then the
"List of GEOM managed disk devices:" suddenly changes and includes the
real rootfs "ufsid/4cc08aab6455cf88". If I then type this long string
with the keyboard the boot continues normally.

Is there a parameter like rootwait=N in Linux? I'm ok with slow bootup
but I'm not ok with unreliable bootup :-)





Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 20:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 20:36:03 GMT) Full text and rfc822 format available.

Message #10 received at 631754@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Timo Juhani Lindfors <timo.lindfors@iki.fi>, 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Sun, 26 Jun 2011 22:32:23 +0200
2011/6/26 Timo Juhani Lindfors <timo.lindfors@iki.fi>:
> Is there a parameter like rootwait=N in Linux? I'm ok with slow bootup
> but I'm not ok with unreliable bootup :-)

Not exactly the same but, check if this helps:

set kFreeBSD.kern.cam.scsi_delay="15000"

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 20:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 20:39:03 GMT) Full text and rfc822 format available.

Message #15 received at 631754@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Timo Juhani Lindfors <timo.lindfors@iki.fi>, 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Sun, 26 Jun 2011 22:36:07 +0200
2011/6/26 Robert Millan <rmh@debian.org>:
> 2011/6/26 Timo Juhani Lindfors <timo.lindfors@iki.fi>:
>> Is there a parameter like rootwait=N in Linux? I'm ok with slow bootup
>> but I'm not ok with unreliable bootup :-)
>
> Not exactly the same but, check if this helps:
>
> set kFreeBSD.kern.cam.scsi_delay="15000"

Btw in case this works, please try also if 5000 would be enough.  We
decrease the default from 5 s to 2 s, perhaps this should be
reconsidered untill a synchronous solution is found:

./999_config.diff:-options      SCSI_DELAY=5000         # Delay (in
ms) before probing SCSI
./999_config.diff:+options      SCSI_DELAY=2000         # Delay (in
ms) before probing SCSI

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 21:03:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timo Juhani Lindfors <timo.lindfors@iki.fi>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 21:03:04 GMT) Full text and rfc822 format available.

Message #20 received at 631754@bugs.debian.org (full text, mbox):

From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
To: Robert Millan <rmh@debian.org>
Cc: 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Mon, 27 Jun 2011 00:00:46 +0300
Robert Millan <rmh@debian.org> writes:
> set kFreeBSD.kern.cam.scsi_delay="15000"

Unfortunately this does not seem to help. I tried also 30000 but it
clearly does not wait.





Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 21:09:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Kaduk <kaduk@MIT.EDU>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 21:09:38 GMT) Full text and rfc822 format available.

Message #25 received at 631754@bugs.debian.org (full text, mbox):

From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Timo Juhani Lindfors <timo.lindfors@iki.fi>, 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Sun, 26 Jun 2011 17:05:47 -0400 (EDT)
On Mon, 27 Jun 2011, Timo Juhani Lindfors wrote:

> Robert Millan <rmh@debian.org> writes:
>> set kFreeBSD.kern.cam.scsi_delay="15000"
>
> Unfortunately this does not seem to help. I tried also 30000 but it
> clearly does not wait.

Where/how are you setting the value?  My understanding is that if that new 
value is read, the kernel should force a delay of that long on the entire 
boot process, which cannot be skipped prematurely.

-Ben Kaduk




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 21:24:19 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timo Juhani Lindfors <timo.lindfors@iki.fi>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 21:24:19 GMT) Full text and rfc822 format available.

Message #30 received at 631754@bugs.debian.org (full text, mbox):

From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
To: Benjamin Kaduk <kaduk@mit.edu>
Cc: 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Mon, 27 Jun 2011 00:23:20 +0300
Benjamin Kaduk <kaduk@mit.edu> writes:
> Where/how are you setting the value?

I hit "e" in grub to get the menu entries. Then I added it as a new
line.

> My understanding is that if that new value is read, the kernel should
> force a delay of that long on the entire boot process, which cannot be
> skipped prematurely.

When exactly should it do this delay? Is it handling USB events during
that time?




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 21:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benjamin Kaduk <kaduk@MIT.EDU>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 21:57:03 GMT) Full text and rfc822 format available.

Message #35 received at 631754@bugs.debian.org (full text, mbox):

From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Cc: 631754@bugs.debian.org
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Sun, 26 Jun 2011 17:54:32 -0400 (EDT)
On Mon, 27 Jun 2011, Timo Juhani Lindfors wrote:

> Benjamin Kaduk <kaduk@mit.edu> writes:
>> Where/how are you setting the value?
>
> I hit "e" in grub to get the menu entries. Then I added it as a new
> line.

Hmm, I am not very familiar with the kFreeBSD boot process, but this value 
is normally set in the FreeBSD loader; on stock FreeBSD it would be in 
/boot/loader.conf .

>
>> My understanding is that if that new value is read, the kernel should
>> force a delay of that long on the entire boot process, which cannot be
>> skipped prematurely.
>
> When exactly should it do this delay? Is it handling USB events during
> that time?

It should delay during the device probe stage of the boot process (though 
I don't remember exactly where).

Sorry I don't have all the details relevant here; hopefully someone else 
on debian-bsd will chime in.

-Ben Kaduk




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 26 Jun 2011 23:03:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 26 Jun 2011 23:03:06 GMT) Full text and rfc822 format available.

Message #40 received at 631754@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Benjamin Kaduk <kaduk@mit.edu>, 631754@bugs.debian.org
Cc: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Subject: Re: Bug#631754: mountfrom=ufs:/dev/ufsid/... can timeout with USB flash drives
Date: Mon, 27 Jun 2011 01:00:02 +0200
2011/6/26 Benjamin Kaduk <kaduk@mit.edu>:
>> I hit "e" in grub to get the menu entries. Then I added it as a new
>> line.
>
> Hmm, I am not very familiar with the kFreeBSD boot process, but this value
> is normally set in the FreeBSD loader; on stock FreeBSD it would be in
> /boot/loader.conf .

When using GRUB this value is set through a different UI, but it should be
equivalent.  Maybe there's a bug in GRUB that breaks parameter passing,
or maybe kFreeBSD doesn't allow this variable to be overriden?

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Sun, 04 Dec 2011 15:34:43 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Millan <rmh@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Sun, 04 Dec 2011 15:34:44 GMT) Full text and rfc822 format available.

Message #45 received at 631754@bugs.debian.org (full text, mbox):

From: Robert Millan <rmh@debian.org>
To: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Cc: Benjamin Kaduk <kaduk@mit.edu>, 631754@bugs.debian.org
Subject: please check with upstream kernel
Date: Sun, 4 Dec 2011 16:34:08 +0100
Hi Timo,

Please could you check if upstream kernel is also affected?

I've uploaded kfreebsd-downloader package to make this kind of tests easier:

http://incoming.debian.org/kfreebsd-downloader_9.0~rc2-1_all.deb

If this is an upstream bug, filing a FreeBSD PR would be the best option IMHO.

-- 
Robert Millan




Information forwarded to debian-bugs-dist@lists.debian.org, GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>:
Bug#631754; Package kfreebsd-image-8.1-1-686. (Mon, 05 Dec 2011 08:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Timo Juhani Lindfors <timo.lindfors@iki.fi>:
Extra info received and forwarded to list. Copy sent to GNU/kFreeBSD Maintainers <debian-bsd@lists.debian.org>. (Mon, 05 Dec 2011 08:30:04 GMT) Full text and rfc822 format available.

Message #50 received at 631754@bugs.debian.org (full text, mbox):

From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
To: Robert Millan <rmh@debian.org>
Cc: Benjamin Kaduk <kaduk@mit.edu>, 631754@bugs.debian.org
Subject: Re: please check with upstream kernel
Date: Mon, 05 Dec 2011 10:27:13 +0200
Hi,

Robert Millan <rmh@debian.org> writes:
> Please could you check if upstream kernel is also affected?

I belive so based on the feedback I got from freebsd users when I asked
about the issue.

> http://incoming.debian.org/kfreebsd-downloader_9.0~rc2-1_all.deb

Thanks for the tip. Unfortunately I'm currently too busy to test this on
real hardware where the bug occurs...

> If this is an upstream bug, filing a FreeBSD PR would be the best
> option IMHO.

Indeed, should have done that earlier.

-Timo




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 14:08:12 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.