LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-11-2005, 08:32 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
cutting down on boot time


I'm trying to cut down on my boot time, is there any way to tell what daemons I have starting at boot, and decide which one's I need and which one's I don't?
 
Old 12-11-2005, 08:49 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Install and run bum. That will give you access to a lot of the information you need. For services that are not familiar or you are unsure of, just google the name and that will fill in the blanks.

Code:
$ apt-cache policy bum
bum:
  Installed: (none)
  Candidate: 2.1.2-1
  Version table:
     2.1.2-1 0
        999 ftp://ftp.us.debian.org testing/main Packages
 
Old 12-11-2005, 09:13 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
When I ran bum I got the error
Code:
Another bum is running, or the file :/var/lock/bum remains locked!
Suggestions?
 
Old 12-11-2005, 09:19 PM   #4
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 29
Posts: 197

Rep: Reputation: 30
use a trial and error methodology. uncheck all the services and reboot the system. if the system does not respond the way u want it then u have unchecked a needed service.

thats how i figured out wats needed in my system.
 
Old 12-11-2005, 10:45 PM   #5
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally Posted by microsoft/linux
Suggestions?
A cute little bug. Issue the command below as su.
Then run bum again.

# mkdir /var/lib/bum
 
Old 12-11-2005, 11:00 PM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
same error
 
Old 12-11-2005, 11:35 PM   #7
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
It's a bug in that version. The workaround I posted works on my box and is posted at DebianBugs. If it won't take for some reason on your installation then you will either have to bump up to the SID version (which is where the bug got fixed), or you can use another program called sysv-rc-conf, which performs the same function, but only in a terminal session. Bum is a little nicer if you are not familiar with configuring services because it has a good GUI.

# apt-get install sysv-rc-conf
 
Old 12-12-2005, 06:22 AM   #8
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
I don't think it's possible to make debian boot very fast (without doing too much work). Arch and slackware linux boot way faster by default.

Here are some tips though:
http://users.skynet.be/six/gpure/tec...bian.html#3.24
 
Old 12-12-2005, 06:38 AM   #9
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
I do also think Debian takes a little while longer to boot than some other distros, and I have gone to the extent before of disabling some of the default services which did make a difference. However, this was just me tweaking things and trying to learn how things work. The speed never really was a bother since Debian always booted to a desktop in good time, and it would be silly to spend hours just trying to save a few seconds.
 
Old 12-12-2005, 08:42 AM   #10
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Debian takes double as much time to boot then arch does. That might be no problem if your computer runs fast and boots arch in 15s and debian in 30s. But on a slow computer the difference can be in minutes :/. I think debian really needs to get cleaned up.
 
Old 12-12-2005, 08:45 AM   #11
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
so it's pretty well pointless? switching to fluxbox helped alot(getting into a desktop-wise), but if disabling some services and spending that much time will not help that much, I may just not bother.
 
Old 12-12-2005, 08:55 AM   #12
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Just

disable unnecessary services with sysvconfig (or sysv-rc-conf)

make /bin/sh a symlink to /bin/dash

do lsmod and put those modules in /etc/modules (the ones in bottom of list in lsmod have to be at the top in /etc/modules) and then disable hotplug at boot

If you use dhcp putting in a static ip makes it a bit faster to start network.

A careful kernel recompile helps too (but it didn't do much for me so I just use a default kernel).

I don't think you should do any more then that.
I tried initng which should reduce boot time a lot but it didn't even boot and requires to much fiddling with config files to get it working (if it even can with debian) at this point I think.
 
Old 12-12-2005, 09:52 AM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would look at what is starting and make sure you actually need all the running services.

I have found netatalk (appletalk) running on a number of Debian boxes when it isn't needed, and it takes along time for that particular service to start during boot. apt-get remove netatalk fixed that one.

Reviewing your running services isn't a waste of time, it's something every sysadmin should take the time to do, for optimization, and security reasons.
 
Old 12-18-2005, 04:34 AM   #14
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Editing the init scripts will then be the only way to increase bootup speed. (after disabling services, kernel compile, etc)

Actually there's a new init system called runit in debian.

JUst apt-get install runit runit-init

And then read the docs at /usr/share/doc/runit/ carefully.
And follow the steps.

runit boots the services in parallel, and it's possible to use much simpler scripts then with sysvinit.

grtz
gunnix
 
Old 12-18-2005, 02:54 PM   #15
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
OK, I dont' want to edit any init scripts. I'm not that good yet, and I don't wanna screw something up. I'll just let it be. Thanks anyway though
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compile time and boot time lordofring Programming 1 11-13-2005 02:04 AM
cutting down on time & madwifi bird603568 Slackware 5 06-10-2005 12:55 AM
Cutting in Bash??? mattyk1026 Programming 4 06-09-2004 01:23 PM
Cutting with a Blender lectraplayer Linux - Software 6 02-07-2004 07:28 PM
rpm2tgz not cutting it Kellvyn Slackware 2 07-28-2002 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration