> Operating System - Kernel (Windows, Unix, Linux) > Linux / Unix

1 - About

CD-ROM in Linux

3 - How to

3.1 - How to see if you have a CDROM ?

[root@ebs121 media]# dmesg|grep -i hdc
hdc: ATAPI 1X CD-ROM drive, 32kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20

3.2 - How to mount it?

The placeholder <medium-mountdir> is used for either <cd-mountdir> or <dvd-mountdir>.


  • Log on as user root.
  • To create a mount point for the CD / DVD, enter the following command:
mkdir <medium-mountdir>

Example: <medium-mountdir> is /mycd

  • To mount the first CD / DVD device, enter the following command:
mount -t iso9660 -r <device> <medium-mountdir>


  • <device> is /dev/cdrom for non-SCSI CD devices
  • and /dev/scd<n> for SCSI drives with the device number <n>.


mount /dev/hdc -t iso9660 -r /media

If the file names on the mounted CD / DVD are written in lowercase letters, remount the CD / DVD with the following commands:

umount <device>
mount -t iso9660 -r -o map=off <device> <medium-mountdir>

After the cdrom is mounted you can check with the disk free command (df) that it is correctly mounted at the /cdrom directory:

[root@ebs121 media]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
                      18219452   2487644  14791368  15% /
/dev/sda1               101086     11940     83927  13% /boot
tmpfs                  1521384         0   1521384   0% /dev/shm
/dev/hdc               2850578   2850578         0 100% /media

3.3 - Unmounting your CD-ROM

#umount /media

or alternatively you can type

#umount /dev/hdc

In case of the scsi cd this is:

#umount /dev/sdc0