mount挂载后,重启挂载失效
os系统启动时,会自动挂载文件中的文件系统
/etc/fstab 文件内的配置
mount -a挂载/etc/fstab内的所有文件系统
永久挂载/dev/sda7
[[email protected] ~]# vim /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Jul 20 00:21:54 2016
#
# 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
#
UUID=1012c420-a3f3-49df-96ec-8342d49d29f6 / ext4 defaults 1 1
UUID=c572a53a-3098-4086-a32b-21e616343a99 /boot ext4 defaults 1 2
UUID=4e29d3a8-7004-446b-b693-1f124848aa82 /home ext4 defaults 1 2
UUID=e01b088a-20f1-4ae5-a9e4-b72d0cb97eab /tmp ext4 defaults 1 2
UUID=a65c442f-2a9e-407e-8422-1192e08b85ee 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
/dev/sda7 /mnt/sda7 ext4 defaults 0 0