linux设备目录挂载 设备无法查看问题解决
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux设备目录挂载 设备无法查看问题解决相关的知识,希望对你有一定的参考价值。
设备挂载以光驱为例,先在虚拟机VMware中光驱中添加镜像,确认光驱正常运行
[[email protected] ~]# cd /dev/cdrom
-bash: cd: /dev/cdrom: 不是目录
[[email protected] ~]# ls /dev/cdrom
/dev/cdrom
[[email protected] ~]# mount /dev/cdrom /mnt (把cdrom挂载到mnt目录)
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] ~]# ls /mnt
CentOS_BuildTag GPL Packages RPM-GPG-KEY-CentOS-6 RPM-GPG-KEY-CentOS-Testing-6
EFI images RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Debug-6 TRANS.TBL
EULA isolinux repodata RPM-GPG-KEY-CentOS-Security-6
[[email protected] /]# cat /etc/fstab (系统挂载配置文件)
#
# /etc/fstab
# Created by anaconda on Sat Sep 23 00:10:04 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
#
UUID=074813f8-47c3-441f-8788-bf17e461403c / ext4 defaults 1 1
UUID=733288b5-d2f0-4562-9ef1-7efe331f886a /boot ext4 defaults 1 2
UUID=4485a880-091c-4c0b-ae4d-f28dac032138 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] ~]# df -h (系统目前目录挂载信息)
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.8G 701M 7.7G 9% /
tmpfs 491M 0 491M 0% /dev/shm
/dev/sda1 190M 27M 154M 15% /boot
/dev/sr0 3.7G 3.7G 0 100% /mnt
[[email protected] ~]# cd /mnt
[[email protected] mnt]# cd Packages/ (系统默认挂载位置)
[[email protected] Packages]# ls (查看神仙信息)
本文出自 “chenqj” 博客,谢绝转载!
以上是关于linux设备目录挂载 设备无法查看问题解决的主要内容,如果未能解决你的问题,请参考以下文章