Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Malfunctioning udev?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
NiBe
n00b
n00b
Posts: 38
Joined: Thu Jan 08, 2004 8:39 pm

Malfunctioning udev?

  • Quote

Post by NiBe » Fri Jan 21, 2005 8:10 pm

When changing kernel from 2.6.7 to 2.6.10 i decided to ditch devfs in favor of udev. After the reboot i noticed that /dev looked like the "classic" /dev. With classic i mean fully populated, with i.e disk-partitions i didn't have, or disks i didn't have for that matter. /dev/mouse did'nt exist either so i symlinked it to /dev/psaux to fix it.

Bootscripts told me everything went fine, and when using udevinfo, it tells me that for example /dev/hda is in place and working, while /dev/hdd is not in the database, but sure as hell is in /dev.

Anything I could've forgotten to do? the udev-config(s) are untouched.

This thread is placed here since i suspect a malfunctioning rc-script somewhere.
Bus error - Driver executed
Top
Naib
Watchman
Watchman
User avatar
Posts: 6101
Joined: Fri May 21, 2004 9:42 pm
Location: Removed by Neddy
Contact:
Contact Naib
Website

  • Quote

Post by Naib » Fri Jan 21, 2005 8:22 pm

The chances are you are using a udev-TAR.
Basically udev has the option to make a tar file of your /dev directory. This is unzipped every boot.

This is probably why you have all those extra nodes.

check out

/etc/conf.d/rc

there is a:

Code: Select all

# UDEV OPTION:
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup.  This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.

RC_DEVICE_TARBALL="no"

Bit I have set it to No since I dont want a tarball made.


Also as to the mouse, making a symlink is not the best way to do it. that symlink will stay there once you shutdown and thus you will not have an empty /dev (the point of udev)

I had a similar problem with my xorg and udev with respect to my mouse.

udev made /dev/input/mouse0 but I had in xorg /dev/usbmouse.

so what I did was made a udev rule to make the nessasary symlinks

Code: Select all

jrb@Fluid / $ cat /etc/udev/rules.d/10-local.rules
############################
# Local Machine Udev rules #
############################

BUS="scsi", KERNEL="sd*", SYSFS(serial)="B8177840FE1CB499", NAME="%k", SYMLINK="usbkey"

#BUS="usb", KERNEL="ub*", SYSFS(serial)="B8177840FE1CB499", NAME="%k", SYMLINK="usbkey"


BUS="usb", SYSFS{serial}="509DLT", NAME="usb/%k", SYMLINK="canon_i550"

KERNEL="mice",          NAME="input/%k", SYMLINK="usbmouse"
KERNEL="js*",           NAME="input/%k", SYMLINK="%k"


as you can see with the
KERNEL="mice", NAME="input/%k", SYMLINK="usbmouse"

I get udev to make a symlink called "usbmouse" for the device in /dev/input/
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Top
niberg
n00b
n00b
Posts: 17
Joined: Sat Jan 22, 2005 10:42 am
Location: Gothenburg, Sweden

  • Quote

Post by niberg » Sat Jan 22, 2005 10:49 am

Thanks, worked perfectly on both accounts.
(Yes, his is nibe. The forum appears to have forgotten to send me an e-mail when changing my address in the forum profile...)
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic