Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev + devfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
thegiorgio
n00b
n00b


Joined: 16 Apr 2003
Posts: 11

PostPosted: Sat Apr 09, 2005 1:33 pm    Post subject: udev + devfs Reply with quote

Hi all !

I have seen a lot of topics about migrating from devfs to udev. I did that myself but unfortunately, evms for the boot partition is not working anymore, nvidia modules are not loading automatically..... well, all sort of issues..... But it can be easier: what is always missing from udev guides is that you don't have to remove devfs to get all the udev/hal magic to happen ( like automagic usb key detection and mount on your desktop etc.... ). And it's really easy to do !!!!! You just have to install hal and everything as usual and then configure udev to use /udev instead of /dev.

    Create /udev

Code:
mkdir /udev

    Edit /etc/udev.conf and change /dev to /udev
    Code:

    # udev_root - where in the filesystem to place the device nodes
    udev_root="/udev/"

    # udev_db - The name and location of the udev database.
    #           NOTE: this should be somewhere that is writable before
    #                 / is mounted rw, like /dev ...
    udev_db="/udev/.udev.tdb"


    Do not change your boot loader to use udev, use devfs as usual


That way you get all fancy udev features + everything else is working as usual !!!!!!

Cheers,

Giorgio
_________________
--
Giorgio
Back to top
View user's profile Send private message
soya
Guru
Guru


Joined: 29 Jan 2004
Posts: 425

PostPosted: Sat Apr 09, 2005 3:57 pm    Post subject: Reply with quote

are you sure you're using udev that way? if no one inicialise it, it is not running.
just a comment :)
_________________
Si el tonto te alaba lamentalo, si el listo te censura piensalo...
Back to top
View user's profile Send private message
thegiorgio
n00b
n00b


Joined: 16 Apr 2003
Posts: 11

PostPosted: Sat Apr 09, 2005 8:14 pm    Post subject: Reply with quote

Yes, I do every thing else just like a normal udev install, that means launching hald and dbus daemons on startup. I think that's enough to init udev.
_________________
--
Giorgio
Back to top
View user's profile Send private message
niffs
Apprentice
Apprentice


Joined: 25 Apr 2004
Posts: 212
Location: The Wired

PostPosted: Mon Apr 11, 2005 5:54 am    Post subject: Reply with quote

I didn't have trouble converting to udev... Why would you want two device managers? Isn't it a waste of CPU/MEM? I don't have HAL or DBUS merged, but it works fine for me. Don't the init scripts check the kernel arguments to determine whether to use UDev or DevFS not DBUS/HAL?
_________________
No matter where you are... everyone is always connected.
[ .: my website :. ]
Back to top
View user's profile Send private message
thegiorgio
n00b
n00b


Joined: 16 Apr 2003
Posts: 11

PostPosted: Mon Apr 11, 2005 7:09 am    Post subject: Reply with quote

Yeah, the problem is that some things do not yet work in udev like evms on the root partition at boot. Besides it doesn't take any cpu cycles maybe a very little amount of RAM ( under 1 Mb I think ). But it helped me a lot because I can't boot in a simple way using udev, I have to change my initrd to intialise udev and that's not easy because you have to put a lot of files/binaries in your initrd image and do something that's ok for the gentoo udev scripts initialising afterwards.
I think it can help other people with hardware/features not yet supported by udev, and I am not the only one looking at all the threads about udev isssues :)
_________________
--
Giorgio
Back to top
View user's profile Send private message
niffs
Apprentice
Apprentice


Joined: 25 Apr 2004
Posts: 212
Location: The Wired

PostPosted: Wed Apr 13, 2005 11:32 pm    Post subject: Reply with quote

Right... Udev is still incomplete.
_________________
No matter where you are... everyone is always connected.
[ .: my website :. ]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum