Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Mounting a CDROM in Ubuntu

Writer Matthew Harrington

I'm using a software that needs to read data from a cdrom. The instructions say to mount the cdrom (mount /mnt/cdrom). I understand that I need to mount the cdrom to /mnt/cdrom.

I created a folder "cdrom" under "mnt". Then I tried to mount the cdrom by typing:

sudo mount /media/ /mnt/cdrom/

This didn't work. Under "media" I have another folder with the actual cd content so I tried to mount it too, but again with no success. I keep getting an error that "media is not a block device".

What I am doing wrong?

2 Answers

mount /dev/sr0 /mnt/cdrom

You need to use the cd-rom's block device to mount. It's most commonly sr0 on modern distributions.

But if your CD is already mounted to media automatically, you don't need to do this. You just need to point the program to the contents of the CD in /media.

1

You normally mount block devices (or in some cases, files containing equivalent data).

You can, however, link two directories using a bind mount:

mount --bind "/media/My CD-ROM" /mnt/cdrom

(A similar effect could be reached by symlinking /mnt/cdrom to the intended target, too.)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy