LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-12-2006, 03:18 PM   #1
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 48
udev errors


Well, I normally fix my own problems, but I would appreciate any help on this one...

I am up to date with current, and have udev-097-i486-9 installed (yes, that is very recent, not even on all the mirrors yet) but had same problem with udev-097-i486-8.

I saw a couple of other posts which leads me to think I am not an isolated case.

At boot I get a very large number of messages, here is an example:

udevd-event[1647]: udev_node_symlink: symlink(rd/6, /dev/ram6) failed: File exists
(ok, I probably dont need ram6, but there are hundreds of these messages, that one was just near the end)

When I look in /dev, there are entries there which are old, they go back to 2003 etc, yet I read that /dev entries are now created dynamically on boot, so should I have a clean out? Could I delete all the old entries?

Also, the new udev is loading modules I dont really want, eg 2 different nic drivers. I used to be able to control this with hotplug's blacklist, but how does one do that with udev?

tobyl
 
Old 09-12-2006, 07:56 PM   #2
neural
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
I've encountered the same problem. I don't think clearing them out will fix it either. I jotted down some of the existing files and then used my slackware install cd to boot and mounted the drive so that I could delete several of the existing files under /dev that udev was complaining about. Rebooted and still got the same error messages.
 
Old 09-12-2006, 08:09 PM   #3
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Ya I even got a crash to run fsck when I updated.....
What I normally do is
Code:
/etc/rc.d/rc.udev stop
BEFORE I upgrade
Then install the new version and
Code:
mv /etc/rc.d/rc.udev.new /etc/rc.d/rc.udev
/etc/rc.d/rc.udev start
When I rebooted I wasn't greeted by a crash fof doom. This may not work for everyone but give a try.
 
Old 09-13-2006, 12:49 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Original Poster
Rep: Reputation: 48
Ok, I am starting to get the hang of this (I think)
This is worth a read:

http://vrfy.org/log/recent-state-of-udev.html

at the end is this, which got me saying "Ah, I see"

Files from udev, replacing the hotplug packages content

