Difference between revisions of "/boot/"
From GhostBSD Wiki
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Welcome}} | {{Welcome}} | ||
+ | {{Navbar GhostBSD Boot Process}} | ||
+ | |||
+ | ==Introduction== | ||
+ | |||
+ | The directory /boot/ contains all important programs and configuration files used during operating system bootstrap. | ||
+ | |||
+ | ==Content== | ||
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px" | {|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px" | ||
Line 6: | Line 13: | ||
! scope="col" style="width: 350px;"|'''Description''' | ! scope="col" style="width: 350px;"|'''Description''' | ||
|- | |- | ||
− | | | + | |defaults/ |
− | | | + | |default bootstrapping configuration files; see [https://www.freebsd.org/cgi/man.cgi?query=loader.conf&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports loader.conf(5)] |
+ | |- | ||
+ | |file: [[/boot/defaults/loader.conf]] | ||
+ | |default settings -- do not change this file. | ||
+ | |- | ||
+ | |dtb/ | ||
+ | |Compiled flattened device tree (FDT) files; see [https://www.freebsd.org/cgi/man.cgi?query=fdt&sektion=4&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports fdt(4)] and [https://www.freebsd.org/cgi/man.cgi?query=dtc&sektion=1&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports dtc(1)] | ||
+ | |- | ||
+ | |firmware/ | ||
+ | |this file is emty | ||
+ | |- | ||
+ | |[[Kernel|kernel]]/ | ||
+ | |pure kernel executable (the operating system loaded into memory at boot time) and kernel modules | ||
+ | |- | ||
+ | |[[Modules|modules]]/ | ||
+ | |third-party loadable kernel modules; see [https://www.freebsd.org/cgi/man.cgi?query=kldstat&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports kldstat(8)] | ||
+ | |- | ||
+ | |overlays/ | ||
+ | |On FreeBSD: Compiled flattened device tree (FDT) overlays; see [https://www.freebsd.org/cgi/man.cgi?query=fdt&sektion=4&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports fdt(4)] and [https://www.freebsd.org/cgi/man.cgi?query=dtc&sektion=1&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports dtc(1)] <br/>'''Directory not on GhostBSD''' | ||
+ | |- | ||
+ | |zfs/ | ||
+ | |[https://www.freebsd.org/cgi/man.cgi?query=zfs&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports zfs(8)] zpool cache files | ||
|- | |- | ||
!colspan="2"|'''Back to ''' [[image:Icon Disti GhostBSD.png|50px|link=Directory Structure]]'''Directory Structure''' | !colspan="2"|'''Back to ''' [[image:Icon Disti GhostBSD.png|50px|link=Directory Structure]]'''Directory Structure''' | ||
Line 13: | Line 41: | ||
|} | |} | ||
+ | ==Programs and Files== | ||
+ | {|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px" | ||
+ | |- | ||
+ | ! scope="col" style="width: 100px;"|'''Variable''' | ||
+ | ! scope="col" style="width: 350px;"|'''Description''' | ||
+ | |- | ||
+ | |/boot/beastie.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/beastie.4th/ The file that goes by the name of beastie.4th] is a set of commands designed to draw the ASCII art FreeBSD mascot, known simply as beastie, to the right of the boot loader menu. | ||
+ | |- | ||
+ | |/boot/boot | ||
+ | |[https://www.unix.com/man-page/freebsd/8/boot/ system bootstrapping procedures] A single, full-blown file, boot (/boot/boot), is what ultimately is written to disk. | ||
+ | |- | ||
+ | |/boot/boot0 | ||
+ | |[https://www.freebsd.org/doc/en/books/arch-handbook/boot-boot0.html The Master Boot Record] It is a small 512-byte file. | ||
+ | |- | ||
+ | |/boot/boot0sio | ||
+ | |Image for serial consoles (COM1,9600,8,N,1,MODEM) [https://www.unix.com/man-page/FreeBSD/8/boot0cfg/ see: FILES] | ||
+ | |- | ||
+ | |/boot/boot1 | ||
+ | |[https://www.freebsd.org/doc/en/books/arch-handbook/boot-boot1.html boot1 is the next step in the boot-loading sequence] | ||
+ | |- | ||
+ | |/boot/boot1.efi | ||
+ | |[https://www.freebsd.org/cgi/man.cgi?query=uefi&sektion=8&manpath=freebsd-release-ports UEFI] The default UEFI boot configuration for FreeBSD installs boot1.efi in the default path. | ||
+ | |- | ||
+ | |/boot/boot1.efifat | ||
+ | |[https://www.freebsd.org/cgi/man.cgi?query=uefi&sektion=8&manpath=freebsd-release-ports UEFI] [https://www.freebsd.org/cgi/man.cgi?query=msdosfs&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports msdosfs(5)] FAT file system image containing boot1.efi for use by [https://www.freebsd.org/cgi/man.cgi?query=bsdinstall&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports bsdinstall(8)] and the bootcode argument to [https://www.freebsd.org/cgi/man.cgi?query=gpart&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports gpart(8)]. | ||
+ | |- | ||
+ | |/boot/boot2 | ||
+ | |boot2 is much bigger than boot0 and boot1, holding both the BTX server and the boot2 client | ||
+ | |- | ||
+ | |/boot/brand.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/brand.4th/ FreeBSD ASCII art boot module] | ||
+ | |- | ||
+ | |/boot/brand-fbsd.4th | ||
+ | |[https://github.com/freebsd/freebsd/blob/master/stand/forth/brand.4th like brand.4th] | ||
+ | |- | ||
+ | |/boot/cdboot | ||
+ | |Boot from CD | ||
+ | |- | ||
+ | |/boot/check-password.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/color.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/color.4th/ FreeBSD color-detection boot module] | ||
+ | |- | ||
+ | |/boot/delay.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/delay.4th/ FreeBSD debugging boot module] | ||
+ | |- | ||
+ | |/boot/device.hints | ||
+ | |[https://www.unix.com/man-page/freebsd/5/device.hints/ device resource hints] | ||
+ | |- | ||
+ | |/boot/efi.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/frames.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/gptboot | ||
+ | |[https://www.unix.com/man-page/freebsd/8/gptboot/ GPT bootcode for UFS on BIOS-based computers] | ||
+ | |- | ||
+ | |/boot/gptboot.efi | ||
+ | | | ||
+ | |- | ||
+ | |/boot/gptboot.efifat | ||
+ | | | ||
+ | |- | ||
+ | |/boot/gptzfsboot | ||
+ | |[https://www.unix.com/man-page/freebsd/8/gptzfsboot/ GPT bootcode for ZFS on BIOS-based computers] | ||
+ | |- | ||
+ | |/boot/isoboot | ||
+ | |Boot from iso | ||
+ | |- | ||
+ | |/boot/loader | ||
+ | |The program called loader is the final stage of FreeBSD's kernel bootstrapping process.[https://www.unix.com/man-page/freebsd/8/loader/] | ||
+ | |- | ||
+ | |/boot/loader.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/loader/ loader(8)] bootstrapping script. [https://www.unix.com/man-page/freebsd/8/loader.4th/ loader.conf processing tools] | ||
+ | |- | ||
+ | |[[/boot/loader.conf]] | ||
+ | |user defined settings | ||
+ | |- | ||
+ | |/boot/loader.efi | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader.rc | ||
+ | |loader bootstrapping script. Standard: /boot/loader.rc: include /boot/loader.4th | ||
+ | |- | ||
+ | |/boot/loader.rc.local | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_4th.efi | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_lua | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_lua.efi | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_simp | ||
+ | | | ||
+ | |- | ||
+ | |/boot/loader_simp.efi | ||
+ | | | ||
+ | |- | ||
+ | |/boot/logo-beastie.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/logo-beastiebw.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/logo-fbsdbw.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/logo-orb.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/logo-orbbw.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/mbr | ||
+ | |Master Boot Record | ||
+ | |- | ||
+ | |/boot/menu.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/menu.4th/ FreeBSD dynamic menu boot module] | ||
+ | |- | ||
+ | |/boot/menu.rc | ||
+ | | | ||
+ | |- | ||
+ | |/boot/menu-commands.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/menusets.4th | ||
+ | |[https://www.unix.com/man-page/freebsd/8/menusets.4th/ FreeBSD dynamic submenu boot module] | ||
+ | |- | ||
+ | |/boot/pmbr | ||
+ | | | ||
+ | |- | ||
+ | |/boot/pxeboot | ||
+ | |[https://www.unix.com/man-page/freebsd/8/pxeboot/ Preboot Execution Environment (PXE) bootloader] | ||
+ | |- | ||
+ | |/boot/screen.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/shortcuts.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/support.4th | ||
+ | | | ||
+ | |- | ||
+ | |/boot/userboot.so | ||
+ | | | ||
+ | |- | ||
+ | |/boot/userboot_4th.so | ||
+ | | | ||
+ | |- | ||
+ | |/boot/userboot_lua.so | ||
+ | | | ||
+ | |- | ||
+ | |/boot/version.4th | ||
+ | | The file that goes by the name of [https://www.unix.com/man-page/freebsd/8/version.4th/ version.4th] is a set of commands designed to draw the boot loader version at the bottom-right of the screen. The commands of [https://www.unix.com/man-page/freebsd/8/version.4th version.4th] by themselves are not enough for most uses. Please refer to the examples below for the most common situations, and to [https://www.unix.com/man-page/freebsd/8/loader/ loader(8)] for additional commands. | ||
+ | |- | ||
+ | |/boot/zfsboot | ||
+ | |[https://www.unix.com/man-page/freebsd/8/zfsboot/ bootcode for ZFS on BIOS-based computers] | ||
+ | |- | ||
+ | |/boot/zfsloader | ||
+ | |[https://www.unix.com/man-page/freebsd/8/zfsloader/ zfsloader is an extended variant] of [https://www.unix.com/man-page/freebsd/8/loader/ loader(8)] with added support for booting from ZFS. This document describes only differences from [https://www.unix.com/man-page/freebsd/8/loader/ loader(8).] | ||
− | + | |} | |
− | + | ||
[[Category:Sysutils]] | [[Category:Sysutils]] |
Latest revision as of 15:59, 23 March 2020
Welcome to /boot/. |
GhostBSD Boot Process | |||
---|---|---|---|
MBR and GPT | UEFI | OpenRC | /boot/ |
Back to the System |
Introduction[edit]
The directory /boot/ contains all important programs and configuration files used during operating system bootstrap.
Content[edit]
Directory | Description |
---|---|
defaults/ | default bootstrapping configuration files; see loader.conf(5) |
file: /boot/defaults/loader.conf | default settings -- do not change this file. |
dtb/ | Compiled flattened device tree (FDT) files; see fdt(4) and dtc(1) |
firmware/ | this file is emty |
kernel/ | pure kernel executable (the operating system loaded into memory at boot time) and kernel modules |
modules/ | third-party loadable kernel modules; see kldstat(8) |
overlays/ | On FreeBSD: Compiled flattened device tree (FDT) overlays; see fdt(4) and dtc(1) Directory not on GhostBSD |
zfs/ | zfs(8) zpool cache files |
Back to Directory Structure |
Programs and Files[edit]
Variable | Description |
---|---|
/boot/beastie.4th | The file that goes by the name of beastie.4th is a set of commands designed to draw the ASCII art FreeBSD mascot, known simply as beastie, to the right of the boot loader menu. |
/boot/boot | system bootstrapping procedures A single, full-blown file, boot (/boot/boot), is what ultimately is written to disk. |
/boot/boot0 | The Master Boot Record It is a small 512-byte file. |
/boot/boot0sio | Image for serial consoles (COM1,9600,8,N,1,MODEM) see: FILES |
/boot/boot1 | boot1 is the next step in the boot-loading sequence |
/boot/boot1.efi | UEFI The default UEFI boot configuration for FreeBSD installs boot1.efi in the default path. |
/boot/boot1.efifat | UEFI msdosfs(5) FAT file system image containing boot1.efi for use by bsdinstall(8) and the bootcode argument to gpart(8). |
/boot/boot2 | boot2 is much bigger than boot0 and boot1, holding both the BTX server and the boot2 client |
/boot/brand.4th | FreeBSD ASCII art boot module |
/boot/brand-fbsd.4th | like brand.4th |
/boot/cdboot | Boot from CD |
/boot/check-password.4th | |
/boot/color.4th | FreeBSD color-detection boot module |
/boot/delay.4th | FreeBSD debugging boot module |
/boot/device.hints | device resource hints |
/boot/efi.4th | |
/boot/frames.4th | |
/boot/gptboot | GPT bootcode for UFS on BIOS-based computers |
/boot/gptboot.efi | |
/boot/gptboot.efifat | |
/boot/gptzfsboot | GPT bootcode for ZFS on BIOS-based computers |
/boot/isoboot | Boot from iso |
/boot/loader | The program called loader is the final stage of FreeBSD's kernel bootstrapping process.[1] |
/boot/loader.4th | loader(8) bootstrapping script. loader.conf processing tools |
/boot/loader.conf | user defined settings |
/boot/loader.efi | |
/boot/loader.rc | loader bootstrapping script. Standard: /boot/loader.rc: include /boot/loader.4th |
/boot/loader.rc.local | |
/boot/loader_4th | |
/boot/loader_4th.efi | |
/boot/loader_lua | |
/boot/loader_lua.efi | |
/boot/loader_simp | |
/boot/loader_simp.efi | |
/boot/logo-beastie.4th | |
/boot/logo-beastiebw.4th | |
/boot/logo-fbsdbw.4th | |
/boot/logo-orb.4th | |
/boot/logo-orbbw.4th | |
/boot/mbr | Master Boot Record |
/boot/menu.4th | FreeBSD dynamic menu boot module |
/boot/menu.rc | |
/boot/menu-commands.4th | |
/boot/menusets.4th | FreeBSD dynamic submenu boot module |
/boot/pmbr | |
/boot/pxeboot | Preboot Execution Environment (PXE) bootloader |
/boot/screen.4th | |
/boot/shortcuts.4th | |
/boot/support.4th | |
/boot/userboot.so | |
/boot/userboot_4th.so | |
/boot/userboot_lua.so | |
/boot/version.4th | The file that goes by the name of version.4th is a set of commands designed to draw the boot loader version at the bottom-right of the screen. The commands of version.4th by themselves are not enough for most uses. Please refer to the examples below for the most common situations, and to loader(8) for additional commands. |
/boot/zfsboot | bootcode for ZFS on BIOS-based computers |
/boot/zfsloader | zfsloader is an extended variant of loader(8) with added support for booting from ZFS. This document describes only differences from loader(8). |