Monday, June 8, 2009

Mounting CDROM on Linux

Since I have used Linux for only a short while, I am not familiar to everything CLI (command line interface) and all the commands. When mounting a CDROM disc in CentOS 5.3, I found that all the forums didn't seem to help with the issue I was having. After some time, the answer was simple and I decided to post it here for anyone else who might be having the same issue.

Mounting a CDROM in Linux from command-line.

After several various attempts and ensuring I was root (sudo user) I was finally able to figure it out. My first error was that I did not add the type for what I was trying to add (in my case I wanted to run a program from the CDROM, if you are trying to play music, you do not need to mount your CDROM disc this same way, just open your music app and go). After looking up that the type for cds is 'iso9660'. I next ran into an error where my mount point did not exist, (in my case I was using the mount command ' mount -t auto /dev/cdrom /mnt/cdrom ').

I went to my mnt directory and mkdir the folder cdrom.

When I ran my mount command again, it mounted the cdrom is read-only mode and worked.

The solution of creating a mount point (folder) was simple enough but difficult since no one seemed to say it. I hope this helps you.

No comments: