From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4D869138A1F for ; Fri, 18 Apr 2014 17:49:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29613E0A64; Fri, 18 Apr 2014 17:49:49 +0000 (UTC) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22D5EE0A45 for ; Fri, 18 Apr 2014 17:49:47 +0000 (UTC) Received: by mail-qc0-f181.google.com with SMTP id x3so1903600qcv.26 for ; Fri, 18 Apr 2014 10:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=NTgcnc1p10bQ129rqcYUDsK2x9eDjLTeK4aqh1EwmX0=; b=nwICED44HrUTiztWA7KzvGgYrtdg046+Cay2uDNkwqNDY8WftNeA2n2GwxlEPISMRb a507v+LR2QE7kW6ixBVV5QWDNuWp2uJ+JEzr/lQFQpWHWUprLwT4kHugm3CVGxB60smH cCw0ViypHxPz5lcdeRZP7U/yv2Zcdv1wb7is29/kkzHvIZUbuPFnBhWoIweXveyTgxcS C3GRU+ZSQFbtiu+/NyGPqQxKXRo/rRxGQ108FxtjV5u92l14GwO/1dfdOp4ViD/8l0ZM rlLSNO6gW0BqH2wwLCpBaBkhUX2lYAYP1Ut+yga5982Q8YBj8ajTZgOE6EGuaWLyf4tF x/OA== X-Received: by 10.224.169.5 with SMTP id w5mr4350070qay.96.1397843387264; Fri, 18 Apr 2014 10:49:47 -0700 (PDT) Received: from ?IPv6:2604:6000:f441:f900:39ef:c115:49d3:10f5? ([2604:6000:f441:f900:39ef:c115:49d3:10f5]) by mx.google.com with ESMTPSA id 1sm31009876qgg.5.2014.04.18.10.49.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Apr 2014 10:49:46 -0700 (PDT) Message-ID: <535165B1.1080008@gmail.com> Date: Fri, 18 Apr 2014 13:49:37 -0400 From: Brian Hesdorfer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Allow delay for booting from USB device? References: <415668.55823.bm@smtp111.sbc.mail.gq1.yahoo.com> <2017095.mMc6i6RRhN@eve> <5351303F.10502@gmail.com> <4741385.8Ux8OeznYq@eve> In-Reply-To: <4741385.8Ux8OeznYq@eve> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 4040e8f8-2111-4f08-a819-02b650fa495c X-Archives-Hash: 5f8c949742310bdabc8fa3b4cbc0115e On 4/18/2014 1:38 PM, Joost Roeleveld wrote: > On Friday 18 April 2014 10:01:35 Brian Hesdorfer wrote: >> On 4/18/2014 9:05 AM, Joost Roeleveld wrote: >>> On Friday 18 April 2014 12:02:01 Thomas Mueller wrote: >>>> Is there a way to make Gentoo or other Linux allow extra time when root >>>> is >>>> on a USB device? Any way to say "just a second" or more like 15 seconds >>>> before aborting with the message that root partition does not exist? >>>> >>>> In this case it's an IDE hard drive in a USB enclosure. >>>> >>>> FreeBSD seems to handle this situation better. I would get a >>>> mountroot> >>>> prompt, to which I would respond >>>> ufs:/dev/ada0p3 >>>> and be good. >>>> >>>> I could avoid this situation with /boot/loader.conf >>>> >>>> legal.realtek.license_ack=1 >>>> rsu-rtl8712fw_load="YES" >>>> kern.cam.scsi_delay="13000" # Delay (in ms) before probing SCSI >>>> kern.cam.boot_delay="16000" # Delay (in ms) of root mount for CAM bus >>>> hint.re.0.disabled="1" >>>> >>>> but don't know if Linux has anything like this. >>>> >>>> Only lines 3 and 4 are relevant to this issue; other lines are for >>>> different issues. >>>> >>>> Tom >>> Try adding " rootdelay = 15 " to the kernel commandline. >>> This should make the kernel wait 15 seconds before trying to access the >>> root- device. >>> >>> See: >>> http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/r >>> e58.html >>> >>> I used this myself in the past when booting from USB-devices. >>> >>> Kind regards, >>> >>> Joost >> Tiny Core linux, which is primarily booted over usb, does something >> similar. If I'm understanding this right, they have a loop in their >> initrd that just waits a maximum of X seconds until it shows up. >> >> I'm not sure how easy this would be to move into something else. >> >> Lines 114-128: >> http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/tree/etc/init.d/ >> tc-config > " rootdelay " is a standard linux kernel option. No need to use a special > script. > > -- > Joost Agreed! Hadn't heard of that option until you mentioned it. Learn a new thing everyday :)