LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Its taking about 2 or 3 minutes for boot and startup... (http://www.linuxquestions.org/questions/linux-general-1/its-taking-about-2-or-3-minutes-for-boot-and-startup-858547/)

nisargjhaveri 01-25-2011 09:05 AM

Its taking about 2 or 3 minutes for boot and startup...
 
Hello
I have ubuntu 10.10 installed
When it was new It was too speedy in starting up
but, Now It is taking about two to three minutes to getting started.
I tried to remove some applications from System/Preferences/Startup Applications,But no difference.

I want to speed up my system
It has no problem in speed after starting up

Thanks

zer0signal 01-25-2011 09:37 AM

Can you post your - /var/log/kernel.log and /var/log/messages.log file's in here
you can do that by

cat /var/log/kernel.log
cat /var/log/messages.log

nisargjhaveri 01-26-2011 08:37 AM

Code:

cat /var/log/kernel.log
cat: /var/log/kernel.log: No such file or directory

Code:

cat /var/log/messages.log
cat: /var/log/messages.log: No such file or directory


zer0signal 01-26-2011 08:49 AM

Hrmm. Try this....

ls -l /var/log

put your output in here...

also, because your debian based... Try

sudo cat /var/log/kernel.log
sudo cat /var/log/messages.log

nisargjhaveri 01-27-2011 08:47 AM

Code:

ls -l /var/log
total 8560
-rw-r--r-- 1 root              root      3674 2011-01-24 12:11 alternatives.log
-rw-r--r-- 1 root              root      7086 2010-12-29 20:09 alternatives.log.1
-rw-r--r-- 1 root              root        872 2010-11-18 21:00 alternatives.log.2.gz
-rw-r--r-- 1 root              root      4032 2010-10-30 11:25 alternatives.log.3.gz
drwxr-x--- 2 root              adm        4096 2011-01-24 12:25 apache2
drwxr-xr-x 2 root              root      4096 2010-03-31 01:29 apparmor
drwxr-xr-x 2 root              root      4096 2011-01-01 19:47 apt
-rw-r--r-- 1 root              root          0 2011-01-17 19:11 aptitude
-rw-r--r-- 1 root              root        208 2011-01-13 11:19 aptitude.1.gz
-rw-r--r-- 1 root              root        210 2010-12-13 19:42 aptitude.2.gz
-rw-r--r-- 1 root              root      1481 2010-06-30 07:41 aptitude.3.gz
-rw-r----- 1 syslog            adm      30809 2011-01-27 20:11 auth.log
-rw-r----- 1 syslog            adm      48041 2011-01-24 12:17 auth.log.1
-rw-r----- 1 syslog            adm        3945 2011-01-17 19:09 auth.log.2.gz
-rw-r----- 1 syslog            adm        3821 2011-01-10 13:09 auth.log.3.gz
-rw-r----- 1 syslog            adm        3891 2011-01-02 08:09 auth.log.4.gz
-rw-r----- 1 root              adm          31 2010-04-29 17:48 boot
-rw-r--r-- 1 root              root        869 2011-01-27 20:08 boot.log
-rw-r--r-- 1 root              root      41647 2010-04-29 17:49 bootstrap.log
-rw-rw---- 1 root              utmp      4608 2011-01-26 22:10 btmp
-rw-rw---- 1 root              utmp        59 2010-12-18 11:42 btmp.1.gz
drwxr-xr-x 2 root              root      4096 2011-01-01 19:47 ConsoleKit
drwxr-xr-x 2 root              lpadmin    4096 2011-01-22 10:54 cups
-rw-r----- 1 syslog            adm      158825 2011-01-27 20:13 daemon.log
-rw-r----- 1 syslog            adm      259917 2011-01-24 12:21 daemon.log.1
-rw-r----- 1 syslog            adm      30808 2011-01-17 19:10 daemon.log.2.gz
-rw-r----- 1 syslog            adm      23372 2011-01-10 13:10 daemon.log.3.gz
-rw-r----- 1 syslog            adm      19662 2011-01-02 08:08 daemon.log.4.gz
drwxr-xr-x 2 root              root      4096 2010-06-12 13:39 dbconfig-common
-rw-r----- 1 syslog            adm      108352 2011-01-27 20:12 debug
-rw-r----- 1 syslog            adm      189578 2011-01-24 12:04 debug.1
-rw-r----- 1 syslog            adm      19789 2011-01-17 18:42 debug.2.gz
-rw-r----- 1 syslog            adm      17704 2011-01-10 12:40 debug.3.gz
-rw-r----- 1 syslog            adm      17033 2011-01-02 07:50 debug.4.gz
drwxr-xr-x 3 root              root      4096 2010-10-11 12:52 dist-upgrade
-rw-r----- 1 root              adm      69031 2011-01-27 20:08 dmesg
-rw-r----- 1 root              adm      68800 2011-01-26 22:09 dmesg.0
-rw-r----- 1 root              adm      17900 2011-01-26 20:02 dmesg.1.gz
-rw-r----- 1 root              adm      17803 2011-01-25 19:55 dmesg.2.gz
-rw-r----- 1 root              adm      17920 2011-01-24 20:25 dmesg.3.gz
-rw-r----- 1 root              adm      17803 2011-01-24 12:01 dmesg.4.gz
-rw-r--r-- 1 root              doodle        0 2011-01-26 07:55 doodle.log
-rw-r--r-- 1 root              root    199379 2011-01-25 21:00 dpkg.log
-rw-r--r-- 1 root              root    279313 2010-12-31 19:39 dpkg.log.1
-rw-r--r-- 1 root              root      15297 2010-11-30 21:49 dpkg.log.2.gz
-rw-r--r-- 1 root              root    141161 2010-10-31 22:36 dpkg.log.3.gz
-rw-r--r-- 1 root              root      33304 2010-09-30 22:18 dpkg.log.4.gz
-rw-r--r-- 1 root              root      28802 2010-08-31 19:43 dpkg.log.5.gz
-rw-r--r-- 1 root              root      15571 2010-07-23 20:11 dpkg.log.6.gz
-rw-r--r-- 1 root              root    127525 2010-06-30 15:41 dpkg.log.7.gz
-rw-r--r-- 1 root              root      24096 2010-12-11 12:35 faillog
-rw-r--r-- 1 root              root      3278 2011-01-25 20:59 fontconfig.log
drwxr-xr-x 2 root              root      4096 2010-04-29 17:48 fsck
drwxrwx--T 2 root              gdm        4096 2011-01-27 20:08 gdm
-rw-r--r-- 1 root              root        23 2010-12-23 21:27 gufw_log_server.txt
-rw-r--r-- 1 root              root        107 2010-12-23 21:27 gufw_log.txt
drwxr-xr-x 2 root              root      4096 2010-06-10 21:37 installer
-rw-r--r-- 1 root              root          0 2011-01-22 10:54 jockey.log
-rw-r--r-- 1 root              root      26038 2011-01-22 10:54 jockey.log.1
-rw-r--r-- 1 root              root      1639 2010-12-31 19:09 jockey.log.2.gz
-rw-r--r-- 1 root              root      2608 2010-12-08 20:23 jockey.log.3.gz
-rw-r--r-- 1 root              root      3854 2010-10-17 01:36 jockey.log.4.gz
-rw-r--r-- 1 root              root      2693 2010-10-10 18:08 jockey.log.5.gz
-rw-r--r-- 1 root              root      2619 2010-08-28 11:47 jockey.log.6.gz
-rw-r--r-- 1 root              root      3054 2010-08-12 08:18 jockey.log.7.gz
-rw-r--r-- 1 root              root      3163 2010-07-02 06:44 jockey.log.8.gz
-rw-r--r-- 1 root              root      2759 2010-06-11 11:58 jockey.log.9.gz
-rw-r----- 1 syslog            adm      599059 2011-01-27 20:12 kern.log
-rw-r----- 1 syslog            adm    1240904 2011-01-24 12:04 kern.log.1
-rw-r----- 1 syslog            adm      244859 2011-01-17 18:41 kern.log.2.gz
-rw-r----- 1 syslog            adm      218335 2011-01-10 12:59 kern.log.3.gz
-rw-r----- 1 syslog            adm      175969 2011-01-02 07:53 kern.log.4.gz
-rw-rw-r-- 1 root              utmp    293168 2010-12-11 12:35 lastlog
-rw-r----- 1 syslog            adm          0 2011-01-17 19:12 lpr.log
-rw-r----- 1 syslog            adm        1558 2011-01-13 22:16 lpr.log.1
-rw-r----- 1 syslog            adm        1259 2011-01-01 19:36 lpr.log.2.gz
-rw-r----- 1 syslog            adm        851 2010-12-31 19:05 lpr.log.3.gz
-rw-r----- 1 syslog            adm        802 2010-12-21 22:09 lpr.log.4.gz
-rw-r----- 1 syslog            adm          0 2010-06-10 21:38 mail.err
-rw-r----- 1 syslog            adm          0 2010-06-10 21:38 mail.info
-rw-r----- 1 syslog            adm          0 2010-06-10 21:38 mail.log
-rw-r----- 1 syslog            adm          0 2010-06-10 21:38 mail.warn
-rw-r----- 1 syslog            adm      495639 2011-01-27 20:12 messages
-rw-r----- 1 syslog            adm      833506 2011-01-24 12:25 messages.1
-rw-r----- 1 syslog            adm      208788 2011-01-17 19:12 messages.2.gz
-rw-r----- 1 syslog            adm      192927 2011-01-10 13:13 messages.3.gz
-rw-r----- 1 syslog            adm      143802 2011-01-02 08:09 messages.4.gz
drwxr-s--- 2 mysql            adm        4096 2011-01-26 07:57 mysql
-rw-r----- 1 mysql            adm          0 2010-11-12 20:39 mysql.err
-rw-r----- 1 mysql            adm          0 2011-01-26 07:57 mysql.log
-rw-r----- 1 mysql            adm          20 2011-01-25 20:13 mysql.log.1.gz
-rw-r----- 1 mysql            adm          20 2011-01-24 12:25 mysql.log.2.gz
-rw-r----- 1 mysql            adm          20 2011-01-22 10:54 mysql.log.3.gz
-rw-r----- 1 mysql            adm          20 2011-01-21 19:45 mysql.log.4.gz
-rw-r----- 1 mysql            adm          20 2011-01-20 19:43 mysql.log.5.gz
-rw-r----- 1 mysql            adm          20 2011-01-19 19:19 mysql.log.6.gz
-rw-r----- 1 mysql            adm          20 2011-01-17 19:12 mysql.log.7.gz
drwxr-xr-x 2 root              root      4096 2010-06-10 21:38 news
drwxr-xr-x 2 ntp              ntp        4096 2010-04-09 05:58 ntpstats
-rw-r--r-- 1 root              root      85784 2011-01-27 20:09 pm-powersave.log
-rw-r--r-- 1 root              root    117026 2011-01-01 19:37 pm-powersave.log.1
-rw-r--r-- 1 root              root      1277 2010-12-01 14:23 pm-powersave.log.2.gz
-rw-r--r-- 1 root              root      1628 2010-11-01 11:28 pm-powersave.log.3.gz
-rw-r--r-- 1 root              root        515 2010-10-02 07:18 pm-powersave.log.4.gz
-rw-r--r-- 1 root              root      8675 2011-01-24 13:27 pm-suspend.log
-rw-r--r-- 1 root              root      53284 2010-12-01 19:53 pm-suspend.log.1
-rw-r--r-- 1 root              root      1637 2010-11-04 13:19 pm-suspend.log.2.gz
-rw-r--r-- 1 root              root      7912 2010-10-23 21:30 pm-suspend.log.3.gz
-rw-r--r-- 1 root              root      1664 2010-10-03 16:30 pm-suspend.log.4.gz
-rw-r--r-- 1 root              root          0 2010-04-29 17:48 pycentral.log
drwxr-xr-x 3 root              root      4096 2011-01-24 12:25 samba
drwxr-xr-x 2 speech-dispatcher root      4096 2010-04-15 18:34 speech-dispatcher
-rw-r----- 1 syslog            adm      435388 2011-01-27 20:13 syslog
-rw-r----- 1 syslog            adm      27521 2011-01-26 07:57 syslog.1
-rw-r----- 1 syslog            adm      60680 2011-01-25 20:13 syslog.2.gz
-rw-r----- 1 syslog            adm      105144 2011-01-24 12:21 syslog.3.gz
-rw-r----- 1 syslog            adm      28609 2011-01-22 10:53 syslog.4.gz
-rw-r----- 1 syslog            adm      43139 2011-01-21 19:44 syslog.5.gz
-rw-r----- 1 syslog            adm      52136 2011-01-20 19:42 syslog.6.gz
-rw-r----- 1 syslog            adm      27865 2011-01-19 19:19 syslog.7.gz
-rw-r--r-- 1 root              root    227560 2011-01-27 20:08 udev
-rw-r----- 1 syslog            adm          0 2010-06-10 21:38 ufw.log
drwxr-xr-x 2 root              root      4096 2010-03-20 05:14 unattended-upgrades
-rw-r----- 1 syslog            adm      24282 2011-01-27 20:10 user.log
-rw-r----- 1 syslog            adm      53776 2011-01-24 12:15 user.log.1
-rw-r----- 1 syslog            adm        3103 2011-01-17 18:39 user.log.2.gz
-rw-r----- 1 syslog            adm        4063 2011-01-10 12:40 user.log.3.gz
-rw-r----- 1 syslog            adm        3031 2011-01-02 07:43 user.log.4.gz
-rw-rw-r-- 1 root              utmp    194688 2011-01-27 20:14 wtmp
-rw-rw-r-- 1 root              utmp      6457 2011-01-01 19:37 wtmp.1.gz
-rw-r--r-- 1 root              root      43872 2011-01-27 20:10 Xorg.0.log
-rw-r--r-- 1 root              root      45301 2011-01-27 00:18 Xorg.0.log.old
-rw-r--r-- 1 root              root      53145 2011-01-22 12:09 Xorg.1.log
-rw-r--r-- 1 root              root      46597 2011-01-01 19:52 Xorg.1.log.old
-rw-r--r-- 1 root              root      33450 2011-01-22 12:09 Xorg.2.log
-rw-r--r-- 1 root              root      26862 2010-10-09 21:04 Xorg.2.log.old
-rw-r--r-- 1 root              root      26411 2010-08-24 16:54 Xorg.3.log
-rw-r--r-- 1 root              root      29410 2010-08-08 14:16 Xorg.3.log.old

Code:

sudo cat /var/log/kernel.log
cat: /var/log/kernel.log: No such file or directory

Code:

sudo cat /var/log/messages.log
cat: /var/log/messages.log: No such file or directory

These logs are for what??
How can it help improving the starting up speed??

zer0signal 01-27-2011 08:55 AM

First off you need to find out what is slowing your computer down during start up. Is it hardware? Is it a new service you installed with apt-get? Is it a time out issue mapping to an NFS share??? These logs will give you that information, and a lot more.

Now that we know what your logs are called. You can cat them and search for time stamps on each thing that is loaded and look for errors and time outs.

-rw-r--r-- 1 root root 869 2011-01-27 20:08 boot.log <- inspect that first
-rw-r----- 1 syslog adm 495639 2011-01-27 20:12 messages
-rw-r----- 1 syslog adm 599059 2011-01-27 20:12 kern.log

now try
sudo cat /var/log/kern.log
sudo cat /var/log/messages
sudo cat /var/log/boot.log

nisargjhaveri 01-27-2011 10:13 AM

boot.log from log file viewer
Code:


fsck from util-linux-ng 2.17.2
udevd[390]: can not read '/etc/udev/rules.d/z80_user.rules'


fsck from util-linux-ng 2.17.2
/dev/sdb7 has been mounted 25 times without being checked, check forced.
/dev/sdb6: clean, 111032/1836000 files, 3414859/7342196 blocks
/dev/sdb7: 277546/1725136 files (0.4% non-contiguous), 1654893/6894336 blocks
init: ureadahead-other main process (1003) terminated with status 4

init: ureadahead-other main process (1008) terminated with status 4

init: ureadahead-other main process (1013) terminated with status 4

init: ureadahead-other main process (1018) terminated with status 4

init: ureadahead-other main process (1023) terminated with status 4

 * Starting AppArmor profiles       Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox

[ OK ]
 * Setting sensors limits      
[ OK ]

Other logs are too long...can't be posted
How can I post you ???

Thanks for quick reply

corp769 01-27-2011 10:15 AM

Use pastebin.

http://www.pastebin.com

nisargjhaveri 02-02-2011 01:25 AM

Please follow links for the logs
messages
kern.log
Both are expiring in 1 month from 2/2/11

Thanks

zer0signal 02-02-2011 07:05 AM

nisargjhaveri - can you put that boot log file in there?

almatic 02-02-2011 07:40 AM

make a bootchart !
 
you could make a bootchart to visualize your booting sequence. Makes it much easier to see, what takes up how much time.

Install bootchart from the repositories (apt-get install bootchart). Then reboot with the parameter "init=/sbin/bootchartd". You can add the parameter to the kernel line by pressing "e" in the grub menu.

You will then get a file which looks like this:

http://s7.directupload.net/file/u/22...c34nke_png.htm

As you can see, it takes pretty long for me as well :p

zer0signal 02-02-2011 07:55 AM

Thats actually a pretty cool visual program... Wish we had this for work, so I can show my clients visually why it takes so long... lol

I still prefer to look at time stamps... I'm just stubborn... lol ;)

nisargjhaveri 02-08-2011 12:58 AM

I did but where can I find result ???

zer0signal 02-08-2011 08:00 AM

Hi, if this is all your boot file is showing. Please follow this WebLink and post your results here.
Code:

fsck from util-linux-ng 2.17.2
udevd[390]: can not read '/etc/udev/rules.d/z80_user.rules'


fsck from util-linux-ng 2.17.2
/dev/sdb7 has been mounted 25 times without being checked, check forced.
/dev/sdb6: clean, 111032/1836000 files, 3414859/7342196 blocks
/dev/sdb7: 277546/1725136 files (0.4% non-contiguous), 1654893/6894336 blocks
init: ureadahead-other main process (1003) terminated with status 4

init: ureadahead-other main process (1008) terminated with status 4

init: ureadahead-other main process (1013) terminated with status 4

init: ureadahead-other main process (1018) terminated with status 4

init: ureadahead-other main process (1023) terminated with status 4

 * Starting AppArmor profiles       Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox

[ OK ]
 * Setting sensors limits      
[ OK ]


nisargjhaveri 02-12-2011 12:54 AM

I have restarted computer after following the instructions in the given link.
The output of 'boot' file is
Code:

(Nothing has been logged yet.)


All times are GMT -5. The time now is 01:00 PM.