LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-21-2001, 12:54 AM   #1
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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...
 
Old 12-21-2001, 01:00 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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 ??
 
Old 12-21-2001, 01:14 AM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Original Poster
Rep: Reputation: 45
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.
 
Old 12-21-2001, 02:25 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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
 
Old 12-21-2001, 02:42 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

Last edited by trickykid; 12-21-2001 at 12:23 PM.
 
Old 12-21-2001, 03:27 AM   #6
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
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
 
Old 12-21-2001, 02:06 PM   #7
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
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...
 
Old 12-21-2001, 02:48 PM   #8
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Original Poster
Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab question Lleb_KCir Linux - General 2 04-12-2005 01:11 AM
fstab question onironaut Linux - Newbie 3 03-24-2005 02:49 PM
fstab question cjstm Linux - Newbie 1 12-12-2004 02:46 PM
/etc/fstab question joker20 Linux - Newbie 16 09-15-2004 09:33 PM
question about /etc/fstab nny0000 Slackware 6 04-27-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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