- B Mounting CD-ROMs
- Mounting CD-ROMs on AIX
- M ounting CD-ROMs on HP-UX
- M ounting CD-ROMs on Linux
- M ounting CD-ROMs on Solaris
- M ounting CD-ROMs on Tru64 UNIX
- Mounting CD drive
- 2 Answers 2
- How to mount CD-ROM drive in Linux
- Support Xmodulo
- How to Mount CD-ROM on CentOS 8
- Step 1: Login as a Root User
- Step 2: Know the Block Device Name
- Step 3: Create a Mount Point Directory
- Step 4: Mount CD/DVD Drive
- Mount CD/DVD Drive Permanently
- Conclusion
- About the author
- Shehroz Azam
B Mounting CD-ROMs
This Oracle product is delivered on more than one CD-ROM. The CD-ROMs are in ISO 9660 format with Rockridge extensions. This appendix describes how to mount and unmount a CD-ROM on each supported platform. It includes information on the following topics:
Mounting CD-ROMs on AIX
# /usr/sbin/mount -rv cdrfs /dev/cd0 /cdrom
M ounting CD-ROMs on HP-UX
# /usr/sbin/mount -F cdfs -o rr /dev/dsk/cxtydz /SD_CDROM
In this example, /SD_CDROM is the CD-ROM mount point directory and /dev/dsk/c x t y d z is the device name for the CD-ROM device, for example /dev/dsk/c0t2d0 .
Note: To use the this command on the operating system versions listed, the appropriate patches must be installed on the system: For HP-UX 11.00: Install patches PHCO_26449, PHKL_26448, and PHKL_26450 For HP-UX 11i (11.11): install patches PHCO_25841, PHKL_26269, and PHKL_28025
M ounting CD-ROMs on Linux
On most Linux systems, the CD-ROM mounts automatically when you insert it into the CD-ROM drive. If the CD-ROM does not mount automatically, follow these steps to mount it manually.
To mount a CD-ROM on Linux:
# mount -t iso9660 /dev/cdrom /mnt/cdrom
# mount -t iso9660 /dev/cdrom /media/cdrom
In these examples, /mnt/cdrom and /media/cdrom are the mount point directories for the CD-ROM drive.
M ounting CD-ROMs on Solaris
On most Solaris systems, the CD-ROM mounts automatically when you insert it into the CD-ROM drive. If the CD-ROM does not mount automatically, follow these steps to mount it:
# /usr/sbin/mount -r -F hsfs /dev/dsk/cxtydzs2 /cdrom
M ounting CD-ROMs on Tru64 UNIX
To mount a CD-ROM, follow these steps:
# /usr/sbin/mount -t cdfs -o nodefperm,noversion /dev/disk/cdrom0c /cdrom
Mounting CD drive
I’m attempting to mount my CD drive so that I can use it, and I’m confused on all the necessary steps I need to take to get it working smoothly. When I go to my disk utilities it is popping up on my screen and I can eject the disc by clicking eject on the screen, but it says there is no medium in drive when there is. What method should I take to start? And can someone explain exactly what mounting completely entails, thanks for your help.
You should be able to select optical drives with media in them in Nautilus, in which case they’re mounted as soon as you click on the drive symbol. Does that not work on your system?
I’m not familiar with nautilus at all I’m quite new to ubuntu Unix based in grneral, do I need to install that package?
Nautilus is the the default file manager of Ubuntu. Unless you removed it, you should already have and have used it.
2 Answers 2
Usually, if a CD or DVD is inserted, you can see them under /dev/cdrom . You wont be able to view the contents from that location directly such as by doing cd /dev/cdrom or ls .
You can mount this CD by creating a mount point or using the existing mount point such as /media
run the following command
sudo mount /dev/cdrom /media #you can use your custom mount point as well if this is on your desktop or somewhere else
For more information on the mount command, You can read the manual pages by doing man mount
That’s it. You should be able to see the files under /media folder now.
How to mount CD-ROM drive in Linux
In order to use CD-ROM/DVD drive in Linux, you first need to mount the drive. The following post describes how you can mount CD-ROM/DVD drive in Linux.
The first step is to identify the device name of your CD-ROM or DVD drive. To do so, you can use dmesg output, which indicates the device name for your CD-ROM or DVD drive.
$ sudo dmesg | grep -i 'cdrom|dvd|cd/rw|writer'
hdd: PIONEER DVD-RW DVR-106D, ATAPI CD/DVD-ROM drive
In the example output above, the device name associated with a local DVD drive is /dev/hdd . Verify that /dev/hdd actually exists.
Now go ahead and mount the identified device using mount command.
$ sudo mount /dev/hdd /media/cdrom
I assume that the mount point /media/cdrom already exists. Note that if the drive is empty or the media format of an inserted CD is not supported, the mount command will fail with the error message:
While in the above example I use the root permission to mount a CD-ROM drive, you can actually allow non-root users to mount a CD-ROM drive, by adding the following line in /etc/fstab :
/dev/hdd /media/cdrom iso9660 ro,user,noauto 0 0
In the above, the user option in the fstab entry for /dev/hdd allows normal users to mount and unmount the corresponding device.
Support Xmodulo
This website is made possible by minimal ads and your gracious donation via PayPal or credit card
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.
How to Mount CD-ROM on CentOS 8
CDs and DVDs are slowly becoming irrelevant, but they are still efficient data storage devices. They can store data in a large quantity for long periods of time. In this article, we will discuss the mounting process of CD-ROM on CentOS 8 step-by-step. The method we will perform in this article will also work if you want to mount an ISO file on CentOS 8 system.
Step 1: Login as a Root User
In case you’re not a root user or do not have Sudo privileges, please use the command below to log in as a root user:
You will be asked to input the root password. In case you fail to provide the password, you will not be able to mount the CD-ROM using the commands given in this article since this requires Sudo privileges.
Step 2: Know the Block Device Name
Now that you have logged in as a root user, you will be able to use the blkid command to look at the contents of block devices. Block devices are storage devices like CD ROMs, Hard Drives, and Floppy Disks.
The output will look something like the screenshot attached below:
My CD is not showing here, as I have not inserted it yet.
Now, if I use the blkid command again after inserting the CD, the output will have an additional device in the list of block devices:
The device in this example is named /dev/sr0.
Please note the block device name you want to mount and its UUID.
Step 3: Create a Mount Point Directory
We need to make a new directory that will act as the mount point for your CD/DVD. Therefore, create a new directory using the mkdir command (any arbitrary directory).
In this example, we will use /media/mount:
Step 4: Mount CD/DVD Drive
Now, we have everything to mount a CD/DVD on our CentOS 8 system. We will use the mount command to mount the CD/DVD on CentOS 8 Operating system:
After mounting, you will be able to access all the files on your CD/DVD drive.
You can use the ls command followed by the mount point directory of CD/DVD to check whether the operation was successful or not.
You can also mount your CD/DVD drive permanently.
Mount CD/DVD Drive Permanently
To mount a CD/DVD drive permanently, use the nano command followed by /etc/fstab to open the fstab file in the nano editor.
Fstab is a system configuration file in CentOS 8 located in the /etc directory:
Add the following entry in the fstab file to mount CD/DVD Drive permanently:
Change the UUID and mount point according to your need. UUID stands for the universally unique identifier.
Save and exit the file using the keyboard shortcut “CTRL + S” and “CTRL + X” and return to the terminal. Now, you can use the “mount” command to mount your CD/DVD drive permanently:
That’s it, Congratulations! You have permanently mounted a CD drive.
Conclusion
This article has a comprehensive guide on how to mount a CD/DVD ROM on a CentOS 8 system. This method given above can be used to set up any block device on your system.
About the author
Shehroz Azam
A Javascript Developer & Linux enthusiast with 4 years of industrial experience and proven know-how to combine creative and usability viewpoints resulting in world-class web applications. I have experience working with Vue, React & Node.js & currently working on article writing and video creation.