/etc/hotplug/*.agent -> no longer needed or moved to /lib/udev
/etc/hotplug/*.rc -> replaced by /sys/*/uevent trigger
/etc/hotplug/blacklist -> replaced by "blacklist" option in modprobe.conf
/etc/dev.d/* -> replaced by udev rule RUN key
/etc/hotplug.d/* -> replaced by udev rule RUN key
/sbin/hotplug -> replaced by udevd listening to netlink, only used in
initramfs, until the rootfs can be mounted, than it is disabled

/etc/udev/udev.conf -> main udev config file
/etc/udev/rules.d/* -> udev event matching rules
/lib/udev/devices/* -> static /dev content
/lib/udev/* -> helper programs called from udev rules

/dev/* -> replaced by dynamic udev and static content
in /lib/udev/devices/*

the last line is particularly enlightening.

I have now moved my modprobe.conf to /etc/modprobe.d/modprobe.conf
and I am experimenting with the new way of blacklisting
edit: not sure how yet, /etc/modprobe.d/blacklist perhaps

to be continued....

tobyl

Last edited by tobyl; 09-13-2006 at 01:07 PM.
 
Old 09-13-2006, 04:34 PM   #5
neural
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Well I took a better look at rc.udev as well and then a look at my kernel and noticed that I didn't have tmpfs compiled in even though it seemed to appear in /proc/filesystems

So I recompiled adding tmpfs and now I'm just down to 3 udev error messages rather than a few dozen.

Sep 13 14:15:46 cartman udevd-event[1843]: udev_node_symlink: symlink(md/0, /dev/md0) failed: File exists
Sep 13 14:15:46 cartman udevd-event[1839]: udev_node_symlink: symlink(md/1, /dev/md1) failed: File exists
Sep 13 14:15:46 cartman udevd-event[1841]: udev_node_symlink: symlink(md/2, /dev/md2) failed: File exists

This system is using software raid so I'm not sure what's the issue now.

What prompted me to check tmpfs is when I did an

/etc/rc.d/rc.udev stop
/etc/rc.d/rc.udev start

I got this message

mount: wrong fs type, bad option, bad superblock on tmpfs,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Starting udevd: /sbin/udevd --daemon

The message went away once I made sure tmpfs was added

located under File Systems -> Pseudo Filesystems and labeled as

"Virtual memory file system support (former shm fs)"
 
Old 09-13-2006, 06:32 PM   #6
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Original Poster
Rep: Reputation: 48
Hi neural,

Yes, I noticed from dmesg as it flashed by that I did not have tmpfs compiled in either, I will recompile tomorrow. I'm sure thats the main problem.
I guess your software raid is writing to /dev before udev


in /etc/udev/rules.d/udev.rules:

# md block devices
KERNEL=="md[0-9]*", NAME="md/%n", SYMLINK+="%k", GROUP="disk"

your new /dev might show slightly later modified times for md 3-9 when udev catches up?

tobyl

edit: recompiled with tmpfs as neural did, no errors now...

Last edited by tobyl; 09-14-2006 at 12:27 PM.
 
Old 11-10-2006, 04:06 PM   #7
hackerz12
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Update udev.rules to get rid of the symlink error

I found that if I update the md rule in udev.rules as follows,
that the error messages seem to go away (at least I can't see
them anymore as the boot quickly scrolls by):

Find the md[0-9] rule
Change it to md[0-15]

This is because there are now 0-15 md entries in /dev,
(I happen to be using 0-10) and this seemed to be
the problem.
 
Old 11-10-2006, 06:02 PM   #8
hackerz12
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Still getting errors, never mind

I'm still getting errors with symlinks, never mind my previous "solution." Hopefully someone will figure this one out, even though it's not really a problem.
 
Old 11-11-2006, 05:44 AM   #9
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Original Poster
Rep: Reputation: 48
could you post an example of the errors?
Are they of the type

...........failed: File exists ?

tobyl
 
Old 12-11-2006, 06:31 PM   #10
byteframe
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 62

Rep: Reputation: 15
Found this on Google, mid december 2006, was getting the same udev symlinks errors.

Compiled in tmpfs, and everything was back to normal.
 
Old 12-13-2006, 06:14 AM   #11
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Rep: Reputation: 15
On both of my slack 11 boxes I am got down to 1 error message and the only way to get rid of them was to compile inotify in the kernel.

Still got 1 though....
 
Old 01-01-2007, 06:50 PM   #12
z3r0.0v3rrid3
LQ Newbie
 
Registered: Sep 2006
Posts: 29

Rep: Reputation: 15
Chikne, if your last udev error has something to do with the floppy disk drive (/dev/fd0) I have a tempararly fix, it might not be the best solution to the problem but it works so far.

This fix takes the syslinks and kills them and forces one to use the raw device node, Kernel 2.6.x for some reason like auto load fd0 near the start of everything (even before the filesystem is actually mounted) so I just changed my udev script like so:

edit /etc/udev/rules.d/udev.rules

Replace:
#KERNEL=="fd[0-9]*", NAME="floppy/%n", SYMLINK+="%k", GROUP="floppy", PROGRAM="/lib/udev/floppy-extra-devs.sh %k %b %n"

With this:
KERNEL=="fd[0-9]*", NAME="floppy/%n", GROUP="floppy", PROGRAM="/lib/udev/floppy-extra-devs.sh %k %b %n"


All this does it tell udev not to make symlinks to devices that already exist with the same name as the floppy device node.
 
Old 01-02-2007, 02:59 AM   #13
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Rep: Reputation: 15
Quote:
Originally Posted by z3r0.0v3rrid3
Chikne, if your last udev error has something to do with the floppy disk drive (/dev/fd0) I have a tempararly fix, it might not be the best solution to the problem but it works so far.

This fix takes the syslinks and kills them and forces one to use the raw device node, Kernel 2.6.x for some reason like auto load fd0 near the start of everything (even before the filesystem is actually mounted) so I just changed my udev script like so:

edit /etc/udev/rules.d/udev.rules

Replace:
#KERNEL=="fd[0-9]*", NAME="floppy/%n", SYMLINK+="%k", GROUP="floppy", PROGRAM="/lib/udev/floppy-extra-devs.sh %k %b %n"

With this:
KERNEL=="fd[0-9]*", NAME="floppy/%n", GROUP="floppy", PROGRAM="/lib/udev/floppy-extra-devs.sh %k %b %n"


All this does it tell udev not to make symlinks to devices that already exist with the same name as the floppy device node.
Thanks, all I did was to actually comment out the line and it fixed it. I don't use floppy anyway so....

Did you find that hack yourself?
 
Old 01-02-2007, 11:38 PM   #14
z3r0.0v3rrid3
LQ Newbie
 
Registered: Sep 2006
Posts: 29

Rep: Reputation: 15
Yea, I missed around with the Udev scripts, I have alot of hacks to the default install to make it what I want to do.
 
Old 01-03-2007, 08:18 AM   #15
Chikne
Member
 
Registered: Jul 2006
Distribution: Slackware 11
Posts: 140

Rep: Reputation: 15
It's weird that the problem is there out of the box though isn't it? Not that it was doing any harm but you know what I mean ....
 
  


Reply

Tags
slackware, tmpfs, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM
Udev LinxNew Mandriva 1 05-01-2005 02:47 PM
Udev, Konsole, funky errors atrain Linux - General 16 02-08-2005 05:26 PM
Udev anyone? yanik Debian 5 01-05-2005 09:02 AM


All times are GMT -5. The time now is 02:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration