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 83CCF138A1F for ; Fri, 18 Apr 2014 14:01:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34E16E09FB; Fri, 18 Apr 2014 14:01:38 +0000 (UTC) Received: from mail-qc0-f176.google.com (mail-qc0-f176.google.com [209.85.216.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B2F0E07D2 for ; Fri, 18 Apr 2014 14:01:36 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id m20so1700695qcx.21 for ; Fri, 18 Apr 2014 07:01:36 -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=kJhUoN0YVUFcLc34zTWjRbQ6yt7ssCM3AY0KtYRv7nA=; b=F9RUP19G+Yys3VPTjRAB9pYTwJOrmbcsWaUtliuWDYLRke/hJuFpR9NVmSYfuOQHrw D+4W5R3i+gl7NjKkno5B6+NdZ/kMO/0ENUVNnN3FZa4AfCzaKwuEn3O66Na+Ys5ghkmU FrvMq22dHgB36pZk7d+t2r7vPkjfPWkU92q5IbX8BVZW9b6/bjnsDDSau64EPheHO7LR hphFjRdHM/J0DfDItlIqtAf8OpVNU4ipFvzkDO6Bx82B0f9Srkl+pzZqBUaCQ+OugVLf 9HTaeb+lNOYwLe07TA1VQIyWS8YJawgFt8zQxdr4YlKoJA4kuKq0ppN7qed+yPjtq9sx Sf2Q== X-Received: by 10.224.36.194 with SMTP id u2mr18603091qad.73.1397829695837; Fri, 18 Apr 2014 07:01:35 -0700 (PDT) Received: from ?IPv6:2604:6000:f441:f900:65fd:8a94:88cb:698a? ([2604:6000:f441:f900:65fd:8a94:88cb:698a]) by mx.google.com with ESMTPSA id 11sm33887723qgv.20.2014.04.18.07.01.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Apr 2014 07:01:34 -0700 (PDT) Message-ID: <5351303F.10502@gmail.com> Date: Fri, 18 Apr 2014 10:01:35 -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> In-Reply-To: <2017095.mMc6i6RRhN@eve> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 13329990-7fe4-4244-aa2a-b67cd58d81ff X-Archives-Hash: 35bca8957637e24a68b86c3930da0aa3 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/re58.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