LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   i have an fstab question... (https://www.linuxquestions.org/questions/linux-general-1/i-have-an-fstab-question-10455/)

isajera 12-21-2001 12:54 AM

i have an fstab question...
 
ok... i've been trying to install a cd ripper, and discovered something unusual. my cdrom does not appear to be mounting correctly. in my fstab file, i have the permissions and everything correctly set... when i 'ls -l /dev/cdrom', i get

/dev/cdrom rxwrxwrxw size and date... /dev/cdrom -> /dev/hdc

BUT... /dev/hdc only has permissions to be read by root... there is no mention whatsoever of hdc in my fstab.

now... how do i get the hdc permissions changed? i had no idea previously that i even had an hdc. i was happy with my hda...

trickykid 12-21-2001 01:00 AM

well, is your cdrom setup on the primary secondary IDE channel ?? that is why it is indicating that it is on or is hdc if it is.
usually by default during a install, i know redhat and other distros will make a link referring to the cdrom as just /dev/cdrom instead of /dev/hdc or whatever.. you should be able to just use chmod to change those permissions..

what does your fstab look like ??

isajera 12-21-2001 01:14 AM

fstab line:

/dev/cdrom/ /cdrom auto ro,noauto,user,exec 0 0

or something like that...

is the ro the problem...?

tricky... if you're still online, get on aim!... i'm bored. :)

Mik 12-21-2001 02:25 AM

The ro should be there, because you don't wanna write to your cd's anyways so to mount it readonly will do just fine.
If you want other users besides root to mount your drive you will have to change the permissions on /dev/hdc. Permissions 555 should be good enough because your only going to mount it read only.

/dev/hdc would indicate that's it's the master drive on the secondary controller.


hda = primary master
hdb = primary slave
hdc = secondary master
hdd = secondary slave

trickykid 12-21-2001 02:42 AM

hey thanks mik, yeah that was the problem we figured out thru aim so its all working now for isajera. it was the permission settings for hdc.

drjimstuckinwin 12-21-2001 03:27 AM

Hi
Surely to get a burner working, you need scsi emulation, the line "append hdc=ide=scsi" in lilo.conf and the device should be scd0 in fstab?
Jim

bluecadet 12-21-2001 02:06 PM

well, it's for ripping, not burning david. hmm, should i put a comma in there? nah....

aim? why aim? you're odd you two...

isajera 12-21-2001 02:48 PM

:) what's wrong with aim? aol at one time was considering making their own o/s because they hate microsoft too. i'm really surprised they haven't made a linux port. they make all their money from subscription anyway... and the naming would be SO easy... "AOL is now AOLinux..." oh well... marketing people are clueless...

anyway, about the permissions prob:

what happened was that i was trying to get an mp3-ripper working, and it couldn't access while in user. as you may or may not know, when playing an audio cd, the cd isn't mounted because it's not a file system. that means that changing the fstab entry wouldn't have mattered. the /dev/cdrom was just a link to /dev/hdc... which i thought would be a file system, but i didn't know how to get the perms correctly, because i thought that there needed to be a mask set in fstab for a file system.

so, in short, turns out that hdc is a device, not a file system, and i just needed to chmod 666 it. easy.


All times are GMT -5. The time now is 02:21 PM.