Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux refuses to mount optical drives
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Mar 26, 2003 1:18 am    Post subject: linux refuses to mount optical drives Reply with quote

For some reason, my computer refuses to mount my drives. I currently have a dvd/cdrw combo drive and a buslink 52/24/52 cd-recorder. both are set up to be scsi-emulated for cd-burning. My problem is that every time I try and mount the drives as a regular user, I get:

Code:

bash-2.05b$ mount /dev/sg0 /mnt/dvd
mount: only root can do that


even though I have the following in my /etc/fstab:

Code:

/dev/sg0                /mnt/dvd        autofs          noauto,ro,users                                 0 0
/dev/sg1                /mnt/cdrom      autofs          noauto,ro,users                                 0 0


so I then su into root, and try again, only to get:

Code:

bash-2.05b# mount /dev/sg0 /mnt/dvd/
mount: /dev/sg0 is not a block device


I'm now exasperated and at wit's end. Can someone please help me? I HATE not being able to read any CD's what so-ever.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Wed Mar 26, 2003 1:29 am    Post subject: Reply with quote

add yourself to the cdrom or the cdrw group (can't quite remember) then edit your /etc/devfsd.conf and change it so it will set permission to your CD* drives so that anybody in the group can use them.

Hope I helped,
Chris.
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Mar 26, 2003 1:47 am    Post subject: Reply with quote

I added my regular users a long time ago to both the cdrom and cdrw groups. sg0 and sg1 are owned by root and in group root. the permissions on both devices are set to 555, which means they are readable and executable by everyone. Sg0 and sg1 are soft links for the full path for the scsi emulated paths.

I'd rather not edit /etc/devfsd.conf since I have no idea what I'm doing in there, though I did edit it per the instructions in the documentation for when I had the drives up on the regular atapi interface at one point.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Mar 26, 2003 4:48 am    Post subject: Reply with quote

The devices you want to mount are /dev/sr0 and /dev/sr1
The /dev/sg* devices are for raw scsi commands used by cdrecord
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Mar 26, 2003 6:08 am    Post subject: Reply with quote

that would make sense about /dev/sg* but there are not /dev/sr0 or sr1 devices in the /dev directory. What should I do?
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Mar 26, 2003 6:14 am    Post subject: Reply with quote

This should give you /dev/sr* devices :
Code:
SCSI support  --->
<*>   SCSI CD-ROM support
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Mar 26, 2003 4:53 pm    Post subject: Reply with quote

cool, I'm recompiling my kernel to add that in...I hope it works.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Thu Mar 27, 2003 4:25 am    Post subject: Reply with quote

ok, so I recomplied my kernel to include scsi cd support, and can now mount my drives, but only as root. even though my fstab entries look like this:


Code:

/dev/sr0                /mnt/dvd        autofs          noauto,ro,users        0 0
/dev/sr1                /mnt/cdrom      autofs          noauto,ro,users       0 0


I am still unable to mount the drives as a regular user, even though I put "users" into my fstab file. What should I do now? Note that I've tried both user and users with the same result.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Thu Mar 27, 2003 10:54 pm    Post subject: Reply with quote

Can anyone tell me why my optical drives won't be mounted by regular users. Root can do it, but I hate having to "su" everytime I want to mount a cd. I looked at my fstab file, and I can't figure out why they won't mount under regular users.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum