Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-10-2003, 06:50 AM
|
#1
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Rep:
|
Music cds
Hello all. I'm having problems using/playing cds as a user (they work when i am root). Here is my fstab entry for the cdrom:
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
please help, thanks.
|
|
|
|
12-10-2003, 07:03 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
your fstab is not relevant as you do not mount audio cd's. please provide REAL error messages and such.
|
|
|
|
12-10-2003, 09:07 AM
|
#3
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Original Poster
Rep:
|
when i try to add a cd to xmms with the cd audio player i get an error message saying "Failed to open device /dev/cdrom
Error: Permission denied
Directory /mnt/cdrom/ ok"
ive checked the perms on /dev/cdrom: "lrwxrwxrwx 1 root root 8 Dec 5 00:48 cdrom -> /dev/hdc"
ive also checked /dev/hdc: "brw-rw---- 1 root disk 22, 0 Jun 9 2002 hdc", could this be where the problem lies?
thanks.
|
|
|
|
12-10-2003, 09:15 AM
|
#4
|
|
Member
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Debian 6
Posts: 153
Rep:
|
It's probably the link to /dev/cdrom that's causing the problem. I just installed Slack 9.1 and had to delete the /dev/cdrom file because it was linked to the wrong device.
I'm guessing you have a CD burner. If so the configuring is not automatic. To make a burner work properly you must first pass the option "append hdc=scsi-ide" to the kernel in lilo so the scsi generic driver gets loaded first. You next have to delete /dev/cdrom and then make a new /dev/cdrom linked to the correct device, (in my case it was scd0) using the command "ln -sf scd0 cdrom" Then chmod 666 /dev/cdrom. Then chgrp users /dev/cdrom. After this it worked perfectly.
If your cdrom is just a straight ide device you might want to see if it's being detected properly at boot time, then make sure the /dev/cdrom is pointing to the correct device. Of course it's just a guess that this will be your problem.
By the way, this new version of Slackware is awesome!
Hope this helps
Harry
|
|
|
|
12-10-2003, 09:17 AM
|
#5
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Original Poster
Rep:
|
yeh its a cd burner but is ide. the thing is that i can read data cds just not music.
|
|
|
|
12-10-2003, 09:23 AM
|
#6
|
|
Member
Registered: May 2003
Location: lake michigan
Distribution: Slackware
Posts: 456
Rep:
|
permission problems only with music cd's? wierd.
What happens if you try to play it is something like XMMS? (and no, dont mount it)
Any problems burning CD's?
I had similar problems and fixed it by setting it up with scsi emulation
Last edited by mipia; 12-10-2003 at 09:26 AM.
|
|
|
|
12-10-2003, 09:27 AM
|
#7
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Original Poster
Rep:
|
if, as a normal user, i try and play a cd with xmms it comes up with a permission denied error window. if i am root it works fine. i have also tried using grip, but again nothing happens if i am a user, but automatically loads the cd if i run grip as root.
|
|
|
|
12-10-2003, 10:47 AM
|
#8
|
|
Member
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Debian 6
Posts: 153
Rep:
|
SCSI and IDE
Even if your CD burner is an IDE, it won't work as a burner with the IDE driver. You must edit your lilo.conf file to pass the scsi option to the kernel. Here's what my /etc/lilo.conf file looks like:
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
change-rules
reset
vga = normal
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
append = "hdc=ide-scsi"
read-only
The append line tells the kernel to load the scsi driver first. When this file is edited you must run the "lilo" command so that it will change the boot loader. Then you will have to reboot your computer for the changes to take effect. This will change the burner from /dev/hdc to /dev/scd0. This means you will have to change your /dev/cdrom so that it points to the new device. as explained in my first post.
Good luck!
|
|
|
|
12-10-2003, 12:36 PM
|
#9
|
|
Member
Registered: Nov 2003
Location: Louisville, KY
Distribution: Slackware
Posts: 46
Rep:
|
>Even if your CD burner is an IDE, it won't work as a burner with the IDE driver.
This is not true. You can burn CD's with the IDE driver by using the atapi device option as described in the cdrecord man pages. There are several posts about this.
example
cdrecord -v speed=8 dev=ATAPI:0,0 cdimage.raw
The permissions problem sounds strage. I had some problems with my normal user account accessing the sound card etc.. I added my user account to the 'sys' group and that fixed that. What happens if you change the ownership and group on your cdrom to your user account ?
|
|
|
|
12-10-2003, 04:01 PM
|
#10
|
|
Member
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310
Rep:
|
the problem is that the permissions of links are generally ignored. A good friend of mine told me about that lately - I didn't know it before either.
So in this case
Quote:
|
"lrwxrwxrwx 1 root root 8 Dec 5 00:48 cdrom -> /dev/hdc"
|
check for the permissions on /dev/hdc which are probably
Quote:
|
brw-rw---- 1 root disk 22, 0 Jun 9 2002 hdc
|
your user is probably not in the group disk - so one solution is to add him to the group.
The other one (which is less secure) is doing a `chmod 666 /dev/hdc`.
|
|
|
|
12-10-2003, 05:22 PM
|
#11
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Original Poster
Rep:
|
ok, i added my user to the disk group, and grip reads the disk, and when i try and add the disk in xmms it no longer complains about permissions, but im getting this error "Digital audio extraction test failed: Inappropiate ioctl for device". Any ideas?
thanks.
|
|
|
|
12-10-2003, 08:14 PM
|
#12
|
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Quote:
|
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
|
...... change iso9660 to
auto
and make sure you've got permissions on /dev/cdrom or whatever the device is?
|
|
|
|
12-10-2003, 08:44 PM
|
#13
|
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
Quote:
Originally posted by cozye
>Even if your CD burner is an IDE, it won't work as a burner with the IDE driver.
This is not true. You can burn CD's with the IDE driver by using the atapi device option as described in the cdrecord man pages. There are several posts about this.
example
cdrecord -v speed=8 dev=ATAPI:0,0 cdimage.raw
The permissions problem sounds strage. I had some problems with my normal user account accessing the sound card etc.. I added my user account to the 'sys' group and that fixed that. What happens if you change the ownership and group on your cdrom to your user account ?
|
Is there a way to burn CD's without using emulation if you want to use a gui burning program?
|
|
|
|
12-11-2003, 07:50 AM
|
#14
|
|
Member
Registered: Nov 2003
Location: Louisville, KY
Distribution: Slackware
Posts: 46
Rep:
|
Most of the GUI's I have seen just run the command in the background for you. I don't have a gui installed to look, but I am sure you can set it to use the ATAPI option somewhere. Why not just learn the command line ?
Make your iso image using mkisofs command, then burn it to disk using the cdrecord command. It is not difficult. Look at the man pages for extra options and syntax etc..
|
|
|
|
12-11-2003, 05:03 PM
|
#15
|
|
LQ Newbie
Registered: May 2002
Location: UK
Distribution: Gentoo
Posts: 11
Original Poster
Rep:
|
ok i changed iso9660 to auto and now i get this error from xmms "Digital audio extraction test failed: Invalid argument"
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|