Commands to mount and open files in a cdrom on Linux

Many of the administrators who are new to linux have problem with opening file from a cdrom or to install application from a CD on a linux platform. The below steps must help you.

# mount /dev/cdrom /cdrom

This will show following result:
mount: mount point /cdrom does not exist.

Now change the directory to / if you are not there:
# cd /

Here create a directory to mount the CD using the following command:
# mkdir cdrom

To mount the D to the "cdrom" directory use the following command:
# mount /dev/cdrom /cdrom

Now change directory to /cdrom:
# cd /cdrom

browse the CD with the "ls" command.

To unmount the CD, change directory back to / followed by the unmount command.

# cd /

# umount cdrom.

Hope that helps...