Solved

Needed files to boot Linux

Posted on 2013-10-31
4
565 Views
1 Endorsement
Last Modified: 2013-11-06
Good Day

Is somebody having a graphic with filenames, services and other stuff needed to boot Linux.
I need one to teach our junior System Engineers.

Thanks
1
Comment
Question by:awawada
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 250 total points
ID: 39617636
"Linux" is actually only the kernel... all the other stuff you see (esp if you have a GUI login) is custom-built by a combination of the distro you've chosen and the user selections made during installation.

In general, the Linux boot process looks something like this (for RHEL and other SYS-V derivatives):
 - Boot loader (BIOS, UEFI, etc) determines hardware config
 - Boot loader loads secondary boot loader (GRUB, LILO, ntldr.dll, etc.)
    NOTE: Some boot loaders (like UEFI) can bypass the secondary boot loader... that's why its there!
 - Kernel detects hardware & loads drivers -- including filesystems
 - Kernel executes initialization scripts based on /etc/inittab

Once you reach this far, every system will be different... different distros yes, but even different installations!

I hope this helps!

Dan
IT4SOHO
0
 
LVL 40

Assisted Solution

by:noci
noci earned 250 total points
ID: 39620977
One small addition...

If the kernel uses initramfs ( an initial ramdisk f.e. for auto detecting hardware, encrypted root fs. support  etc.)
Then grub loads the initramfs too, for lilo & (U)EFI support  the kernel needs to be built with a copy of that RAMFS built in.
0
 
LVL 20

Assisted Solution

by:Daniel McAllister
Daniel McAllister earned 250 total points
ID: 39622055
noci,

The requirement for an initram filesystem has been deprecated since the early days of GRUB. The purpose was to provide or "auto-load" drivers for devices that were necessary for the system boot to continue.

However, using an initramfs can still be necessary if you have devices needed for booting (like RAID controller drivers, or other odd storage systems -- or a boot fs that is not standard) that are not in the compiled kernel.

Even so, a custom-built kernel can easily remove the need for the initramfs in modern Linux. (I haven't used one personally since the 2.6 kernel came out in RHEL 4).

While not a bad addition to the discussion, I was hesitant to include it because the question appears to apply (so far) only the "generic case" for booting Linux... and since we're talking all flavors of all distributions of Linux (perhaps even Android!), I thought it best to apply KISS and report most everything else as "distro specific" -- even though many have common elements.

Dan
IT4SOHO
0
 
LVL 40

Assisted Solution

by:noci
noci earned 250 total points
ID: 39624318
@IT4SOHO,

I run all my laptops and some computer systems and one USB stick based linux with encrypted disks.
For those use cases an initramfs is needed to provide for the scripting needed to unlock the rootfs, that support cannot be easily built into the kernel. I agree that KISS is a sound principle, in the case of mobile systems imho encrypted disks are a requirement and the support of initramfs should be mentioned.
I agree that it does complicate things a little, especialy in the (U)EFI case.

Kind regards,
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question