Re: USB mount delay

2010-05-03 Thread Anselm Strauss
On 05/03/10 19:54, Lowell Gilbert wrote:
> Anselm Strauss  writes:
> 
>> I have the problem that on my ALIX system USB is first powered up when
>> the FreeBSD kernel is loading. When local filesystems are mounted the
>> USB disk is not yet ready and booting fails giving me a shell prompt.
>> Shortly after I see the kernel message for the recognized /dev/da0 USB
>> disk, mount it manually and booting can continue. Unfortunately I have
>> to do this manual step every time I boot. The root filesystem is not
>> mounted from USB. The USB disk has non-system relevant data.
>>
>> Is there any way to either tell the kernel to wait some time before
>> mounting local filesystems from USB disks, or to mount filesystems later
>> during boot?
>>
>> I already tried the following sysctl variables in /boot/loader.conf with
>> values of 3000-5000 ms, they did not help:
>>
>> kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus
>> reset (ms)
>> hw.usb.ss_delay: USB status stage delay in ms
>> hw.usb.pr_recovery_delay: USB port reset recovery delay in ms
>>
>> hw.usb.no_boot_wait is set to 0.
> 
> Why don't you just have devfs mount the disk when the disk does finally
> show up?  It sounds like you don't actually need that USB disk for
> booting.  You might need to use glabel to make sure only that one disk
> is mounted automatically.
> 

I totally missed the 'late' option in fstab. This mounts the filesystem
later during boot and does the trick for me ;-)

Thanks,
Anselm
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: USB mount delay

2010-05-03 Thread Lowell Gilbert
Anselm Strauss  writes:

> I have the problem that on my ALIX system USB is first powered up when
> the FreeBSD kernel is loading. When local filesystems are mounted the
> USB disk is not yet ready and booting fails giving me a shell prompt.
> Shortly after I see the kernel message for the recognized /dev/da0 USB
> disk, mount it manually and booting can continue. Unfortunately I have
> to do this manual step every time I boot. The root filesystem is not
> mounted from USB. The USB disk has non-system relevant data.
>
> Is there any way to either tell the kernel to wait some time before
> mounting local filesystems from USB disks, or to mount filesystems later
> during boot?
>
> I already tried the following sysctl variables in /boot/loader.conf with
> values of 3000-5000 ms, they did not help:
>
> kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus
> reset (ms)
> hw.usb.ss_delay: USB status stage delay in ms
> hw.usb.pr_recovery_delay: USB port reset recovery delay in ms
>
> hw.usb.no_boot_wait is set to 0.

Why don't you just have devfs mount the disk when the disk does finally
show up?  It sounds like you don't actually need that USB disk for
booting.  You might need to use glabel to make sure only that one disk
is mounted automatically.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


USB mount delay

2010-05-01 Thread Anselm Strauss
Hi,

I have the problem that on my ALIX system USB is first powered up when
the FreeBSD kernel is loading. When local filesystems are mounted the
USB disk is not yet ready and booting fails giving me a shell prompt.
Shortly after I see the kernel message for the recognized /dev/da0 USB
disk, mount it manually and booting can continue. Unfortunately I have
to do this manual step every time I boot. The root filesystem is not
mounted from USB. The USB disk has non-system relevant data.

Is there any way to either tell the kernel to wait some time before
mounting local filesystems from USB disks, or to mount filesystems later
during boot?

I already tried the following sysctl variables in /boot/loader.conf with
values of 3000-5000 ms, they did not help:

kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus
reset (ms)
hw.usb.ss_delay: USB status stage delay in ms
hw.usb.pr_recovery_delay: USB port reset recovery delay in ms

hw.usb.no_boot_wait is set to 0.


Thanks,
Anselm
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"