This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: "/boot/" – news · newspapers · books · scholar · JSTOR (June 2010) (Learn how and when to remove this message)

In Linux, and other Unix-like operating systems, the /boot/ directory holds files used in booting the operating system. The usage is standardized 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

LILO

LILO creates and uses the following files:

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

  1. ^ "3.5. /boot : Static files of the boot loader". Linux Foundation Referenced Specifications. March 19, 2015. Retrieved June 7, 2021.
  2. ^ Ward, Brian (2004). How Linux works what every superuser should know. San Francisco: No Starch Press. p. 219. ISBN 1593270356.
  3. ^ Lombardo, John (2001). Embedded Linux. Indianapolis, Ind: New Riders. p. 17. ISBN 9780735709980.
  4. ^ 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.
  5. ^ "LILO mini-HOWTO: Background Information and Standard Installation". tldp.org. Retrieved 2022-11-26.
  6. ^ "EFI System Partition - Gentoo wiki". wiki.gentoo.org. Retrieved 2024-02-15.
  7. ^ "EFI system partition - ArchWiki". wiki.archlinux.org. Retrieved 2024-02-15.