LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mounting CDROM (https://www.linuxquestions.org/questions/slackware-14/mounting-cdrom-334767/)

browser 06-17-2005 11:02 PM

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.

jong357 06-18-2005 12:13 AM

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... :jawa:

Nitrox 06-18-2005 02:13 AM

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) :cool:

Jimbo1265 06-18-2005 07:35 AM

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.

browser 06-18-2005 09:15 PM

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;

Basel 06-19-2005 05:03 AM

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


browser 06-19-2005 09:47 AM

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

Jimbo1265 06-19-2005 11:38 PM

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.

browser 06-20-2005 08:04 AM

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.


All times are GMT -5. The time now is 07:38 PM.