* [gentoo-user] Gentoo 2006.0 and udev
@ 2006-08-25 9:04 sdoma
2006-08-25 9:32 ` Dirk Heinrichs
2006-08-25 9:50 ` Richard Fish
0 siblings, 2 replies; 16+ messages in thread
From: sdoma @ 2006-08-25 9:04 UTC (permalink / raw
To: gentoo-user
Hi again,
As the handbook mentioned udev is default for Gentoo now.
I have 1479 devices and directories in /dev after startup Hmmm, wasn't
udev (and formerly devfs) meant to have only the devices needed?
Is hotplug still an issue or is it started by bootmisc? If i plug in my
USB stick (yes, I do have USB UHCI, EHCI, OHCI mass storage compiled
into the kernel) I can't mount it.
I remember some discussion about hotplug/coldplug and if coldplug makes
sense at all.
On the ~x86 installation based on 2005.0 there was no node in /dev for
sd*. If I plugged in the stick sda and sda1 came up and I could mount
sda1.
My questions:
Is the Gentoo UDEEV guide still valid for 2006.0?
How do I get rid of all these unneeded device nodes in /dev?
How do I ensure that devices plugged in while the system is up and
running arise (Emerging hotplug and add it to the default runlevel,
right?)?
Thanks in advance
Frank
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 9:04 [gentoo-user] Gentoo 2006.0 and udev sdoma
@ 2006-08-25 9:32 ` Dirk Heinrichs
2006-08-25 12:19 ` sdoma
2006-08-25 20:56 ` Dale
2006-08-25 9:50 ` Richard Fish
1 sibling, 2 replies; 16+ messages in thread
From: Dirk Heinrichs @ 2006-08-25 9:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]
Am Freitag, 25. August 2006 11:04 schrieb ext sdoma:
> As the handbook mentioned udev is default for Gentoo now.
>
> I have 1479 devices and directories in /dev after startup Hmmm, wasn't
> udev (and formerly devfs) meant to have only the devices needed?
Did you set RC_DEVICE_TARBALL to "no" in /etc/conf.d/rc? If not, Gentoo will
store a tarfile of devices at shutdown and restore them at startup.
> My questions:
> How do I get rid of all these unneeded device nodes in /dev?
1) Set RC_DEVICE_TARBALL to "no".
2) rm /lib/udev-state/devices.tar.bz2
3) boot from a live CD, mount your root fs and remove everything
from /yourroot/dev except console, null and initctl
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55 | Web: http://www.capgemini.com
D-40472 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 9:04 [gentoo-user] Gentoo 2006.0 and udev sdoma
2006-08-25 9:32 ` Dirk Heinrichs
@ 2006-08-25 9:50 ` Richard Fish
2006-08-25 19:20 ` Mick
1 sibling, 1 reply; 16+ messages in thread
From: Richard Fish @ 2006-08-25 9:50 UTC (permalink / raw
To: gentoo-user
On 8/25/06, sdoma <sdoma@karneval.cz> wrote:
> Is hotplug still an issue or is it started by bootmisc? If i plug in my
> USB stick (yes, I do have USB UHCI, EHCI, OHCI mass storage compiled
> into the kernel) I can't mount it.
The hotplug init script doesn't do anything anymore, it's functions
have been taken over by udev. There have been issues on and off of
conflicts between udev and the hotplug package, but nothing current
that I am aware of.
You can't mount it....why? Is there no device being created?
udevmonitor may help to figure out why...
> I remember some discussion about hotplug/coldplug and if coldplug makes
> sense at all.
Coldplug is dead and gone, usurped by udev.
> How do I ensure that devices plugged in while the system is up and
> running arise (Emerging hotplug and add it to the default runlevel,
> right?)?
No, just use current versions of the kernel and udev.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 9:32 ` Dirk Heinrichs
@ 2006-08-25 12:19 ` sdoma
2006-08-25 20:56 ` Dale
1 sibling, 0 replies; 16+ messages in thread
From: sdoma @ 2006-08-25 12:19 UTC (permalink / raw
To: gentoo-user
Yes, now I remember. I had this tarball issue with 2005.0 already,
thanks.
Regarding to the issue with sd* ... call me a numb ;o) ... i forgot to
build SCSI disk support into the kernel 8-|
No up to the main part of my holiday plans ... reinstall my (LFS based)
WiFi AP to be Gentoo too. ;)))
Regards
Frank
On Fri, 2006-08-25 at 11:32 +0200, Dirk Heinrichs wrote:
> Am Freitag, 25. August 2006 11:04 schrieb ext sdoma:
>
> > As the handbook mentioned udev is default for Gentoo now.
> >
> > I have 1479 devices and directories in /dev after startup Hmmm, wasn't
> > udev (and formerly devfs) meant to have only the devices needed?
>
> Did you set RC_DEVICE_TARBALL to "no" in /etc/conf.d/rc? If not, Gentoo will
> store a tarfile of devices at shutdown and restore them at startup.
>
> > My questions:
> > How do I get rid of all these unneeded device nodes in /dev?
>
> 1) Set RC_DEVICE_TARBALL to "no".
> 2) rm /lib/udev-state/devices.tar.bz2
> 3) boot from a live CD, mount your root fs and remove everything
> from /yourroot/dev except console, null and initctl
>
> Bye...
>
> Dirk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 9:50 ` Richard Fish
@ 2006-08-25 19:20 ` Mick
2006-08-25 21:06 ` Richard Fish
0 siblings, 1 reply; 16+ messages in thread
From: Mick @ 2006-08-25 19:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 475 bytes --]
On Friday 25 August 2006 10:50, Richard Fish wrote:
> > I remember some discussion about hotplug/coldplug and if coldplug makes
> > sense at all.
>
> Coldplug is dead and gone, usurped by udev.
I know what you're saying, but I seem to still have coldplug in my boot
runlevel and of course it kicks in every time I boot. I have not noticed any
errors. Shouldn't it have been removed automatically through the baselayout
and udev updates?
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 9:32 ` Dirk Heinrichs
2006-08-25 12:19 ` sdoma
@ 2006-08-25 20:56 ` Dale
2006-08-25 21:18 ` Daniel Pielmeier
1 sibling, 1 reply; 16+ messages in thread
From: Dale @ 2006-08-25 20:56 UTC (permalink / raw
To: gentoo-user
Dirk Heinrichs wrote:
>
> Did you set RC_DEVICE_TARBALL to "no" in /etc/conf.d/rc? If not, Gentoo will
> store a tarfile of devices at shutdown and restore them at startup.
>
I have mine set to no and it is full of stuff. According to Konqueror
it has 654 files and 13 folders. Is that right? That is a lot of stuff.
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 19:20 ` Mick
@ 2006-08-25 21:06 ` Richard Fish
2006-08-25 22:53 ` Mick
0 siblings, 1 reply; 16+ messages in thread
From: Richard Fish @ 2006-08-25 21:06 UTC (permalink / raw
To: gentoo-user
On 8/25/06, Mick <michaelkintzios@gmail.com> wrote:
> On Friday 25 August 2006 10:50, Richard Fish wrote:
> > > I remember some discussion about hotplug/coldplug and if coldplug makes
> > > sense at all.
> >
> > Coldplug is dead and gone, usurped by udev.
>
> I know what you're saying, but I seem to still have coldplug in my boot
> runlevel and of course it kicks in every time I boot. I have not noticed any
> errors. Shouldn't it have been removed automatically through the baselayout
> and udev updates?
Yeah, udev >= 089 blocks coldplug, so the init script should have been
removed, assuming you have upgraded to udev >= 089.
But perhaps you don't have /etc/init.d in CONFIG_PROTECT_MASK? In
this case, portage will consider the init scripts to be configuration
files, and will not remove them when the associated package is
removed.
carcharias rjf # emerge --info | grep CONFIG_PROTECT
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash
/etc/terminfo"
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 20:56 ` Dale
@ 2006-08-25 21:18 ` Daniel Pielmeier
2006-08-26 0:47 ` Dale
0 siblings, 1 reply; 16+ messages in thread
From: Daniel Pielmeier @ 2006-08-25 21:18 UTC (permalink / raw
To: gentoo-user
> I have mine set to no and it is full of stuff. According to Konqueror
> it has 654 files and 13 folders. Is that right? That is a lot of stuff.
I think it is.
After setting RC_DEVICE_TARBALL to "no" and removing everything except
/dev/console and /dev/null by using the gentoo live-cd, the number of my
devices decreased to 850 from formerly 5200.
A note for everybody who uses gensplash and splashutils. After i deleted
the device files and rebooted the silent mode refused to work. So i
decided to reemerge splashutils. But this is not necessary. After
installing, the ebuild checks for missing devices, which was in my case
/dev/tty1.
Here is the output from emerge which solved my problem!
It appears that the /dev/tty1 character device doesn't exist on
the root filesystem. This will prevent the silent mode from working
properly. You can fix the problem by doing:
mount --bind / /lib/splash/tmp
mknod /lib/splash/tmp/dev/tty1 c 4 1
umount /lib/splash/tmp
I hope this helps to avoid confusion!
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 21:06 ` Richard Fish
@ 2006-08-25 22:53 ` Mick
2006-08-26 8:16 ` Neil Bothwick
0 siblings, 1 reply; 16+ messages in thread
From: Mick @ 2006-08-25 22:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
On Friday 25 August 2006 22:06, Richard Fish wrote:
> Yeah, udev >= 089 blocks coldplug, so the init script should have been
> removed, assuming you have upgraded to udev >= 089.
OK, I'm still on stable: sys-fs/udev-087-r1
> carcharias rjf # emerge --info | grep CONFIG_PROTECT
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
> CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
> /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash
> /etc/terminfo"
Thanks. I do not have init.d scripts masked, so it should be updated
accordingly when I upgrade udev. I'll keep an eye out for it.
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 21:18 ` Daniel Pielmeier
@ 2006-08-26 0:47 ` Dale
2006-08-26 1:11 ` Richard Fish
2006-08-26 8:55 ` Daniel Pielmeier
0 siblings, 2 replies; 16+ messages in thread
From: Dale @ 2006-08-26 0:47 UTC (permalink / raw
To: gentoo-user
Daniel Pielmeier wrote:
>> I have mine set to no and it is full of stuff. According to Konqueror
>> it has 654 files and 13 folders. Is that right? That is a lot of
>> stuff.
>
> I think it is.
>
> After setting RC_DEVICE_TARBALL to "no" and removing everything except
> /dev/console and /dev/null by using the gentoo live-cd, the number of
> my devices decreased to 850 from formerly 5200.
>
> A note for everybody who uses gensplash and splashutils. After i
> deleted the device files and rebooted the silent mode refused to work.
> So i decided to reemerge splashutils. But this is not necessary. After
> installing, the ebuild checks for missing devices, which was in my
> case /dev/tty1.
>
> Here is the output from emerge which solved my problem!
>
> It appears that the /dev/tty1 character device doesn't exist on
> the root filesystem. This will prevent the silent mode from working
> properly. You can fix the problem by doing:
>
> mount --bind / /lib/splash/tmp
> mknod /lib/splash/tmp/dev/tty1 c 4 1
> umount /lib/splash/tmp
>
> I hope this helps to avoid confusion!
>
> Daniel
So doing a rm -rf /dev/* would be a bad idea? Can I just move them and
then copy them back? Or is what I have normal number wise?
Full of questions ain't I?
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-26 0:47 ` Dale
@ 2006-08-26 1:11 ` Richard Fish
2006-08-26 3:19 ` Dale
2006-08-26 8:55 ` Daniel Pielmeier
1 sibling, 1 reply; 16+ messages in thread
From: Richard Fish @ 2006-08-26 1:11 UTC (permalink / raw
To: gentoo-user
On 8/25/06, Dale <teendale@vista-express.com> wrote:
> Daniel Pielmeier wrote:
> >> I have mine set to no and it is full of stuff. According to Konqueror
> >> it has 654 files and 13 folders. Is that right? That is a lot of
> >> stuff.
> >
> > I think it is.
> >
> > After setting RC_DEVICE_TARBALL to "no" and removing everything except
> > /dev/console and /dev/null by using the gentoo live-cd, the number of
> > my devices decreased to 850 from formerly 5200.
>
> So doing a rm -rf /dev/* would be a bad idea? Can I just move them and
> then copy them back? Or is what I have normal number wise?
You apparently missed the part of Daniel's email where he said you
have a "normal" number. Several hundred device nodes is normal (850
for Daniel, 932 here). The vast majority of which (577) are tty or
pty devices that will be on all systems. So yeah, you should be fine.
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-26 1:11 ` Richard Fish
@ 2006-08-26 3:19 ` Dale
0 siblings, 0 replies; 16+ messages in thread
From: Dale @ 2006-08-26 3:19 UTC (permalink / raw
To: gentoo-user
Richard Fish wrote:
>
> You apparently missed the part of Daniel's email where he said you
> have a "normal" number. Several hundred device nodes is normal (850
> for Daniel, 932 here). The vast majority of which (577) are tty or
> pty devices that will be on all systems. So yeah, you should be fine.
>
> -Richard
That was one reason I asked. I noticed that they had a similar number
to mine. I just don't have a lot of stuff hooked up here. I guess it
all works OK then.
Thanks,
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-25 22:53 ` Mick
@ 2006-08-26 8:16 ` Neil Bothwick
0 siblings, 0 replies; 16+ messages in thread
From: Neil Bothwick @ 2006-08-26 8:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 836 bytes --]
On Fri, 25 Aug 2006 23:53:31 +0100, Mick wrote:
> > carcharias rjf # emerge --info | grep CONFIG_PROTECT
> > CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> > /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
> > CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
> > /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash
> > /etc/terminfo"
>
> Thanks. I do not have init.d scripts masked, so it should be updated
> accordingly when I upgrade udev. I'll keep an eye out for it.
It's the other way round, the mask is for CONFIG_PROTECT, so if the
directory is not masked, the files will be protected from updates. You'll
have to run dispatch-conf or similar to update them.
--
Neil Bothwick
Where do forest rangers go to "get away from it all?"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-26 0:47 ` Dale
2006-08-26 1:11 ` Richard Fish
@ 2006-08-26 8:55 ` Daniel Pielmeier
2006-08-26 9:16 ` Neil Bothwick
1 sibling, 1 reply; 16+ messages in thread
From: Daniel Pielmeier @ 2006-08-26 8:55 UTC (permalink / raw
To: gentoo-user
>> A note for everybody who uses gensplash and splashutils. After i
>> deleted the device files and rebooted the silent mode refused to work.
>> So i decided to reemerge splashutils. But this is not necessary. After
>> installing, the ebuild checks for missing devices, which was in my
>> case /dev/tty1.
>>
>> Here is the output from emerge which solved my problem!
>>
>> It appears that the /dev/tty1 character device doesn't exist on
>> the root filesystem. This will prevent the silent mode from working
>> properly. You can fix the problem by doing:
>>
>> mount --bind / /lib/splash/tmp
>> mknod /lib/splash/tmp/dev/tty1 c 4 1
>> umount /lib/splash/tmp
>>
>> I hope this helps to avoid confusion!
>>
>> Daniel
>
> So doing a rm -rf /dev/* would be a bad idea? Can I just move them and
> then copy them back? Or is what I have normal number wise?
>
> Full of questions ain't I?
>
> Dale
>
> :-) :-)
I have filed a bug [1] to gentoo documentation for adding a hint to
splashutils users.
Until now i just get a: "WORKSFORME, i must have missconfigured something!".
But what? Is it possible that /dev/tty1 is not in place at these early
moments of booting when it is needed by splashutils?
http://bugs.gentoo.org/show_bug.cgi?id=145118
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-26 8:55 ` Daniel Pielmeier
@ 2006-08-26 9:16 ` Neil Bothwick
2006-08-26 9:29 ` Daniel Pielmeier
0 siblings, 1 reply; 16+ messages in thread
From: Neil Bothwick @ 2006-08-26 9:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
On Sat, 26 Aug 2006 10:55:31 +0200, Daniel Pielmeier wrote:
> But what? Is it possible that /dev/tty1 is not in place at these early
> moments of booting when it is needed by splashutils?
Yes, because the splash stuff runs before udevstart, so you need a static
device node for anything required by splash.
--
Neil Bothwick
I used to live in the real world, but I got evicted.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Gentoo 2006.0 and udev
2006-08-26 9:16 ` Neil Bothwick
@ 2006-08-26 9:29 ` Daniel Pielmeier
0 siblings, 0 replies; 16+ messages in thread
From: Daniel Pielmeier @ 2006-08-26 9:29 UTC (permalink / raw
To: gentoo-user
Neil Bothwick schrieb:
> On Sat, 26 Aug 2006 10:55:31 +0200, Daniel Pielmeier wrote:
>
>> But what? Is it possible that /dev/tty1 is not in place at these early
>> moments of booting when it is needed by splashutils?
>
> Yes, because the splash stuff runs before udevstart, so you need a static
> device node for anything required by splash.
>
>
Yes i think so too, the splash-screen appears immediately after choosing
the grub entry. This is much ealier then the dev Filesystem is
populated, so i think i am right in filing a bug concerning this.
Everybody who does not re-emerge splashutils will not get the hint about
the missing device. So just adding this to the guide will avoid problems
concerning this!
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2006-08-26 9:34 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25 9:04 [gentoo-user] Gentoo 2006.0 and udev sdoma
2006-08-25 9:32 ` Dirk Heinrichs
2006-08-25 12:19 ` sdoma
2006-08-25 20:56 ` Dale
2006-08-25 21:18 ` Daniel Pielmeier
2006-08-26 0:47 ` Dale
2006-08-26 1:11 ` Richard Fish
2006-08-26 3:19 ` Dale
2006-08-26 8:55 ` Daniel Pielmeier
2006-08-26 9:16 ` Neil Bothwick
2006-08-26 9:29 ` Daniel Pielmeier
2006-08-25 9:50 ` Richard Fish
2006-08-25 19:20 ` Mick
2006-08-25 21:06 ` Richard Fish
2006-08-25 22:53 ` Mick
2006-08-26 8:16 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox