Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Allow delay for booting from USB device?
Date: Fri, 18 Apr 2014 17:38:22
Message-Id: 4741385.8Ux8OeznYq@eve
In Reply to: Re: [gentoo-user] Allow delay for booting from USB device? by Brian Hesdorfer
1 On Friday 18 April 2014 10:01:35 Brian Hesdorfer wrote:
2 > On 4/18/2014 9:05 AM, Joost Roeleveld wrote:
3 > > On Friday 18 April 2014 12:02:01 Thomas Mueller wrote:
4 > >> Is there a way to make Gentoo or other Linux allow extra time when root
5 > >> is
6 > >> on a USB device? Any way to say "just a second" or more like 15 seconds
7 > >> before aborting with the message that root partition does not exist?
8 > >>
9 > >> In this case it's an IDE hard drive in a USB enclosure.
10 > >>
11 > >> FreeBSD seems to handle this situation better. I would get a
12 > >> mountroot>
13 > >> prompt, to which I would respond
14 > >> ufs:/dev/ada0p3
15 > >> and be good.
16 > >>
17 > >> I could avoid this situation with /boot/loader.conf
18 > >>
19 > >> legal.realtek.license_ack=1
20 > >> rsu-rtl8712fw_load="YES"
21 > >> kern.cam.scsi_delay="13000" # Delay (in ms) before probing SCSI
22 > >> kern.cam.boot_delay="16000" # Delay (in ms) of root mount for CAM bus
23 > >> hint.re.0.disabled="1"
24 > >>
25 > >> but don't know if Linux has anything like this.
26 > >>
27 > >> Only lines 3 and 4 are relevant to this issue; other lines are for
28 > >> different issues.
29 > >>
30 > >> Tom
31 > >
32 > > Try adding " rootdelay = 15 " to the kernel commandline.
33 > > This should make the kernel wait 15 seconds before trying to access the
34 > > root- device.
35 > >
36 > > See:
37 > > http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/r
38 > > e58.html
39 > >
40 > > I used this myself in the past when booting from USB-devices.
41 > >
42 > > Kind regards,
43 > >
44 > > Joost
45 >
46 > Tiny Core linux, which is primarily booted over usb, does something
47 > similar. If I'm understanding this right, they have a loop in their
48 > initrd that just waits a maximum of X seconds until it shows up.
49 >
50 > I'm not sure how easy this would be to move into something else.
51 >
52 > Lines 114-128:
53 > http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/tree/etc/init.d/
54 > tc-config
55
56 " rootdelay " is a standard linux kernel option. No need to use a special
57 script.
58
59 --
60 Joost

Replies

Subject Author
Re: [gentoo-user] Allow delay for booting from USB device? Brian Hesdorfer <zerophnx@×××××.com>