LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2016, 09:48 PM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
boot time length


My computer seems to take forever to boot. Does it have to read thru all thes in the '/boot/ directory or can I delete all but the last number[-4.4.0-34-generic]
series???

dave@dave-OptiPlex-780:/boot$
dave@dave-OptiPlex-780:/boot$
dave@dave-OptiPlex-780:/boot$ ls
abi-3.19.0-31-generic config-3.19.0-31-generic grub initrd.img-4.4.0-34-generic System.map-4.4.0-24-generic vmlinuz-4.4.0-24-generic
abi-4.4.0-21-generic config-4.4.0-21-generic initrd.img-3.19.0-31-generic memtest86+.bin System.map-4.4.0-28-generic vmlinuz-4.4.0-28-generic
abi-4.4.0-22-generic config-4.4.0-22-generic initrd.img-4.4.0-21-generic memtest86+.elf System.map-4.4.0-31-generic vmlinuz-4.4.0-31-generic
abi-4.4.0-24-generic config-4.4.0-24-generic initrd.img-4.4.0-22-generic memtest86+_multiboot.bin System.map-4.4.0-34-generic vmlinuz-4.4.0-34-generic
abi-4.4.0-28-generic config-4.4.0-28-generic initrd.img-4.4.0-24-generic System.map-3.19.0-31-generic vmlinuz-3.19.0-31-generic
abi-4.4.0-31-generic config-4.4.0-31-generic initrd.img-4.4.0-28-generic System.map-4.4.0-21-generic vmlinuz-4.4.0-21-generic
abi-4.4.0-34-generic config-4.4.0-34-generic initrd.img-4.4.0-31-generic System.map-4.4.0-22-generic vmlinuz-4.4.0-22-generic
dave@dave-OptiPlex-780:/boot$
dave@dave-OptiPlex-780
 
Old 08-12-2016, 01:16 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Generally the thing to do is keep one spare boot option(I usually keep it slackware-huge kernel) and have it in case a disk error or some other thing nukes your boot option. The rest can go.
 
Old 08-12-2016, 02:24 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I can't imagine any situation where the number of files in /boot would affect boot time.

Have a look at bootchart - or if fortunate enough to have it, systemd-analyze.
 
Old 08-12-2016, 10:17 AM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Is there a "start job" running at boot, with a Cylon eye looking asterisk?
(***)
 
Old 08-13-2016, 01:04 AM   #5
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by jamison20000e View Post
Is there a "start job" running at boot, with a Cylon eye looking asterisk?
(***)
Yeah, Debian changes are really annoying...


@OP:
Your boot loader won't look and load all those kernels.
The way Linux is launched is via boot loader and it depends on the distro. Usually people use a distro that does almost everything to run and start Linux. It is actually not the best way, it is the lazy and easiest way. In principle you can tweak your loaded Linux distro and adapt yourself it to make it start.
You can check and get here more infos: https://en.wikipedia.org/wiki/Linux_startup_process

Which boot do you use? If probably grub, post us your /boot/grub/grub.cfg


You can post us your mbr if you want that we check your mbr/boot loader... Eg I use Syslinux on this current machine.
Code:
root@cbook:/home/pat# dd if=/dev/sda of=image.mbr  count=1 bs=446
1+0 records in
1+0 records out
446 bytes (446 B) copied, 0.000278159 s, 1.6 MB/s

Last edited by patrick295767; 08-13-2016 at 01:07 AM.
 
Old 08-13-2016, 09:19 AM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Quote:
Originally Posted by patrick295767 View Post
Quote:
Originally Posted by jamison20000e View Post
Is there a "start job" running at boot, with a Cylon eye looking asterisk?
(***)
Yeah, Debian changes are really annoying...
I don't mind change, especially how fast the boot is and Sid runs smother\longer too...

For me boot was finding an invalid swap in /etc/fstab so then running a check on the swap space. I decide to have 3 OSs but use the same swap partition (without really configuring it.)

Last edited by jamison20000e; 08-13-2016 at 09:35 AM. Reason: added quote
 
Old 08-15-2016, 05:19 PM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I have one machine on systemd. If systemd comes across any partitions it can't find instantly, it stops everything and searches for 90 seconds to find it. For some reason this happens to me with ZFS on some boots.
 
Old 08-16-2016, 08:34 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
The answer is: "No."

The files that you find in /boot are kernel images, used by the boot-loader (usually GRUB) to load the initial, resident portion of the Linux kernel into memory. GRUB is capable of understanding disk-file formats, so it locates and loads only the kernel-image which you specified (or, which was the default) in the initial boot-time menu.

There are a great many things which happen thereafter, particularly including the at-boot-time "device discovery" process, which takes place in a somewhat-peculiar state early in the boot process. (This is what the "initial RAMdisk," or initrd, process is all about.) Stock distros can spend quite a bit of time here as they decide which non-resident kernel extension modules must be loaded to support the hardware that it finds. (But, on the other hand, you can stick their software on just-about anything, and it will find a way to start ... "DEC token-ring controllers," anyone?)

Once this stage is finished and the final kernel is present in memory, there is still a fairly-elaborate startup sequence that must be gone through, before XWindows/XOrg is finally started and the familiar GUI login-window appears.

There are many things that you can do to save time on this, if you so desire. (I once had a Gentoo-based system that started in six seconds flat ...) Or, you could just step over and grab a cup of coffee.

Shutdown also takes time because it is basically "doing the same thing in reverse." Many subsystems are notified that the system is closing, and the shutdown-sequencer then waits for them to tidy up their affairs and die in the proper sequence before the command is finally given to "power down."

Last edited by sundialsvcs; 08-16-2016 at 08:51 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me iptables u32 hex length 32 + length 0 wwfkk Linux - Security 5 06-04-2014 06:48 PM
[SOLVED] Convert length-indicated variable length record file to LF-terminated Z038 Linux - General 10 11-29-2012 11:59 PM
[SOLVED] How to set the length time before session times out due to inactivity? mike-member Linux - Newbie 3 02-20-2011 11:11 PM
LFS boot failure zero length partition cuco76 Linux From Scratch 6 02-01-2007 11:48 AM
How to get the program to terminate after sertain length of time? hubabuba Programming 6 04-23-2006 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:15 PM.

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