LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to disable udev for a faster boot? (http://www.linuxquestions.org/questions/linux-hardware-18/how-to-disable-udev-for-a-faster-boot-780180/)

whitehead1415 01-06-2010 01:08 AM

How to disable udev for a faster boot?
 
I am trying to make gentoo boot faster and in my searching I came across this article http://lwn.net/Articles/299483/. One of the things they did was revert to a "persistent, old-school /dev directory so that boot doesn't depend on udev". I would like to know how to do this, but when I searched for disabling udev all the forums say that its a bad idea. All I want to know is how to make a static /dev directory. If someone could tell me how to do this or even just point me in the right direction I would really appreciate it.

business_kid 01-06-2010 04:03 AM

There used to be a MAKEDEV script run at install which made piles of device nodes and left them on disk. udev does it on the fly in a ramdisk, and is generally regarded as superior. That article is done at my guess to raise jaded eyebrows in some conference, and turns the whole system, on it's head to shave a few seconds off boot time. My box is close on 30 seconds before it offers a grub option - why hack things to cut that stage without cutting the bios delay? If you want to boot faster, have you checked out initng?

syg00 01-06-2010 05:25 AM

Hmmm - I don't know I'd call the Linux Plumbers just "some conference" - see here for example.
I haven't had the opportunity to attend, but hopefully a few of the luminaries will be at lca. Always lots of fun.

As an aside, I don't worry too much about boot time - I go get a coffee; everything's up by the time I get back to the box.

business_kid 01-07-2010 03:00 AM

Check out initng. It does it without too much farting about or altering the design of your system. I gather the 'plumbing' referred to is done by software plumbers and not watergate style 'plumbers'

NeddySeagoon 01-09-2010 05:31 AM

whitehead1415,

Try baselayout2 if you are not using it already. Its still in testing but will be going stable soon.
Do follow the upgrade guide carefully or your box won't boot.
It still uses udev but all of the baselayout scripts have been rewritten in C, so they run much faster.

The gentoo install CDs have a static /dev but you usually don't see it as the udev created /dev is mounted over the top of it. Poke around inside the CD - but don't boot from it.

You can create your own device special nodes with mknod. See man mknod.

I have a feeling that udev is a key part of device autodetection now too, so hot plugging USB devices won't work automatically any more.


All times are GMT -5. The time now is 01:13 AM.