Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-17-2004, 05:07 PM   #1
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15
Need help configuring my DVD-ROM

Hi everyone,
Today is my third day running Linux, and so far Ive just been trying to configure everything. Most things have gone pretty smoothly so far, with the exception of configuring my sound card drivers which required some outside help... but anyway, now I am having problems with my DVD-ROM. I used to use windows where I could just click on my computer and open my D:\ or E:\, but in Linux Im not too sure what Im supposed to do.

Lets say I have a music CD in my DVD-ROM. If Im on my normal user account, and I go to /dev/cdrom to try to open it, it says I dont have permission to access that. Ok, I understand thats because on not logged in as root. So I logged in as root, and opened up /dev/cdrom... but then it asked me what program I want to open it with. So I chose XMMS mediaplayer. It then opened up XMMS, but it wouldnt load the music CD. I tried to go to Open through XMMS and select /dev/cdrom, but nothing happened. So, my question is this:

How do I use CDs that are in my DVD-ROM?

Also, if someone gets a chance, how would I go about giving a regular user account permission to access the cdrom so I dont have to log out and log in as root every time I want to use a CD. Im assuming its possible, but Ive been searchning and cant quite find it.

Thanks for any help in advance.
Old 01-17-2004, 06:51 PM   #2
Registered: Nov 2003
Distribution: slackware 14
Posts: 542

Rep: Reputation: 33
Linux manipulates cds music differently from windows.
You can't see any "cda" file trying to mount the drive. (you'll get a message like invalid block device ....)
You can easely listen your music cds through a player (ie xmms), but first you must have permissions to read and execute (strange for a windows user) the dev file.
Simply include yourself as user into disk group. if you're using KDE look at KUSER that allows you to do that by a graphical interface, otherwise edit your /etc/group file adding your logname at disk showing line.
To acces the drive as normal user (normal files wiew or execute) you have to mount the drive first.
The simplest way is you edit your /etc/fstab file at cdrom occourrence replacing
owner with user(s) and
auto or defaults with noauto
This is my /etc/fstab in order you have a general idea

/dev/hdb5 swap swap defaults 0 0
/dev/hdb1 / reiserfs defaults 1 1
/dev/hdb6 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/hdd /mnt/cdrw iso9660 noauto,user,rw 0 0
/dev/fd0 /mnt/floppy auto noauto,user,rw 0 0
/dev/pendrive /mnt/pendrive vfat noauto,user,rw 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
none /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0

Hope this helps
Old 01-17-2004, 10:12 PM   #3
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,690
Blog Entries: 9

Rep: Reputation: 45
Erm I would also suggest that you try and find out what the system is actually calling the dvdrom drive.

My system has 1 hdd, 1 dvdrom and 1 cdrw. the hdd is partitioned as hda1, 2, 3, 4, 5, 6. 1 being windowsXP, 2 is boot, 3 is swap, 4 extended to become 5 for gentoo and 6 for mandrake. So as you can see the set up is rather different from windws. My dvd drive is called hdb and my cdrw is called either hdc or scd0.

If you then have just the dvdrom, then you system probably calls it something like hdb and as the /dev/cdrom shown in the set up, you would normally have to change it so it is looking at /dev/hdb - because the /dev/cdrom is just the default for most of the media players.

I should point out, that if you also have a cdrw, then things change a little. This is because you will probably only have one removeable media device with the audio connection from the device to the sound card/chip - in my case it's the cdrw, and because it's pretty normal for cdrw's to use scsi emulation (this is something to do with the burning function and 2 way data transfer), I have to use /dev/scd0 instead of /dev/cdrom and I don't use xmms for music cd's because the path that I have to put in is stupidly long and I just can't be arsed, so as I use kde for my windowmanager, I just use kscd and then config it to look at /dev/scd0. This is of course, irrelevant if you only have the dvdrom drive - and then you should only need to have the correct device name put in to play an audio cd, oh and don't forget to open up a mixer, kmix or aumix or something like that, because cd players are often muted by default when you first start running a system.

Also another bit of info to remember, is that you have to change your system to see the correct device, because linux systems normally pick up cd sound via the audio cable I already mentioned, whereas windows picks the sound feed via the IDE cable (well that as I understand it anyway). Hence knowing which (if you have more than one removeable device) has the audio cable connected to it.

Finally, if you have the very latest version of XMMS, I'm given to understand taht you may be able to make it work with out the audio cable connected to the playing device, but this is to do with making it see the device as a "digital device" I havent looked into this so I can't confirm it, but it's stuff I've read.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Wine to see a DVD-ROM Baddox Linux - Software 2 11-12-2004 04:55 PM
permission denied! floppy cd-rom dvd-rom HELP! OMEGA-DOOM Linux - Software 17 10-15-2004 06:40 PM
DVD-ROM/CD-ROM unable to recognize debain boot CD gottfried Linux - Newbie 2 01-20-2004 01:39 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 06:44 PM
DVD-ROM not detected CD-RW mistaken as CD-ROM Device DarkXtar Slackware 21 06-02-2003 08:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration