Linux - CDROM / DVDROM
Table of Contents
About
CD-ROM in Linux
Articles Related
How to
How to see if you have a CDROM ?
[[email protected] media]# dmesg|grep -i hdc
...
...
hdc: ATAPI 1X CD-ROM drive, 32kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
...
How to mount it?
The placeholder <medium-mountdir> is used for either <cd-mountdir> or <dvd-mountdir>.
Procedure:
- 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>
where:
- <device> is /dev/cdrom for non-SCSI CD devices
- and /dev/scd<n> for SCSI drives with the device number <n>.
Example:
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:
[[email protected] media]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
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
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