10.7 Use of CD/DVD/USB Memory (Removable Media) |
There are CD / DVD drive and USB memory as removable external storage device that can be removed or inserted for replacing with media while staying the power on.
When using removable media, you need to mount it manually (in some distributions it may be mounted automatically).
As a mount point of removable media, the directory created under /mnt directory and /media directory is used.
10.7.1 Mount CD/DVD
To use the CD / DVD with Linux, mount it with the mount command. As an option, specify iso 9660 which is the CD standard for type, and read only ro for mode.
# mount -t iso9660 -o ro /dev/hdc /media/cdrom ↵ Mount DVD-ROM
# ls /media/cdrom ↵ Check the mount point
CentOS RELEASE-NOTES-es.html RELEASE-NOTES-pt_BR
EULA RELEASE-NOTES-fr RELEASE-NOTES-pt_BR.html
GPL RELEASE-NOTES-fr.html RELEASE-NOTES-ru
NOTES RELEASE-NOTES-it RELEASE-NOTES-ru.html
RELEASE-NOTES-cz RELEASE-NOTES-it.html RPM-GPG-KEY-CentOS-5
RELEASE-NOTES-cz.html RELEASE-NOTES-ja RPM-GPG-KEY-beta
RELEASE-NOTES-de RELEASE-NOTES-ja.html TRANS.TBL
RELEASE-NOTES-de.html RELEASE-NOTES-nl images
RELEASE-NOTES-en RELEASE-NOTES-nl.html isolinux
RELEASE-NOTES-en.html RELEASE-NOTES-pt repodata
RELEASE-NOTES-es RELEASE-NOTES-pt.html
|
In the practical example, the device /dev/hdc is mounted in the /media/cdrom directory. Depending on the distribution, there is no /media/cdrom directory, so specify /mnt instead.
Please refer to the contents of the DVD-ROM with the ls command after mounting successfully.
10.7.2 Unmount CD/DVD and Take it out
To eject the mounted CD/DVD, use the umount command to unmount it.
Practice :Unmount DVD-ROM |
# umount /media/cdrom ↵ Unmount DVD-ROM
# ls /media/cdrom ↵ Check the mount point
#
|
Unmount can not be done if the mount point is in use. Few examples in which the mount point is in use is when the mount point or lower is the current directory, or when the file included in the removable medium is being referenced. Make sure that you are not using the directory, unmount it by moving directory or ending the processing.