The Linux kernel provides a mechanism for accessing kernel internal data structures and changing kernel settings through the/proc file system at run time. Although the basic concepts of the/proc file system for Linux systems on va
Linux Kernel reduction and root file system customization (1) -------- Linux kernel reductionDirectory:
I. kernel Compilation
Ii. root file system Customization
Iii. kernel options
I. kernel Compilation
1. Preparations
(1) sort
attempts to assign pages to the process that sent the page request
The partner system allocates memory pages:
Page Frame Reclamation: When a process requests a specified number of memory pages without available memory pages, the kernel attempts to release a specific memory page for use by the new request, which is called memory reclamation. KSWAPD Kernel threads and try_to_free_page () kernel functions are responsible for page recycling.K
--/Etc/fstab file Analysis
[Preface: in the previous section, partition mounting will expire after restart. To take effect permanently, you need to write it to the/etc/fstab file]
I. Format: Six Components
Physical partition name/volume label mount point file system default
Have time to sleep, but still five point more awake, but have been lying down nine points more to calculate up, last night has been the embedded Development Board, some problems did not solve, their computer system problems, although Win10 released,, but I still like XP Ah, good want to go home with the Home XP to play this piece of board, Unconsciously also the fifth day, feel the code is a little vague, even their own are not very clear, worry about
The basic structure of the linux System and the structure of the file system (configuration illustration) the linux system includes four major sections of the vLinux kernel v Linux Shel
With the evolution of high-performance computing from traditional host to networked cluster, the traditional host-based storage architecture has gradually developed to networked storage, and the trend of computing and storage separation is becoming more and more obvious. A new file system for Linux clusters has been launched internationally for the lack of SAN an
Http://blog.sina.com.cn/s/blog_67b74aea01018ycx.htmlThe Linux (Unix) process is intricately related to files, and this tutorial attempts to elaborate on this issue. include: 1, Linux multi/single process and multi/single file on the use of file streams and descriptors and some issues needing attention. 2, fork,vfor
We recommend that you use a Linux mount file system. For example, you may have some knowledge about the Linux mount file system. Then, we will give a full introduction to the Linux moun
1. Disks are an important part of the Linux system. One of the most important tasks for system administrators is to manage their own file systems. First introduce some basic concepts of the following disks:1) sector is the smallest physical storage unit with 512 bytes per sector2) The sector is composed of a circle, wh
format); Vfat (equivalent to Windows FAT32 format); If you want to format it as a swap space for your Linux system, you can type a command: #mkswap/dev/sdb1, we don't need it here. At this point, the creation of the new file
used, use the Swapon command to specify the swap file to be enabled;(6) You can use Swapon-s to check the usage of swap;Example 1 is as follows:(1) Use partition as swap·Fdisk/dev/hda· Input N; create a new partition. If the previous example is used, the hard disk should have space left. Here, create a m partition;· Input t; then input 7 (the new partition here is hda7, which can be viewed by P); input 82 (82 indicates that it is set to swap partitio
#whereis find software that is already installed
Looking up a file on Linux is a bit of a hassle. After all, in Linux we need to use the dedicated "find" command to find the files on the hard disk.
Inux file expression format is very complex, unlike Windows,dos under the u
): ----- we want to give the remaining space to 2, press ENTER Using default value 1305 Command (m for help): p ----- to view the Partition Table Disk/dev/sdb: 10.7 GB, 10737418240 bytes255 heads, 63 sectors/track, 1305 cylindersUnits = cylinders of 16065*512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sdb1 1 1 623 5004216 83 Linux/dev/sdb2 624 1305 5478165 83
, that is,/dev/sda1. In Fedora, we can see from df-h that Fedora is located in/dev/sda1. Therefore, in the configuration file that directs Fedora, there is also a line to specify where the root of Fedora is, on/dev/sda1; because/dev/hda7 has been virtualized to/dev/sda1. I understand this time;
A file system that uses image files as virtual
...... /Usr partition: usr has been used since then. the figure at the beginning of the article is formed after mounting linux bin lib src. Does it look like hanging up? Note: 1. the mount point must be a directory. 2. a partition is mounted to an existing directory. the directory cannot be empty, but the contents in the directory are unavailable. This is also true for mounting file systems created by othe
list of the drop-down list of their own choice, the following describes the meaning of a partition mount point.Partition mount point:/root Partition/USR Application storage locationThe parent directory of the/home user host Directory/var store temporary files/boot store boot file 128M is enough.Understanding the mount point should know why the Linux partition is like an upside down tree, then each layer wi
, file systems typically have three storage blocks: (1) Super BLOCK: Super blocks, which are used to store the overall information of the filesystem, including the total amount of the remaining two innode and blocks, the amount of usage, Remaining Amount and file system format and
, ask to enter the partition number to delete, in the Device field column you can see the number of each partition, enter the partition number you want to delete carriage returnPreviously all operations were considered no problem, enter W, save exit.At this point the host screen will prompt:The kernel still uses old table indicates that the current system is still using the older partition table;The new table is used at the next reboot. Indicates that
Partition formatting (Linux File system creation): (assuming that the partition you need to format is /dev/sdb1)1. Differences between the ext2 file system and the ext3 file system:Ext2
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.