Editing GhostBSD Boot Process

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
{{Welcome}}
 
{{Welcome}}
 +
{{Navbar System}}
 
{{Navbar GhostBSD Boot Process}}
 
{{Navbar GhostBSD Boot Process}}
  
Line 6: Line 7:
 
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 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]].
+
The GhostBSD boot process differs from the FreeBSD boot process. We will show you the similarities and differences.
  
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000"
+
==GhostBSD Boot Processes==
|-
+
|style="text-align:center;padding: 10px" | [[File:Dialog-warning.png|35px|link=]] '''Attention:  To start services at boot, FreeBSD documentation doesn’t work with GhostBSD.'''
+
|}
+
  
==Power On==
+
We will describe the boot process based 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). On the older hardware it was named only BIOS. On newer machines the BIOS is called: type UEFI, (Unified Extensible Firmware Interface). Both types of BIOS are the interfaces between the hardware and your operating system.
+
* [[MBR and GPT|Basic Input/Output System (BIOS) using Master Boot Record (MBR) and the newer GUID Partition Table (GPT)]]
 
+
After power on your machine you have access to the BIOS setup by pressing a key like ''Delete'', F2 or any key your motherboard manufacturer describes in his man pages.
+
 
+
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 starting process based on
+
* [[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
 +
We will also collect all [[scripts and files]] connected to the boot process.
  
As well  [[MBR and GPT]] as [[UEFI]] based BIOS types have the goal to bring your system to the GhostBSD/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, [https://www.freebsd.org/cgi/man.cgi?query=loader&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports 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
 
* [[/boot/]]boot1  first stage bootstrap file
 
* [[/boot/]]boot2  second stage bootstrap file
 
* [[/boot/]]loader  third stage bootstrap
 
 
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:
 
* FreeBSD/x86 bootstrap loader, Revision 1.1
 
* Loading [[/boot/defaults/loader.conf]]
 
* Loading /boot/device.hints
 
* Loading [[/boot/loader.conf]]
 
* Loading /boot/loader.conf.local
 
 
After this you will greeted with: Welcome to GhostBSD
 
The loader program offers a menu with the following options:<br/>
 
1. Boot Multi user [Enter]<br/>
 
2. Boot single user<br/>
 
3. Escape to loader prompt<br/>
 
4. Reboot<br/>
 
Options<br/>
 
5. Kernel default/kernel (1 of 1)<br/>
 
6. Boot Options<br/>
 
Autoboot in 2 seconds, hit [Enter] to boot or any other key to stop.<br/>
 
 
Loading kernel...<br/>
 
/boot/kernel/[[Kernel|kernel]]<br/>
 
Loading configured modules...<br/>
 
/boot/kernel/snd_driver.co<br/>
 
and so on <br/>
 
until you get the boot splash: GhostBSD
 
 
Once the kernel boot process is finished, the kernel passes control to the user process [https://www.freebsd.org/cgi/man.cgi?query=init&sektion=8&manpath=freebsd-release-ports init(8)], which is located at ''/sbin/init''.  The [[/boot/defaults/loader.conf]] states as GhostBSD defaults: ''rc_system="[[OpenRC|openrc]]".''
 
 
[[OpenRC]] is starting<br/>
 
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.
 
  
  

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)