Gentoo Archives: gentoo-user

From: Daniel Frey <djqfrey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Troubleshooting mounting local filesystems
Date: Wed, 24 Jan 2018 05:57:33
Message-Id: dfe3ef33-2148-4dc3-cc61-0ff7ff99af60@gmail.com
In Reply to: Re: [gentoo-user] Troubleshooting mounting local filesystems by Daniel Frey
1 On 01/21/18 11:15, Daniel Frey wrote:
2 > On 12/31/17 08:28, Daniel Frey wrote:
3 >> On 12/31/17 06:12, Jalus Bilieyich wrote:
4 >>> Did you perform this action:
5 >>>
6 >>> rc-update add localmount default
7 >>>
8 >>> ?
9 >>
10 >> On my machine (as per my other post) it's in the boot runlevel.
11 >>
12 >> Dan
13 >
14 > OK, after turning on some logging I figured out what's happening.
15 >
16 > When localmount runs /dev/sdc has not been created yet. Presumably it is
17 > getting created after localmount runs.
18 >
19 > I suspect that this is because there's a delay during kernel
20 > initialization that loads firmware for some TV tuners I have, and after
21 > this I can see that /dev/sdc is created.
22 >
23 > So the question now is... is it safe to add a delay to localmount? Or is
24 > there a better way (like... can I tell the kernel to wait a few seconds
25 > before running init?)
26 >
27 > As this is mounted twice (local access and nfs access) in fstab, it
28 > would be best to fix it before localmount runs.
29 >
30 > Dan
31
32 OK, I found the rootdelay paramater but it didn't do what it needed
33 (presumably because the root partition wasn't mounted so creating
34 entries in /dev didn't happen any faster.)
35
36 I added the following three lines to add a delay:
37
38 # Delay to allow devices to register
39 einfo "Waiting for RAID devices to settle/register..."
40 sleep 25
41
42 I've rebooted a few times and it starts up correctly now. I don't really
43 care if that PC starts in two seconds, I need it to start up
44 consistently as it's acting as a server.
45
46 Dan