Mount CD-ROM in Linux

by on May 6, 2011 · 1 comment· LAST UPDATED May 7, 2012

in

How do I mount a CD-ROM or DVD on Linux operating system using command line options?

You need to use the mount command to mount a CD-ROM or DVD disk under Linux operating systems. First, insert the CD or DVD in the server drive. Next, type the mount command as the root use to mount discs:
# mount -t iso9660 -o ro /dev/cdrom /cdrom
OR
# mkdir /mnt/cdrom
# mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom

Verify that CD/DVD mounted at the /cdrom or /mnt/cdrom, enter:

 
mount
df
 

/cdrom or /mnt/cdrom represents the mount point of the CD or DVD. To view or browse CD or DVD, enter:

 
ls -l /cdrom
cd /cdrom
ls
 

To copy a file called foo.txt to the /tmp, enter:

 
cd /cdrom
cp -v foo.txt /tmp
 

OR

 
cp -v /cdrom/foo.txt /tmp
 

How do I unmount CD-ROM or DVD on Linux?

Type the following command as the root user:
# umount /cdrom
OR
# umount /dev/cdrom
OR
# umount /mnt/cdrom

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Joe Corneli August 27, 2013 at 2:40 pm

Sometimes the relevant device is

cdrw

, not cdrom.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: