Boot folder
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
In Unix-like operating systems, a boot folder is the directory which holds files used in booting the operating system, typically /boot. The usage is standardized within Linux in the Filesystem Hierarchy Standard.[1]
Contents
The contents are mostly Linux kernel files or boot loader files, depending on the boot loader, most commonly (on Linux) LILO or GRUB.
Linux
vmlinux– the Linux kernel[2]initrd.img– a temporary file system, used prior to loading the kernel[3]System.map– a symbol lookup table[4]
LILO
LILO creates and uses the following files:
map– a key file, which records where files needed by LILO during boot are stored. Following kernel upgrades, this file must be regenerated by running the "map installer", which is /sbin/lilo otherwise the system will not boot.boot.xxyy– these 512-byte files are backups of boot sectors, either the master boot record (MBR) or volume boot record (VBR), created when LILO overwrites a boot sector. xx and yy are the major and minor device numbers in hex;[5] for example, the drive sda has numbers 8, 0, hence its MBR is backed up to boot.0800 while the partition sda3 has numbers 8,3, hence its VBR is backed up to boot.0803.
LILO may also use other files, such as message and also stores a non-boot configuration file in /etc/lilo.conf.
GRUB
GRUB stores its files in the subdirectory grub/ (i.e. /boot/grub/). These files are mostly modules (.mod), with configuration stored in grub.cfg.
Location
/boot/ is often simply a directory on the main (or only) hard drive partition. However, it may be a separate partition. A separate partition is generally only used when bootloaders are incapable of reading the main filesystem (e.g. LILO does not recognize XFS) or other problems not easily resolvable by users.[citation needed]
On UEFI systems, including most modern PCs, the EFI system partition is often mounted at /boot/, /efi/ or /boot/efi/.[6][7]
References
- ^ "3.5. /boot : Static files of the boot loader". Linux Foundation Referenced Specifications. March 19, 2015. Retrieved June 7, 2021.
- ^ Ward, Brian (2004). How Linux works what every superuser should know. San Francisco: No Starch Press. p. 219. ISBN 1593270356.
- ^ Lombardo, John (2001). Embedded Linux. Indianapolis, Ind: New Riders. p. 17. ISBN 9780735709980.
- ^ Kopper, Karl (2008). The Linux Enterprise Cluster build a highly available cluster with commodity hardware and free software. San Francisco: No Starch Press. p. 61. ISBN 978-1593270360.
- ^ "LILO mini-HOWTO: Background Information and Standard Installation". tldp.org. Retrieved 2022-11-26.
- ^ "EFI System Partition - Gentoo wiki". wiki.gentoo.org. Retrieved 2024-02-15.
- ^ "EFI system partition - ArchWiki". wiki.archlinux.org. Retrieved 2024-02-15.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.