Difference between revisions of "GhostBSD Boot Process"

From GhostBSD Wiki
Jump to: navigation, search
(GhostBSD Boot Processes)
(GhostBSD Boot Processes)
Line 8: Line 8:
 
The GhostBSD boot process differs from the FreeBSD boot process. The GhostBSD init process is connected to [[OpenRC]].
 
The GhostBSD boot process differs from the FreeBSD boot process. The GhostBSD init process is connected to [[OpenRC]].
  
==GhostBSD Boot Processes==
+
==Power On==
 +
After power on the computer the firmware on your motherboard has to interact with the your hard drive to find a special partition on it. The motherboard contains the Basic Input/Output System (BIOS).
 +
 
 +
This special partition on your hard drive contains either the master boot record MBR or the newer GUID Partition Table (GPT). 
  
 
We will describe the boot process based on
 
We will describe the boot process based on
* [[MBR and GPT|Basic Input/Output System (BIOS) using Master Boot Record (MBR) and the newer GUID Partition Table (GPT)]]
+
* [[MBR and GPT|Basic Input/Output System (BIOS) using Master Boot Record (MBR) and the newer GUID Partition Table (GPT)]] and
 
* [[UEFI]] mashines
 
* [[UEFI]] mashines
  

Revision as of 14:32, 3 April 2020

Welcome to Icon Disti GhostBSD.png GhostBSD Boot Process.
GhostBSD Boot Process
MBR and GPT UEFI OpenRC /boot/
Back to the Icon Disti GhostBSD.pngSystem

Introduction

The process of starting a computer and loading the operating system is referred to as “the bootstrap process”, or “booting”. The GhostBSD boot process provides a great deal of flexibility in customizing what happens when the system starts, including the ability to select from different operating systems installed on the same computer, different versions of the same operating system, or a different installed kernel.

The GhostBSD boot process differs from the FreeBSD boot process. The GhostBSD init process is connected to OpenRC.

Power On

After power on the computer the firmware on your motherboard has to interact with the your hard drive to find a special partition on it. The motherboard contains the Basic Input/Output System (BIOS).

This special partition on your hard drive contains either the master boot record MBR or the newer GUID Partition Table (GPT).

We will describe the boot process based on

Both MBR and GPT and UEFI have the goal to bring your system to the FreeBSD loader.

Bootstrap Process

By default, a three-stage bootstrap is employed, and control is automatically passed from the boot blocks (bootstrap stages one and two) to a separate third-stage bootstrap program, loader(8). This third stage provides more sophisticated control over the booting process than it is possible to achieve in the boot blocks, which are constrained by occupying limited fixed space on a given disk or slice.

FILES

The BIOS/GPT will attempt to load /boot/loader from partition `a' of either the floppy or the hard disk. This is the final stage of Ghost/FreeBSD's kernel bootstrapping process.

On the screen you will get:

After this you will greeted with: Welcome to GhostBSD The loader program offers a menu with the following options:
1. Boot Multi user [Enter]
2. Boot single user
3. Escape to loader prompt
4. Reboot
Options
5. Kernel default/kernel (1 of 1)
6. Boot Options
Autoboot in 2 seconds, hit [Enter] to boot or any other key to stop.

Loading kernel...
/boot/kernel/kernel
Loading configured modules...
/boot/kernel/snd_driver.co
and so on
until you get the boot splash: GhostBSD

Once the kernel boot process is finished, the kernel passes control to the user process init(8), which is located at /sbin/init. The /boot/defaults/loader.conf states as GhostBSD defaults: rc_system="openrc".

OpenRC is starting
with

  • Catching service dependencies
  • Starting System clock
  • Checking local file systems
  • Activating swap devices
  • Mounting local file systems
  • Remounting Root file systems
  • Configure kernel parameters
  • Clearing /temp
  • Setting up Idconfig path......
  • Starting ZFS
  • Starting network
  • and so on
  • Starting lightdm
  • Starting webcamd
  • Mounting network file systems
  • Setting data via ntp

And now you will be greeted with the confirmation screen to login.