LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-17-2005, 11:02 PM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
Mounting CDROM


G,Day, Can someone tell me what the console command is to open & mount CDROM using root priviladges as I find the only way I can manually open CDROM is by logging in as administrator instead of just "user" ,Thanks Anyone. I have tried a few different commands I thought might work but no Success.
 
Old 06-18-2005, 12:13 AM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
to open (incase your button is broke):
Code:
eject /dev/hdc
or whatever device designation your drive is... hd?

To mount:
Code:
mount /dev/hdc /mnt/cdrom
or whatever device designation your drive is... hd?

If you can only mount as root and not a user then you have some perm problems.. I've seen LOTS of similar posts within the last couple weeks on this. I always run as root so I never have any problems with permissions...

Last edited by jong357; 06-18-2005 at 12:16 AM.
 
Old 06-18-2005, 02:13 AM   #3
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
Always run as root??
Like to live on the edge eh??


To find out what hd* you have, try this..

dmesg | grep cd

That pretty much says scan the text you saw when you booted up for anything that
resembles cd.

It will spit out a few lines, what cd / dvd you have, etc.
It should say something like hdc: , or possibly hdd, or ser0, something like that ...
As in mount /dev/ser0 /mnt/cdrom. The /mnt/cdrom is where you can find your data
after its mounted properly.

Then follow jong"The Root Wildman"357's commands (j/k btw)
 
Old 06-18-2005, 07:35 AM   #4
Jimbo1265
Member
 
Registered: Apr 2004
Location: Oklahoma City, OK, USA
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
You have a permission problem. You need to add your user account to the cdrom group.
Code:
#usermod -G cdrom username
Code:
$man usermod
for further info.
Once you've done that, edit /etc/fstab. You should see a line similar to
Code:
/dev/hdc  /mnt/cdrom  iso9660  noauto,owner,ro  0  0
Change it to
Code:
/dev/hdc  /mnt/cdrom  iso9660  noauto,users,ro  0  0
Once that's done, you'll be able to mount the drive.
 
Old 06-18-2005, 09:15 PM   #5
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks 4 that priceless information, I changed my fstab from "owner" to "users" & worked great , I just wasnt sure why you have "/dev/hdc" instead of "/dev/cdrom" like I have , " /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 " , all the same though ' it worked Thanks Again;
 
Old 06-19-2005, 05:03 AM   #6
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Rep: Reputation: 30
Could you please tell me the reason to add the users group and not the cdrom group to /etc/fstab?
Code:
/dev/hdc  /mnt/cdrom  iso9660  noauto,users,ro  0  0
why not?
Code:
/dev/hdc  /mnt/cdrom  iso9660  noauto,cdrom,ro  0  0
Also, why do /dev/cdrom and /dev/sr0 have different permissions?
Code:
bash-3.00$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 3 2005-06-19 12:48 /dev/cdrom -> sr0
bash-3.00$ ls -l /dev/sr0
brw-rw----  1 root cdrom 11, 0 2005-06-19 12:48 /dev/sr0
 
Old 06-19-2005, 09:47 AM   #7
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
I tried the same as you put down & I got some error ,Im not sure what it was now ,but I might get around to changing it back again to see what it was, this way also seems to allow users to to mount cdrom. Thanks, /dev/hdc is also my windows partition
 
Old 06-19-2005, 11:38 PM   #8
Jimbo1265
Member
 
Registered: Apr 2004
Location: Oklahoma City, OK, USA
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
The /dev/hdc thing was an error. /dev/cdrom is a symlink to the actual block device. In my case, /dev/hdc.
You apparently have at least 3 hard drives. Thus one of those is /dev/hdc. That would put your cdrom further down in the chain.
The correct way is to use the name of the symlink in fstab. That way the system knows it's a cdrom and not an actual hard drive.
 
Old 06-20-2005, 08:04 AM   #9
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Good Guess, I have 3 HD, I am still not familliar with a lot of linux terms , Would you be kind enough to give me a example maybe of how The correct way is to use the name of the symlink in fstab. That way the system knows it's a cdrom and not an actual hard drive. Thanks again, Appreciate your advice.
 
  


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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
cdrom mounting simcox1 Slackware 1 09-18-2005 10:00 AM
CDrom not mounting!!!! gavita Linux - Hardware 5 01-31-2005 08:53 AM
Mounting cdrom mullet Slackware 4 11-24-2003 08:08 PM
mounting my CDROM linuxRules Linux - General 11 07-26-2002 01:52 AM

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

All times are GMT -5. The time now is 12:17 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