Mount or Unmount a CD or DVD in Ubuntu

Ask a question

This tutorial will teach you how to mount or unmount a CD or DVD in Ubuntu. This very simple method can be done through your terminal and only requires the use of a command line.

Command Line to Mount or Unmount a Disc

Assuming that your CD or DVD is located in media/cdrom0, here are two lines of code that will enable you to mount or unmount a disc.

To mount a CD or DVD, simply open your terminal and type
sudo mount /media/cdrom0/ -o unhide
. Once your CD is mounted, you can access your data through your directory.

To unmount or eject the disc, open your terminal and enter
sudo umount /media/cdrom0/ -l
.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team