* [gentoo-user] boot problem since devfs-udev switch
@ 2005-07-27 15:29 Volker Armin Hemmann
2005-07-28 6:51 ` Zarick Lau
0 siblings, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2005-07-27 15:29 UTC (permalink / raw
To: Gentoo user
Hi,
I switched from devfs to udev 10 days ago, and since then every
nth boot will hang at 'initializing random number generator'
I had at least one udev-update since then, without changes.
The box reacts to the sysrq-keys, so I am able to reboot - and the reboot is
always successfull.
I followed the udev-guide here:
http://www.gentoo.org/doc/en/udev-guide.xml
without the tarball, and the test mentioned there was succesfull (/dev/null
and /dev/console were there).
I googled a little bit, but found nothing.
Has someone a clue, where to look?
Glück Auf
Volker
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-27 15:29 [gentoo-user] boot problem since devfs-udev switch Volker Armin Hemmann
@ 2005-07-28 6:51 ` Zarick Lau
2005-07-28 15:58 ` Volker Armin Hemmann
0 siblings, 1 reply; 9+ messages in thread
From: Zarick Lau @ 2005-07-28 6:51 UTC (permalink / raw
To: Gentoo user
Hi,
>
> I switched from devfs to udev 10 days ago, and since then every
> nth boot will hang at 'initializing random number generator'
>
It try to read a /dev/urandom, does this device node created properly by
udev. In my box, there is corresponding rules in udev setting.
Cheers,
Zarick Lau
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-28 6:51 ` Zarick Lau
@ 2005-07-28 15:58 ` Volker Armin Hemmann
2005-07-28 18:59 ` Zac Medico
0 siblings, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2005-07-28 15:58 UTC (permalink / raw
To: Gentoo user
Hi,
On Thursday 28 July 2005 08:51, Zarick Lau wrote:
> Hi,
>
> > I switched from devfs to udev 10 days ago, and since then every
> > nth boot will hang at 'initializing random number generator'
>
> It try to read a /dev/urandom, does this device node created properly by
> udev. In my box, there is corresponding rules in udev setting.
>
> Cheers,
> Zarick Lau
grep -R 'urandom' /etc/udev/
/etc/udev/udev.permissions:urandom:root:root:0444
/etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k", MODE="0444"
I would say 'yes it is there' ;)
Hm, one more: it does not matter, if it is a coldboot, or a reboot. Sometimes
it hangs. sometimes it hangs not.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-28 15:58 ` Volker Armin Hemmann
@ 2005-07-28 18:59 ` Zac Medico
2005-07-28 19:57 ` Volker Armin Hemmann
0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2005-07-28 18:59 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann wrote:
> Hi,
>
> On Thursday 28 July 2005 08:51, Zarick Lau wrote:
>
>>Hi,
>>
>>
>>>I switched from devfs to udev 10 days ago, and since then every
>>>nth boot will hang at 'initializing random number generator'
>>
>>It try to read a /dev/urandom, does this device node created properly by
>>udev. In my box, there is corresponding rules in udev setting.
>>
>>Cheers,
>>Zarick Lau
>
>
> grep -R 'urandom' /etc/udev/
> /etc/udev/udev.permissions:urandom:root:root:0444
> /etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k", MODE="0444"
>
> I would say 'yes it is there' ;)
>
> Hm, one more: it does not matter, if it is a coldboot, or a reboot. Sometimes
> it hangs. sometimes it hangs not.
It must be a problem with the urandom driver in your kernel because the urandom(4) manpage says that "A read from the /dev/urandom device will not block waiting for more entropy".
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-28 18:59 ` Zac Medico
@ 2005-07-28 19:57 ` Volker Armin Hemmann
2005-07-28 20:29 ` Zac Medico
0 siblings, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2005-07-28 19:57 UTC (permalink / raw
To: gentoo-user
On Thursday 28 July 2005 20:59, Zac Medico wrote:
> Volker Armin Hemmann wrote:
> > Hi,
> >
> > On Thursday 28 July 2005 08:51, Zarick Lau wrote:
> >>Hi,
> >>
> >>>I switched from devfs to udev 10 days ago, and since then every
> >>>nth boot will hang at 'initializing random number generator'
> >>
> >>It try to read a /dev/urandom, does this device node created properly by
> >>udev. In my box, there is corresponding rules in udev setting.
> >>
> >>Cheers,
> >>Zarick Lau
> >
> > grep -R 'urandom' /etc/udev/
> > /etc/udev/udev.permissions:urandom:root:root:0444
> > /etc/udev/rules.d/50-udev.rules:KERNEL=="urandom", NAME="%k",
> > MODE="0444"
> >
> > I would say 'yes it is there' ;)
> >
> > Hm, one more: it does not matter, if it is a coldboot, or a reboot.
> > Sometimes it hangs. sometimes it hangs not.
>
> It must be a problem with the urandom driver in your kernel because the
> urandom(4) manpage says that "A read from the /dev/urandom device will not
> block waiting for more entropy".
>
> Zac
uname -a
Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 AMD
Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
it bootet fine with devfs, oh, and the config is the same since ages, three
days later, I switched to udev.
Btw, I greped the config for random/urandom, there was nothing found. Hm,
where should I look?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-28 19:57 ` Volker Armin Hemmann
@ 2005-07-28 20:29 ` Zac Medico
2005-07-29 5:28 ` Richard Fish
0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2005-07-28 20:29 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann wrote:
>
> uname -a
> Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686 AMD
> Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
>
> it bootet fine with devfs, oh, and the config is the same since ages, three
> days later, I switched to udev.
>
> Btw, I greped the config for random/urandom, there was nothing found. Hm,
> where should I look?
>
There's no Kconfig option because the random number generator is a required feature. I don't see how it could be a udev issue because the /dev/urandom device file is either there or not and after that it's the kernel's responsibility. I would build a new kernel.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-28 20:29 ` Zac Medico
@ 2005-07-29 5:28 ` Richard Fish
2005-07-29 14:46 ` Volker Armin Hemmann
0 siblings, 1 reply; 9+ messages in thread
From: Richard Fish @ 2005-07-29 5:28 UTC (permalink / raw
To: gentoo-user
Zac Medico wrote:
> Volker Armin Hemmann wrote:
>
>>
>> uname -a
>> Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686
>> AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
>>
>> it bootet fine with devfs, oh, and the config is the same since ages,
>> three days later, I switched to udev.
>>
>> Btw, I greped the config for random/urandom, there was nothing found.
>> Hm, where should I look?
>>
>
> There's no Kconfig option because the random number generator is a
> required feature. I don't see how it could be a udev issue because
> the /dev/urandom device file is either there or not and after that
> it's the kernel's responsibility. I would build a new kernel.
>
> Zac
You can pretty quickly determine if it is a kernel problem or a udev
problem by adding a
'ls -l /dev/urandom' to /etc/init.d/urandom:
start() {
[...]
ls -l /dev/urandom # debug strangeness
ebegin "Initializing random number generator"
umask 077
dd if=/dev/urandom of=/var/run/random-seed count=1 &> /dev/null
Also, only the display options for devfs were removed from 2.6.12, the
code and config option in .config are still there. Can you double check
your kernel config, and make sure that "# CONFIG_DEVFS_FS is not set".
I think if you copied an old kernel config, you could have devfs support
still in your kernel, which might cause some strange behavior. I'm not
sure.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-29 5:28 ` Richard Fish
@ 2005-07-29 14:46 ` Volker Armin Hemmann
2005-07-29 18:01 ` Zac Medico
0 siblings, 1 reply; 9+ messages in thread
From: Volker Armin Hemmann @ 2005-07-29 14:46 UTC (permalink / raw
To: gentoo-user
On Friday 29 July 2005 07:28, Richard Fish wrote:
> Zac Medico wrote:
> > Volker Armin Hemmann wrote:
> >> uname -a
> >> Linux energy 2.6.12-gentoo-r4 #2 Thu Jul 14 07:37:15 CEST 2005 i686
> >> AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux
> >>
> >> it bootet fine with devfs, oh, and the config is the same since ages,
> >> three days later, I switched to udev.
> >>
> >> Btw, I greped the config for random/urandom, there was nothing found.
> >> Hm, where should I look?
> >
> > There's no Kconfig option because the random number generator is a
> > required feature. I don't see how it could be a udev issue because
> > the /dev/urandom device file is either there or not and after that
> > it's the kernel's responsibility. I would build a new kernel.
> >
> > Zac
>
> You can pretty quickly determine if it is a kernel problem or a udev
> problem by adding a
> 'ls -l /dev/urandom' to /etc/init.d/urandom:
>
> start() {
> [...]
> ls -l /dev/urandom # debug strangeness
> ebegin "Initializing random number generator"
> umask 077
> dd if=/dev/urandom of=/var/run/random-seed count=1 &> /dev/null
>
> Also, only the display options for devfs were removed from 2.6.12, the
> code and config option in .config are still there. Can you double check
> your kernel config, and make sure that "# CONFIG_DEVFS_FS is not set".
> I think if you copied an old kernel config, you could have devfs support
> still in your kernel, which might cause some strange behavior. I'm not
> sure.
>
> -Richard
I had devfs still in kernel, but no automount and gentoo=nodevfs in grub.conf.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] boot problem since devfs-udev switch
2005-07-29 14:46 ` Volker Armin Hemmann
@ 2005-07-29 18:01 ` Zac Medico
0 siblings, 0 replies; 9+ messages in thread
From: Zac Medico @ 2005-07-29 18:01 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann wrote:
> I had devfs still in kernel, but no automount and gentoo=nodevfs in grub.conf.
That's how my mine was for the longest time with no problems. Recently I've removed devfs from my config because everybody must, sooner or later.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-07-29 18:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 15:29 [gentoo-user] boot problem since devfs-udev switch Volker Armin Hemmann
2005-07-28 6:51 ` Zarick Lau
2005-07-28 15:58 ` Volker Armin Hemmann
2005-07-28 18:59 ` Zac Medico
2005-07-28 19:57 ` Volker Armin Hemmann
2005-07-28 20:29 ` Zac Medico
2005-07-29 5:28 ` Richard Fish
2005-07-29 14:46 ` Volker Armin Hemmann
2005-07-29 18:01 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox