What is the command for mounting a CD drive in Linux?
To mount a CD/DVD drive in Linux, the command is `mount`. First, verify the name of the optical drive device. You can use the following command to view a list of optical drive devices:
lsblk
Typically, the name of a CD drive device is something like `/dev/sr0`. Next, create a directory to mount the CD drive. You can use the following command to create a directory called `/mnt/cdrom`:
sudo mkdir /mnt/cdrom
Finally, mount the optical drive using the `mount` command. Here is an example command for mounting the optical drive:
sudo mount /dev/sr0 /mnt/cdrom
This will mount the optical drive device ‘/dev/sr0’ to the ‘/mnt/cdrom’ directory. Once mounted, you can access the files in the optical drive through the ‘/mnt/cdrom’ directory. After using the optical drive, you can use the ‘umount’ command to unmount it.
sudo umount /mnt/cdrom