LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Making the Startup Scream (https://www.linuxquestions.org/questions/slackware-14/making-the-startup-scream-499631/)

Old_Fogie 11-10-2006 02:26 AM

@usealpa: "Wouldn't this be because of a missing device node?
I'd suggest booting with udev only and making a list of devices under /dev, and then doing the same with hotplug only. By comparing these lists, maybe you can spot what's missing and create an udev rule?"

Is that the best way to figure out what is missing? I tried udev on my slack 10.2 boxes to but all of them had no usb ports detected at all whatsoever. I was thinking of lsmod while booted with hotplug and compare to lsmod with udev?

I'd like to figure this out as I'd like to put Slack 11 but am holding off until I learn more about udev on my trouble pc's.

zetabill 11-10-2006 08:50 AM

I only have pcmcia for my wifi card and cups for printing as my startup services and I commented out ldconfig and I can get my computer up to a KDE login screen in 45-48 seconds. If I'm sitting there waiting for the login then I could be up and ready to go inside a minute. This is just a laptop and not a server or anything like that. I always run ldconfig when I install a package or I compile something. For some reason I have a habit of running ldconfig && updatedb when I do something with software. My personal tweak, though.

Actually I might have like one more service other than cups and pcmcia but I really can't think of what it could possibly be. I'm at work now so I can't search for it. It's not like it's completely important, though.

Regarding sendmail for root receiving mail. I never knew that. Should I really re-enable sendmail or what's the deal with that?

barn63 11-10-2006 09:09 AM

for the ldconfig taking too long....I just put an "&" after the line "/sbin/ldconfig" in /etc/rc.d/rc.M so it reads "/sbin/ldconfig&". Seems to be fine.

duryodhan 11-10-2006 10:37 AM

Thanks all.
I still dont understand why I need BOTH udev and hotplug and when do I need them.

And beautiful idea barn63 I have obscene amounts of RAM that is never used.. I just want something that will get me to login promp asap.

uselpa 11-10-2006 10:41 AM

Quote:

Originally Posted by duryodhan
Thanks all.
I still dont understand why I need BOTH udev and hotplug and when do I need them.

I use a 2.6 kernel and use only udev. I haven't had any problem with this yet. Why do you say you need both? Which kernel do you use?

duryodhan 11-10-2006 10:57 AM

I dont say I need both .. it comes default and I dont know wether I can disable it.

masonm 11-10-2006 11:56 AM

I'm only using udev with a 2.6.18 kernel and everything works fine. I actually had some minor pcmcia problems when running both that went away when I disabled hotplug.

putting the "&" at the end of ldconfig will definitely shave several seconds off the boot time.

Wim Sturkenboom 11-10-2006 01:25 PM

Sendmail can take long if it can't resolve a hostname or can't do a reverse dns lookup.

uselpa 11-10-2006 01:31 PM

Quote:

Originally Posted by duryodhan
I still dont understand why I need BOTH udev and hotplug

Quote:

Originally Posted by duryodhan
I dont say I need both

I'm sorry but I don't get that.

Anyway, try disabling hotplug (if you use a 2.6 kernel... you didn't answer), it works for nearly everybody.

rigelan 11-10-2006 05:20 PM

Udev works if your kernel is 2.6.15.3 or above, I think.

duryodhan 11-10-2006 08:44 PM

ok thanks. I am using 2.6.18 and I will try disabling hot plug.
Can I put a & after the udev script in rc.M? Cos I dont have any problems with RAM I hv more than anough
Also could I put an & after the dhcpcd call cos that also takes way too much time to get my ip address.

uselpa 11-11-2006 02:54 AM

Quote:

Originally Posted by duryodhan
Also could I put an & after the dhcpcd call cos that also takes way too much time to get my ip address.

I wouldn't do that. Either you start or use anything network-related afterwards, then you'll need an IP address. Or you don't, then you don't even have to start dhcp at boot time, just start it when you need it (that's what I do on my laptop, for example).

But depending on your circumstances, you could also assign a fixed IP address and cut out the call to dhcp completely.

duryodhan 11-11-2006 05:09 AM

Actually I did put up an & in the end of the dhcpcd call and its working fine. I mean there isn't even any difference, As soon as I log on if I do ifconfig I can see it being correctly set up.

mokele 11-11-2006 06:17 AM

duryodhan:

May be this thread can help you save a little time
at boot up

-W

duryodhan 11-11-2006 06:30 AM

mokele, I had seen that already. Thanks anyways!


All times are GMT -5. The time now is 06:05 PM.