Mount filesystems during boot

To mount a partition to the filesystem on boot,
go to the filesystem table file and append the corresponding instructions.

Here is an example of fstab where I attached a Windows NTFS partition to /mnt/WinData during boot:

#
# /etc/fstab
# Created by anaconda on Sun Sep 24 19:33:26 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#

/dev/mapper/centos-root                   /               xfs   defaults  0 0
UUID=f55d96a4-bb64-4a91-9420-11c0ddaa525a /boot           xfs   defaults  0 0
/dev/mapper/centos-home                   /home           xfs   defaults  0 0
/dev/mapper/centos-swap                   swap            swap  defaults  0 0
UUID=FE56AF9056AF486B                     /mnt/WinData    ntfs  defaults  0 0


For more information:

or Search for "fstab"

留言

這個網誌中的熱門文章

在 vimtutor 的 help 遇到 E434: Can't find tag pattern 問題ㄒ

Logical volume management LVM

Create a CentOS installation USB key with dd command