In Linux, and other Unix-like operating systems, the /boot/ file directory holds files used in booting Linux. The usage is standardized in the Filesystem Hierarchy Standard.
Contents |
The contents are mostly Linux kernel files or boot loader files, depending on the boot loader, most commonly (on Linux) LILO or GRUB.
vmlinuz
– the actual Linux kernel executable fileinitrd.img
– a temporary file system, used during bootingconfig
– kernel configuration parametersSystem.map
– a symbol lookup tableLILO 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;[1] 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.0803LILO may also use other files, such as message and also stores a non-boot configuration file in /etc/lilo.conf
GRUB stores its files in the subdirectory grub/ (so /boot/grub/). These files are mostly modules (.mod), with configuration stored in grub.cfg.
/boot/ is often simply a directory on the main (or only) hard drive partition. However, it may be a separate partition. Using a separate partition is generally only used when bootloaders are incapable of reading the main filesystem (e.g. SILO does not recognize XFS) or other problems not easily resolvable by users.