Home  >  Article  >  Operation and Maintenance  >  What is a linux boot partition

What is a linux boot partition

WBOY
WBOYOriginal
2022-07-18 14:46:244739browse

The Linux boot partition refers to the "/boot partition". This partition is the boot partition of the system. It stores boot files and the Linux kernel. It is used to determine which operating system or kernel needs to be started. It contains the operating system's Kernel and files used in booting the system.

What is a linux boot partition

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What is the Linux boot partition?

/boot

The boot partition stores boot files and the Linux kernel. Used to determine which operating system or kernel you need to boot.

It contains the kernel of the operating system and the files used in the process of starting the system. It is necessary to build this partition because most PCs are currently restricted by the BIOS. Moreover, if there is A separate /boot boot partition allows the computer to still boot even if there is a problem with the main root partition.

When installing a Linux system, three areas are generally allocated

  • /boot system boot partition

  • /swap swap partition

  • / System file root directory, Linux top-level directory

##Extended knowledge

/swap

can be used as virtual memory. When the system's physical memory is not enough, part of the hard disk space is released for use by the currently running program.

/

linux system root directory

The directory structure is as follows:

linux directory structure:

/bin
存放二进制可执行文件(ls,cat,mkdir等),系统常规命令一般都在这里。
/sbin
存放二进制可执行文件,只有root才能访问。这里存放的是系统管理员使用的系统级别的管理命令和程序。如ifconfig等。
/dev
用于存放设备文件。
/home
存放所有用户文件的根目录,是用户主目录的基点,比如用户user的主目录就是/home/user,可以用~user表示
/root
超级用户家目录。
/lib
存放跟文件系统中的程序运行所需要的共享库及内核模块。共享库又叫动态链接共享库,作用类似windows里的.dll文件,存放了根文件系统程序运行所需的共享文件。系统函数库。
/lib
系统64位函数库。
/proc
虚拟文件系统目录,是系统内存的映射。可直接访问这个目录来获取系统信息。
/run
当前运行的硬件和系统模块。
/srv
系统数据(常量)
/var
用于存放运行时需要改变数据的文件,也是某些大文件的溢出区,比方说各种服务的日志文件(系统启动日志等。)等。系统数据(变量)。
/tmp
用于存放各种临时文件,是公用的临时文件存储点。
/mnt
系统管理员安装临时文件系统的安装点,系统提供这个目录是让用户临时挂载其他的文件系统。临时设备挂载点。
/media
cdrom(光驱)临时挂载点。
/etc
存放系统管理和配置文件。
/opt
第三方软件安装位置。额外安装的可选应用程序包所放置的位置。一般情况下,我们可以把tomcat等都安装到这里。
/boot
存放用于系统引导时使用的各种文件。
/sys
关于内核设定目录。
/usr
(unix system resourse)仅次于/目录,多数系统重要资源都存放在此。
用于存放系统应用程序,比较重要的目录/usr/local 本地系统管理员软件安装目录(安装系统级的应用)。这是最庞大的目录,要用到的应用程序和文件几乎都在这个目录。
/usr/x11r6 存放x window的目录
/usr/bin 众多的应用程序
/usr/sbin 超级用户的一些管理程序
/usr/doc linux文档
/usr/include linux下开发和编译应用程序所需要的头文件
/usr/lib 常用的动态链接库和软件包的配置文件
/usr/man 帮助文档
/usr/src 源代码,linux内核的源代码就放在/usr/src/linux里
/usr/local/bin 本地增加的命令
/usr/local/lib 本地增加的库

There are three types of hard disk partitions: primary disk partition, extended disk partition, and logical partition.

Disk Partition

Disk partitioning actually uses the partition editor to divide several logical parts on the disk. Once the disc is divided into several partitions, different types of directories and files can be stored in different partitions.

(1) In layman's terms, it means dividing a large hard disk into several small hard disks

(2) The difference between a hard disk and a magnetic disk is: A hard disk belongs to a magnetic disk and is assembled from a magnetic disk. The round magnetic disk is sealed in a box and is called a hard drive. The purpose of this is to prevent the disk surface from being scratched and causing data loss.

A hard disk has at least 1 primary partition and a maximum of 4, and there can be no extended partition, with a maximum of 1. And the total number of primary partitions and extended partitions cannot exceed 4. There can be several logical partitions.

The primary partition activated under Windows is the boot partition of the hard disk. It is independent and is also the first partition of the hard disk. If it is divided normally, it is the C area.

Under Linux, both the primary partition and the logical partition can be used to store the system, boot the os, and grub will be compatible with the windows system. After the primary partition is divided, the remaining part can be divided into extended partitions. Generally, the remaining part is divided into extended partitions, or not completely. The remaining part is wasted.

But the extended partition cannot be used directly. It is used in the form of logical partitions, so the extended partition can be divided into several logical partitions. Their relationship is an inclusive relationship, and all logical partitions are part of the extended partition.

Recommended learning:

Linux video tutorial

The above is the detailed content of What is a linux boot partition. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn