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.
|
to open (incase your button is broke):
Code:
eject /dev/hdc To mount: Code:
mount /dev/hdc /mnt/cdrom 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: |
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: |
You have a permission problem. You need to add your user account to the cdrom group.
Code:
#usermod -G cdrom username Code:
$man usermod 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 Code:
/dev/hdc /mnt/cdrom iso9660 noauto,users,ro 0 0 |
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;
|
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 Code:
/dev/hdc /mnt/cdrom iso9660 noauto,cdrom,ro 0 0 Code:
bash-3.00$ ls -l /dev/cdrom |
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
|
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. |
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. |