Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux configuration startup mount: fstab file     - Introduction to Linux system process monitoring tools (Linux)

- Java NIO in the world (Programming)

- BCP importing and exporting large amounts of data Practice (Database)

- Installing software on Ubuntu: apt-get and dpkg difference (Linux)

- The most common and most effective security settings under linux (Linux)

- Docker + Nginx + Tomcat7 simple load balancing configuration (Server)

- Linux configuration startup mount: fstab file (Linux)

- Android Notification (Programming)

- Performance Diagnosis of 60,000 milliseconds for Linux (Linux)

- How to implement large-scale distributed Yahoo depth study on the Hadoop cluster (Server)

- JavaScript: understanding regular expressions (Programming)

- Give your photos Instagram style filters plus program in ubuntu (Linux)

- Linux Firewall Basics (Linux)

- Oracle 11g RAC installation considerations Miscellany (Database)

- Let Ubuntu 14.04 Save screen luminance value (Linux)

- Linux character device - automatically creates the device nodes and devices (Linux)

- Command-line based tools for better alternatives (Linux)

- Use Visual Studio to compile and use WinGDB remote debugging embedded Linux programs (Programming)

- Java implementation heap sort (large root heap) (Programming)

- CentOS7 Minimal minimize installation and then install the GNOME graphical interface (Linux)

  Linux configuration startup mount: fstab file
  Add Date : 2018-11-21      
  Fstab document presents

fstab file contains the information storage device and file system on your computer. It is a hard decision (partition) is how to use or integrated into the overall system files. Specifically: Use fstab to automatically mount the various file system formats the hard disk partition, removable devices and the remote equipment. For Windows and Linux dual operating system user with fstab to mount FAT format and NTFS formatted partitions, windows system can share resources in Linux.

The full path of this file is / etc / fstab. It's just a text file, you can open it with your favorite editor, but it must be the root user to edit it. Meanwhile fsck, mount, umount such orders the use of the program.

/ Etc / fstab configuration file at start-up, however, the actual filesystem mount is recorded in / etc / mtab and / proc / mounts among these two files. Every time when we mount filesystem changes, changes of these two documents will also Oh!

Some restriction system mounted:

/ Is to be mounted, and must first be mounted to other mount point came.
Other mount point must be a directory that has been created, can be specified, but must comply with the principle of the necessary system directory structure
All mount point at the same time, the mount only once.
All partition at the same time, the mount only once.
Should be dismounted, you must first move outside the working directory mount point (and its subdirectories).
File of each field


# < Fs> < mountpoint> < type> < opts> < dump / pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.

/ Dev / sda10 / boot ext4 noauto, noatime 1 2
/ Dev / sda6 / ext4 noatime 0 1
/ Dev / sda9 none swap sw 0 0
/ Dev / cdrom / mnt / cdrom auto noauto, ro 0 0
In fact, when / etc / fstab (filesystem table) that we will use the mount command, writes all of the options and parameters to the file you want. In addition, / etc / fstab also added support for the dump backup command! And whether the file system check fsck commands at startup related.

< File systems> Mounting equipment: not our usual understanding of the file system, but rather refers to the equipment (hard disks and partitions, DVD drive, etc.). It tells us the device (partition) name, which is when you mount (mount) command line, unloading (umount) to use the equipment.
< Mountpoint> mount point: Tell us where to mount the device.
< Type> file system types: Linux supports many file system. To get a complete list of supported lookup mount man-page. Typical of these names include: ext2, ext3, reiserfs, xfs, jfs, iso9660, vfat, ntfs, swap and auto, 'auto' is not a file system, but to mount command to automatically determine the file type, especially for mobile devices, floppy disk, DVD drive, this is necessary, because it may not match each mounted file types.
< Opts> file system parameters: This section is the most useful settings! ! ! It enables you to mount the device automatically loaded at boot time, so do not display Chinese garbled, limit mount the partition read and write permissions. It is related to usage and mount command, in order to get a complete list, refer to mount manpage.
< Dump> Backup command: dump utility to decide whether to make a backup dump checks the entry and use the numbers to determine whether the file system backups. The allowed number is 0 and 1. If 0, dump will ignore the file system, and if 1, dump will make a backup. Most users do not have dump, so for them < dump> This entry should be written to zero.
< Pass> fsck to verify whether the sector: the boot process, the system will default to test our fsck filesystem is complete (clean). However, some test filesystem is not required, such as the replacement of memory space (swap), or a special file systems such as / proc and / sys, and so on. fsck checks at the head of this figure to determine the order check the file system, allowing the number is 0, 1, and 2.0 is not inspection, 1 represents the first test (usually only the root directory is configured to 1), also to 2 test, but will be relatively long been a test it! In general, the root directory is configured to 1, the other to test the filesystem are configured as 2 just fine.
< Opts> common parameters:

noatime close atime features to improve performance, which is a very old property, closed at ease, but also reduce loadcycle
defaults using the default settings. Equal rw, suid, dev, exec, auto, nouser, async, see the specific meaning explained below.
Automatic and manual mounting:
auto mounted automatically at boot or enter the mount -a in a terminal
noauto device (partition) can be manually mounted
Read and write permissions:
ro mounted as read-only access
rw mount read-write permissions
exec is the default settings, it makes an executable binary files in that partition can be performed
noexec binary file is not allowed. Never in your root partition using this option! ! !
I / O synchronization:
sync All I / O will be performed synchronously
async All I / O will be performed asynchronously
Household mount privileges:
user allows any user to mount devices. Implies noexec, nosuid, nodev unless overridden.
nouser only allow root user to mount. This is the default setting.
Temporary file execute permission:
suid Permit the operation of suid, and sgid bits. They are mostly used to allow users on a computer system to execute binary executables with temporarily elevated privileges in order to perform a specific task.
nosuid Blocks the operation of suid, and sgid bits.
Reboot the system

Reboot the system, or enter the mount -a in a terminal can see the effect of the modified.
- Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)
- Install Websphere MB required system rpm package under Linux (Linux)
- Relationship between Linux permissions with the command (Linux)
- The AWK use Cygwin tools mysql binlog log viewer (Database)
- Ubuntu 14.04 installed NVIDIA graphics driver (Linux)
- Linux process scheduling opportunity (Programming)
- U disk to install Windows and Ubuntu 15.04 dual system (Programming)
- Hadoop 0.23 compile common errors (Server)
- Install minimize RHEL / CentOS 7 things to do (Linux)
- Android Qemu GPS module (Programming)
- How to achieve the MySQL Oracle table associated with the two operations update (Database)
- hexdump Linux command (Linux)
- How to view the Linux graphics hardware information (Linux)
- Linux Basics Tutorial: Linux Kickstart automated installation (Linux)
- Linux tar compressed exclude a folder (Linux)
- DB2 table space is redirected to restore the database combat (Database)
- Linux system commands to view hardware information (Linux)
- Oracle LONG RAW BLOB CLOB type of presentation (Database)
- RHEL7.0 configuration CD-ROM to the local YUM (Linux)
- How to install the Ruby runtime environment on Mac OS X (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.