LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2006, 09:06 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Can't mount audio/cdroms with Slackware


Using Slackware 10.2 and I have an HP CD-RW for the cd player on the box.

I am unable to mount or read either cdroms or audio cds.

I do have the necessary entries under /etc/fstab, but I've never seen this before, does anyone know why this won't work?

thanks
 
Old 07-02-2006, 09:09 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Well, you won't be able to mount audio cds because they don't have a filesystem. You can listen to them using analog method (with the audio cable from the cd to the sound card) or digital extraction one (this is not default, but it can be easily enabled on XMMS and you don't need that cable).

Do you know which is the device file assigned to the CD-RW? Try: dmesg | grep CD
and see which is the correct device.
 
Old 07-02-2006, 09:15 PM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
gbonvehi is correct, there is no file system on an audio CD. There is a pseudo file system you can try called CDFS but it's quite old, and I've never actually tried it myself. If you decide to give it a shot, let me know how it works out.

CDfs

good luck!
...aaron
 
Old 07-02-2006, 09:56 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by gbonvehi
Well, you won't be able to mount audio cds because they don't have a filesystem. You can listen to them using analog method (with the audio cable from the cd to the sound card) or digital extraction one (this is not default, but it can be easily enabled on XMMS and you don't need that cable).

Do you know which is the device file assigned to the CD-RW? Try: dmesg | grep CD
and see which is the correct device.
Ya, your right...can't mount an audio cd, but when I went to XMMS to import the files, there weren't there. I have never seen that before.

I'm getting this output

Code:
cmmiller@ladytron:~$ dmesg | grep cd
hdd: attached ide-cdrom driver.
ehci_hcd 00:02.2: PCI device 10de:00e8 (nVidia Corporation)
ehci_hcd 00:02.2: irq 10, pci mem e0a0dc00
ehci_hcd 00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
 
Old 07-02-2006, 11:16 PM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Check that /dev/cdrom points to /dev/hdd

Edit: Also, do another grep with CD (in caps) that should give you more info...

Last edited by gbonvehi; 07-02-2006 at 11:24 PM.
 
Old 07-05-2006, 08:49 PM   #6
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by gbonvehi
Check that /dev/cdrom points to /dev/hdd
Under dev, the cdrom is pointing at /hdc not /hdd.

This is currently how I have it under /etc/fstab

Code:
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
What do I need to fix to make this work?

thanks
 
Old 07-05-2006, 10:08 PM   #7
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Quote:
Originally Posted by JockVSJock
Under dev, the cdrom is pointing at /hdc not /hdd.

thanks
This, coupled with your posted output earlier, would seem to indicate that cdrom is pointing to the wrong block device. You could, as root, give:
Code:
ln -s /dev/hdd /dev/cdrom
Also, check the permissions, as usual. If you do not have read permission for hdd, you could make yourself a member of that group (cdrom on my machine) by editing /etc/group to make a line read
Code:
cdrom::19:username
Your number could vary.
 
Old 07-05-2006, 11:24 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430

Rep: Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845Reputation: 3845
To play the cd as a user you need to change the permissions of /dev/hdc as /dev/cdrom links to it.
As root type: chmod 666 /dev/hdc

This command works for me when I want to set-up my unit to play audio CDs as a regular user.
 
Old 07-06-2006, 08:35 PM   #9
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by quip

Code:
ln -s /dev/hdd /dev/cdrom
When I issue this command as root, I get the following error

Code:
root@ladytron:/dev# ln -s /dev/hdd /dev/cdrom
ln: creating symbolic link `/dev/cdrom' to `/dev/hdd': File exists
I though about deleting the entry for the cdrom, but I've never deleted anything under /dev...

So, I'm still not able to play audio cds...
 
Old 07-06-2006, 10:41 PM   #10
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
What kernel are you running?
On 2.4.32 I needed the append "hdd=ide-scsi" line in lilo.conf
On 2.6.16.22 append "hdd=ide-cd"
No other symlinks or permissions changes.
 
Old 07-07-2006, 12:24 AM   #11
jonnygraw
LQ Newbie
 
Registered: Jul 2006
Distribution: Slackware 10.2
Posts: 4

Rep: Reputation: 0
If you can't read the CD beause of permissions change your fstab to say:

Code:
/dev/cdrom       /mnt/cdrom       auto        noauto,user,ro  0   0
(Note: column 4 is now "user" instead of "owner")
 
Old 07-07-2006, 08:27 AM   #12
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by davidsrsb
What kernel are you running?
On 2.4.32 I needed the append "hdd=ide-scsi" line in lilo.conf
On 2.6.16.22 append "hdd=ide-cd"
No other symlinks or permissions changes.
Kernel 2.4.31

Does it matter where I place hdd=ide-scsi in lilo.conf?
 
Old 07-07-2006, 08:28 AM   #13
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jonnygraw
If you can't read the CD beause of permissions change your fstab to say:

Code:
/dev/cdrom       /mnt/cdrom       auto        noauto,user,ro  0   0
(Note: column 4 is now "user" instead of "owner")
I've modified this and still not able to read a regular cd.

Does it matter that I'm using a cd burner to try and read these cds?
 
Old 07-08-2006, 02:42 AM   #14
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
Quote:
root@ladytron:/dev# ln -s /dev/hdd /dev/cdrom ln: creating symbolic link `/dev/cdrom' to `/dev/hdd': File exists
Quote:
I though about deleting the entry for the cdrom, but I've never deleted anything under /dev...
as root do
Code:
rm /dev/cdrom
ln -s /dev/hdd /dev/cdrom
don't be afraid to delete ur /dev/cdrom, its just a symbolic link.
 
Old 07-09-2006, 09:42 PM   #15
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by chrisortiz
as root do
Code:
rm /dev/cdrom
ln -s /dev/hdd /dev/cdrom
don't be afraid to delete ur /dev/cdrom, its just a symbolic link.
This got it...But I don't have audio...So I'll have to check that the audio cable is hooked up correctly.

thanks again
 
  


Reply


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
how to mount cdroms automatically? greythorne Arch 5 06-24-2005 05:52 PM
Reading cdroms without command mount unknown111 Linux - Software 2 07-21-2004 04:34 PM
i can't mount my cdroms Paxmaster Linux - Hardware 10 07-21-2004 10:40 AM
how do i mount CDroms and Floppy as root? BajaNick Linux - General 2 02-20-2004 12:18 AM
cant mount cdroms in slackware Timeturtle Linux - Hardware 2 11-16-2003 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:01 PM.

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