LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2003, 03:03 PM   #1
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Rep: Reputation: 30
Unhappy Problems with CD-ROM


I am having problems with trying to read a CD-ROM (a audio one).

sh-2.05b$ mount /dev/cdrom
mount: only root can mount /dev/cdrom on /mnt/cdrom
sh-2.05b$ mount /cd
mount: can't find /cd in /etc/fstab or /etc/mtab

That's as a normal user.

I tryed it as root as well, it didn't work either:
bash-2.05b# mount /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
bash-2.05b# mount -t iso9660 /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems

Please help!!!
I can't do a shit! And I want to use my CD-ROM to play CD's :S

(Oh, btw.. I have Slackware 9.0... with Readhat9.0 I didn't have this problem)

Last edited by alitrix; 09-26-2003 at 03:06 PM.
 
Old 09-26-2003, 03:07 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You don;t need to mount audio CDs - just ask your software to play it.
 
Old 09-26-2003, 03:09 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
If it's an audio cd, it can't be mounted. Use some sort of software to play it. Add the "user" option in your /etc/fstab file so regular users would be allowed to mount.
 
Old 09-26-2003, 03:10 PM   #4
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
It isn't possible...
I am running atm fluxbox, so I used /opt/kde/bin/kscd
But it can't read the /dev/cdrom.

Error looks something like this:
CD-ROM read or access error (or no disc in drive)
Please make sure you have access permissions to:
/dev/cdrom

(And yes, I have.. cause in /etc/fstab there is something like this: ro,users,noauto, .....)
 
Old 09-26-2003, 03:30 PM   #5
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
sh-2.05b$ cat /etc/fstab | grep cdrom
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

I have that at the moment.
What should I change?
 
Old 09-26-2003, 03:46 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What are the permissions on the device itself?
 
Old 09-26-2003, 04:16 PM   #7
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
Uh, dunno :S?
Thought that is oke, since I never change the lines that are default made by Slackware itself

Does it miss something?
 
Old 09-27-2003, 07:17 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Run:
ls -l /dev/cdrom

This shouls show a symbolic link to another "real" device. Do an ls -l on it and check the permisions. If you are unsure thn just post the output.
 
Old 09-27-2003, 11:48 AM   #9
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
sh-2.05b$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 Jun 14 17:13 /dev/cdrom -> /dev/hdc

That's the output.
Can you explain me what the hell is going on :P?
Please tell me good news! :S
 
Old 09-27-2003, 11:56 AM   #10
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
/dev/cdrom is linked to /dev/hdc. Check the permissions on /dev/hdc with "ls -l".
 
Old 09-27-2003, 12:05 PM   #11
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
sh-2.05b$ ls -l /dev/hdc
brw-rw---- 1 root disk 22, 0 Jun 9 2002 /dev/hdc

RW.. hm..
Still don't undestanding how to reach my CD :P
 
Old 09-27-2003, 12:11 PM   #12
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
You can either change the permissions on /dev/hdc, or put the user you want to access the cdrom with in the disk group.
brw-rw---- 1 root disk
The b is for block device. The first rw- is the permissions for root. The second is the permission for whoever is in the disk group. The last --- are the permissions for everybody else. "root" means root owns the file. Disk means it's part of the disk group.
 
Old 09-27-2003, 12:13 PM   #13
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
So I should add group `users` into the the group `disk` as well.
And then users (me) can mount the device as well?
 
Old 09-27-2003, 01:16 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just put your user in the disk group in:
/etc/group

Or chmod the device so anoyone can access it:
chmod 666 /dev/hdc
 
Old 09-28-2003, 03:54 AM   #15
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Original Poster
Rep: Reputation: 30
I checked /etc/group:
disk::6:root,adm,dbzgt

And I chmod /dev/hdc 666.
So it should be possible to mount know?
 
  


Reply



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
CD-ROM Problems ripmaster Fedora 2 04-17-2005 12:41 AM
CD ROM Problems DoctorVell Linux - Hardware 4 03-19-2005 01:44 PM
cd-rom/cd-rw problems, please help!! cdavidson Linux - Newbie 4 01-22-2004 02:17 AM
cd-rom problems spy5600 Linux - Newbie 9 07-18-2002 09:45 AM
cd-rom problems spy5600 Linux - Newbie 3 07-08-2002 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 AM.

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