Английская Википедия:/boot/

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Refimprove In Linux, and other Unix-like operating systems, the Шаблон:Mono 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:

  • 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 Шаблон:Mono 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 Шаблон:Mono has numbers 8, 0, hence its MBR is backed up to Шаблон:Mono while the partition Шаблон:Mono has numbers 8,3, hence its VBR is backed up to Шаблон:Mono.

LILO may also use other files, such as Шаблон:Mono and also stores a non-boot configuration file in Шаблон:Mono.

GRUB

GRUB stores its files in the subdirectory Шаблон:Mono (i.e. Шаблон:Mono). These files are mostly modules (Шаблон:Mono), with configuration stored in Шаблон:Mono.

Location

Шаблон:Mono 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.

On UEFI systems, including most modern PCs, the EFI system partition is often mounted at Шаблон:Mono or Шаблон:Mono.

References

Шаблон:Reflist

Шаблон:Software-type-stub