How to mount DVD or CDROM in Linux

DVDROM (Digital Versatile Disk Read-only memory) and CDROM (Compact Disc Read-only memory) are optical storage devices to store your data for future uses or for backups.

Many people use these disks to store movies, photos etc. By default many older Linux machines will not allow you to see the content of them. This is due that, they are not mounted by default in your box. We have to mount them properly so that we can access their content.

There are many ways to do mounting CDROM/DVDROMs. One of the classic way is to use mount command which is available in Linux. Before mounting a CDROM or DVDROM we have to check what hardware file corresponding to our disk drive. If you have DVD Drive then you should see /dev/dvdrom or /dvd-rw file. If you have CDrom then you should find /dev/cdrom or /dev/cd-rw file. Once you are confirmed about your device, you can use any one command mention below depending on your device name.

If your device is only CD reader use below command:

#mount -t iso9660 /dev/cdrom /media/

If your device is a CD read write use below command:

#mount -t iso9660 /dev/cdrw /media/

If your device is a DVD reader use below command:

#mount -t iso9660 /dev/dvdrom /media/

If your device is a DVD writer use below command:

#mount -t iso9660 /dev/dvd-rw /media/

Now let us see what this command means:

mount is the command to mount devices files etc in a Linux/Unix box.

-t is the option to specify the format of the device, here it is iso9660 format. This is the format how data is written on to the device.

-/dev/dvd-rw is a DVD writer present in your machine

-/media is the point where you are going to mount your device. Once you cd to /media you can see the content of DVD.

Note: Some times you will not see /dev/cdrom or cdrw or dvd or dvd-rw files. At this time you have to know that it is associated with /dev/hdb or hdc etc.

Also we can do permanent mounting by using fstab file.

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Reply