如何让CentOS不自动挂载U盘

2020-04-29 娱乐 68阅读
cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Oct 26 19:35:24 2015
#
# 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/vg_livedvd-lv_root / ext4 defaults 1 1
UUID=dd7291b1-f970-4895-9f4a-f848e9be1735 /boot ext4 defaults 1 2
/dev/mapper/vg_livedvd-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
[root@gfs1 ~]#
在/etc/fstab这个文件里面找到你的挂载U盘所属行,开头用 # 注掉使其不执行挂载
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com