New Catalog/mnt/cdrom
Execute Command mount/dev/cdrom/mnt/cdrom
[[email protected] cdrom]# Mount/dev/cdrom/mnt/cdrommount:/dev/sr0 write protection, will be mounted as read-only
Enter the/mnt/cdrom folder to find that the inside is empty, indicating that the mount failed.
Now in many distributions, the optical drive is not/dev/cdrom, but/dev/sr0.
The result of the command ls-l/dev/cdrom |grep cdrom:
[Email protected] cdrom]# ls-l/dev/cdrom |grep cdromlrwxrwxrwx. 1 root root 3 September 4 18:31/dev/cdrom-Sr0
Change the command map to Mount/dev/sr0/mnt.
If you want to write more complete, it can be/mount-t iso9660-o,loop/dev/sr0/mnt.
And that word. Block Device/dev/sr0 is write-protected,mounting read-only (block device/dev/sr0 is write-protected, mount as read-only)
If you put the-T iso9660-o,loop behind the mount as I said, then that sentence won't be there.
Also, after you execute mount, there is a line in the returned content/dev/sr0 on/mnt type iso9660 (RO) can also prove that the CD has been mounted successfully
。 Because the format of the disc is usually iso9660, it means that the/dev/sr0 is mounted on the/mnt directory, and the type is iso9660. (RO) is readonly read only. The discs are read-only. It can only be written once, even if it is to be written.
Execute/mount-t Iso9660-o,loop/dev/sr0/mnt/cdrom
[Email protected] dev]# mount-t iso9660-o,loop/dev/sr0/mnt/cdrom[[email protected] dev]# Cd/mnt/cdrom[[email Protect Ed] cdrom]# lsaddons GPL LiveOS release-notes rpm-gpg-key-redhat-releaseefi Images Media.repo repodata TRANS. Tbleula isolinux Packages Rpm-gpg-key-redhat-beta
This is the directory that already has something that indicates the success of the Mount
How to mount ISO images under Linux