1 |
On 4/18/2014 1:38 PM, Joost Roeleveld wrote: |
2 |
> On Friday 18 April 2014 10:01:35 Brian Hesdorfer wrote: |
3 |
>> On 4/18/2014 9:05 AM, Joost Roeleveld wrote: |
4 |
>>> On Friday 18 April 2014 12:02:01 Thomas Mueller wrote: |
5 |
>>>> Is there a way to make Gentoo or other Linux allow extra time when root |
6 |
>>>> is |
7 |
>>>> on a USB device? Any way to say "just a second" or more like 15 seconds |
8 |
>>>> before aborting with the message that root partition does not exist? |
9 |
>>>> |
10 |
>>>> In this case it's an IDE hard drive in a USB enclosure. |
11 |
>>>> |
12 |
>>>> FreeBSD seems to handle this situation better. I would get a |
13 |
>>>> mountroot> |
14 |
>>>> prompt, to which I would respond |
15 |
>>>> ufs:/dev/ada0p3 |
16 |
>>>> and be good. |
17 |
>>>> |
18 |
>>>> I could avoid this situation with /boot/loader.conf |
19 |
>>>> |
20 |
>>>> legal.realtek.license_ack=1 |
21 |
>>>> rsu-rtl8712fw_load="YES" |
22 |
>>>> kern.cam.scsi_delay="13000" # Delay (in ms) before probing SCSI |
23 |
>>>> kern.cam.boot_delay="16000" # Delay (in ms) of root mount for CAM bus |
24 |
>>>> hint.re.0.disabled="1" |
25 |
>>>> |
26 |
>>>> but don't know if Linux has anything like this. |
27 |
>>>> |
28 |
>>>> Only lines 3 and 4 are relevant to this issue; other lines are for |
29 |
>>>> different issues. |
30 |
>>>> |
31 |
>>>> Tom |
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 |
>> Tiny Core linux, which is primarily booted over usb, does something |
46 |
>> similar. If I'm understanding this right, they have a loop in their |
47 |
>> initrd that just waits a maximum of X seconds until it shows up. |
48 |
>> |
49 |
>> I'm not sure how easy this would be to move into something else. |
50 |
>> |
51 |
>> Lines 114-128: |
52 |
>> http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/tree/etc/init.d/ |
53 |
>> tc-config |
54 |
> " rootdelay " is a standard linux kernel option. No need to use a special |
55 |
> script. |
56 |
> |
57 |
> -- |
58 |
> Joost |
59 |
|
60 |
Agreed! Hadn't heard of that option until you mentioned it. Learn a new |
61 |
thing everyday :) |