System mount files in Linux/etc/fstab

Source: Internet
Author: User

[Email protected] ~]# Cat/etc/fstab

#
#/etc/fstab
# Created by Anaconda on Wed OCT 5 15:21:46 2016
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info
#
/DEV/MAPPER/VOLGROUP-LV_ROOT/EXT4 Defaults 1 1
Uuid=546c4e25-7b06-468b-89a1-e66280c4ee98/boot EXT4 Defaults 1 2
/dev/mapper/volgroup-lv_swap swap swap defaults 0 0
TMPFS/DEV/SHM TMPFS Defaults 0 0
Devpts/dev/pts devpts gid=5,mode=620 0 0
Sysfs/sys Sysfs Defaults 0 0
PROC/PROC proc Defaults 0 0
[Email protected] ~]#

First field: Partition device file name or UUID
1.UUID is a universal unique identifier for the hard disk
2. View UUID method:
[[email protected] ~]# df-h
Filesystem Siz E used Avail use% mounted on
/dev/mapper/volgroup-lv_root
6.5G 1.6G 4.7G 26%/
Tmpfs 246M 0 246M 0% /DEV/SHM
/dev/sda1 477M 28M 425M 7%/boot

[[email protected] ~]# dumpe2fs-h/dev/sda1
F Ilesystem uuid:546c4e25-7b06-468b-89a1-e66280c4ee98
3. The file name of the partition device before the system was used, later the UUID
Second field: Mount point
Third field: File system name
Fourth field: Mount Parameter
Fifth field: Specifies whether the partition is backed by dump, 0: No, 1: Daily backup, 2: Irregular backup
Sixth field: Specifies whether the partition is detected by fsck, 0: No, other numbers represent detection priority, 1 high

Note:
1. Automatic Partition mount:
A.[[email protected] ~]# Vi/etc/fstab
/DEV/SDB5/DISK5 EXT4 Defaults 1 2
B.[[email protected] ~]# mount-a
C.[[email protected] ~]# reboot
2. This file is dangerous, if it is wrong, the system will not start
A. Wrong with the partition.
Completely kneeling.
B. Other partitions are incorrectly written.
1. System boot error, and then prompt you to enter the root password
2. Go to root and modify the/etc/fstab file to correct the wrong.
A. If the hint file is read-only, even root does not change:
[Email protected]~]# mount-o REMOUNT,RW/

System mount files in Linux/etc/fstab

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.