Device mount take the optical drive as an example, first in the virtual machine VMware in the optical drive to add a mirror to confirm that the optical drive is working
[Email protected] ~]# Cd/dev/cdrom
-BASH:CD:/dev/cdrom: Not Directory
[Email protected] ~]# Ls/dev/cdrom
/dev/cdrom
[[email protected] ~]# mount/dev/cdrom/mnt (Attach cdrom to the MNT directory)
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 (System Mount profile)
#
#/etc/fstab
# Created by Anaconda on Sat Sep 23 00:10:04 2017
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans 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 (System current directory mount information)
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/(system default mount location)
[[email protected] packages]# ls (view immortal information)
This article from "CHENQJ" blog, declined reprint!
Linux Device Catalog Mount device cannot view problem resolution