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
1. Quotas, also known as limits, are for partitions, not users or files, and not the entire hard disk;2. Kernel version must be more than 2.4 to support; see if the kernel supports quotas.3.root is not restricted by quota, only ordinary users are restricted;4. Terminology in quotas:5. Quotas can be set for users or groups, respectively, as:User quota: UsrquotaSet quotas for individual users;Group Quota: GrpquotaSet quotas for all members in the entire group;6. Steps for configuring quotas:To mou
Previous section: http://blog.csdn.net/mybelief321/article/details/8989755 5 basic function Functions open (), read (), write (), Lseek (), and Close () The implementation of the file open, read/write operations, this section will discuss how the file has been shared, that is, when multiple users to use, manipulate a file. At this point,
: Similar to tar, followed by the resulting file-W: Lists whether the partition with the dump setting in/etc/fstab has been backed up7.Restore: Restore backup file Restore-r [-F DumpFile]8.Mkisofs: New Image file Mkisofs [-o image file] [-RV] [-m file] files to be backed up-
View the file systems supported by the current kernel system under Linux:
Typically included in the/lib/modules/kernl-version/kernel/fs/directory are file systems supported by the current kernel version:
ls/lib/modules/kernl-version/kernel/fs/
eg
V0id@v0id-eof ~ $ ls/lib/modules/3.11.0-12-generic/kernel/fs/
9p AFS
Linux Systems-File systems-File system compositiona common directory1 directories that all users can use:/usr/bin or/bin2 directory only available to root users:/usr/sbin or/sbin3 Host Directory:/ Home4 Virtual file system, storag
What is the most important thing now? Of course is the ability to work and efficiency, many of the use of Linux system partners have encountered a problem, want to import the database, if a file of a file import, the process is slow, delaying time, thereby reducing the efficiency. So want to find a new way, you can syn
Introduction to NFS
NFS is the shorthand for network file system, which is the network filesystem. The network file system is one of the FreeBSD supported file systems, also known as NFS. NFS allows a system to share directories
:★★★★★Purchase at Dangdang | excellent purchaseAdvanced Programming in UNIX environment is a must-have book for Unix/Linux programmers. It can be said that if a Linux programmer has not read this book, it is as though Christians have not read the Bible, which is hard to understand. This
Tags: simple operation of Linux file systemTo have the system mount the partition automatically, you need to modify the/etc/fstab fileThere are 6 fields in/etc/fstab1, the device name used to specify the device name can also be a volume label2, Mount point, the partition will be associated with the specified mount point if the partition is a swap partition direct
device can contain one or more file systems; to access a file system, you must first mount the file system. To mount the file system, you must specify a mount point; once the
Linux disk and file system management (6) _ link file lnFile: hard link: multiple paths point to the same inode. When multiple paths point to one inode, when a hard link is created, the reference count of inode is increased. When a hard link is deleted, only one access path is deleted, the
informationCreate a directory (USB) in the/MNT directoryCd/mntmkdir USBmount the USB drive to the/MNT/USB directory ( note that the USB drive partition is mounted)----> here does not mount directly to the contents of the USB flash driveMount/dev/sdc1/mnt/usbEnter the/MNT/USB directory to get the contents of the USB flash driveCd/mnt/usb #进去挂载的路径ls #查看文件信息Copying filesThe path to the CP file name 5. un-mountCD/ ###### back to
The io/file operation exercises under Linux, although the knowledge is simple but often the foundation is easy to overlook, the occasional practice is necessary.Practice printf/*************************************************************************> File name:printf.c> Author: > Mail: > Created time:wed 01:08:15 AM PST ******************************************
Linux shutdown requires that buffer data be written back to the file system firstand unmount the file systemIf you shut down without uninstalling the file system, data loss will occur.Linux uses a struct stat in the Stat.h header
Linux C Programming series exercises system call file IO, memory ing program write ls program, the system calls ls
Click Connect to enter the article
1.1Linux System Call exercise
1.2 simulate Linux ls program to display the
first, the Linux file structureA file structure is a method of organizing files on storage devices such as disks. Mainly embodied in the organization of files and directories.The directory provides a convenient and effective way to manage files.Linux uses a standard directory structure that, when installed, has created a file
Include header file, link database, System definition, total of the following sources specify GCC go there and find it.
Originally specified at compile time (in ~gcc/gcc/collect2.c:locatelib ()
Written in specs.
Later with-d-i-L specified
GCC environment variable settings (at compile time)
ld.so environment variable (this is run time)
I. Header documents
How does GCC find the required header files at compil
The old boy education of the day-2017-04-21: Command Storm--Check the file system type of your Linux system? Ext2, Ext3, Ext4, XFS ...?today is the day that the old boy educates the day to accompany everyone . For questions and answers, please leave a comment in the blog comments section.Index of the topic of the previ
Check whether the linux system file has been changed by using md5sum. Export lsfirst.txtgrouppasswdsecond.txtthird.txt # pwd/mnt/tt # md5sum/mnt/tt/* gt;/opt/md5_res.txt \ perform md5 verification on the files in the tt directory and store the data... check whether the linux syste
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.