标签:linux
mount挂载后,重启挂载失效
os系统启动时,会自动挂载文件中的文件系统
/etc/fstab 文件内的配置
mount -a挂载/etc/fstab内的所有文件系统
永久挂载/dev/sda7
[root@jameszhan ~]# 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
本文出自 “James zhan Linux高级运维” 博客,请务必保留此出处http://jameszhan.blog.51cto.com/10980469/1878637
标签:linux
原文地址:http://jameszhan.blog.51cto.com/10980469/1878637