Problem on mounting CD... (SOLVED)

1997-04-11 Thread Felix Almeida

Hi folks!

  Thank you very much! You're right about the symbolic link, it was the
problem... >-(

  I only changed my fstab to point /dev/scd0 instead of /dev/cdrom and
everything works fine now. Thank you. :-)

PS: Special thanks to Riku, Andrew and Bob.


Felix Almeida.


Re: Problem on mounting CD...

1997-04-11 Thread Nils Rennebarth
On Fri, 11 Apr 1997, Felix Almeida wrote:
> The problem is that the users can mount the CD but cannot umount it! 
A few people already told you, the symbolic links were the problem.

A further suggestion: Why not use the automounter, This is probably what
you want, if users should be able to access the CD. Install amd and
put the following line in /etc/amd/amd.master

-r -c 20 -w 20 -a /amd /m /etc/amd/removable

and the following in /etc/amd/removable
--- snip ---
cdrom   type:=program;\
opts:=soft,utimeout=10;\
fs:=/cdrom;\
mount:="/bin/mount mount -t iso9660 -o ro /dev/scd0 /cdrom";\
unmount:="/bin/umount umount /cdrom";
--- snap ---

Somethings similar had already been posted a month ago.

Nils

-- 
 \  /| Nils Rennebarth
--* WINDOWS 42 *--   | Schillerstr. 61 
 /  \| 37083 Göttingen
 | ++49-551-71626
   Micro$oft's final answer  | http://www.nus.de/~nils


Re: Problem on mounting CD...

1997-04-11 Thread Bob Nielsen
On Fri, 11 Apr 1997, Felix Almeida wrote:

> Hi!
> 
>   I've been tried to allow the normal users in my system to mount a CD-ROM
> but with no success... I even put the following line in my /etc/fstab:
> 
> /dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0
> 
>   Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
> has the following permitions: 
> 
> drwxr-xr-x   2 root root 1024 Apr 11 10:23 /cdrom/
> 
>   The problem is that the users can mount the CD but cannot umount it! The
> "mount /cdrom" works fine but "umount /cdrom" gives the error message: 
> 
> umount:  /cdrom mount disagrees with the fstab

I have the following for an IDE cd-rom:

/dev/hdc  /mnt/cdromiso9660 defaults,noauto,user 0 0

This works fine for me.  Try specifying /dev/scd0 instead of the symbolic
link in fstab.


Bob Nielsen Internet: [EMAIL PROTECTED]
Tucson, AZ  AMPRnet:  [EMAIL PROTECTED]
AX.25:[EMAIL PROTECTED]
http://www.primenet.com/~nielsen


Re: Problem on mounting CD...

1997-04-11 Thread Andrew Martin Adrian Cater
On Fri, 11 Apr 1997, Felix Almeida wrote:

> Hi!
> 
>   I've been tried to allow the normal users in my system to mount a CD-ROM
> but with no success... I even put the following line in my /etc/fstab:
> 
> /dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0
> 
>   Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
> has the following permitions: 
> 
> drwxr-xr-x   2 root root 1024 Apr 11 10:23 /cdrom/
> 
>   The problem is that the users can mount the CD but cannot umount it! The
> "mount /cdrom" works fine but "umount /cdrom" gives the error message: 
> 
> umount:  /cdrom mount disagrees with the fstab
> 
>   I don't know if this can make diference, but I have CD-ROM support as a
> module in the kernel (sr_mod and isofs).
> 
>   Please, help-me! :~(
> 
> 
> Thanks,
> Felix Almeida.
> 
> 
I've had something very similar.  I have a SoundBlaster CD (old!) which
has a device name /dev/sbpcd.  This is linked to /dev/cdrom.

The problem is that mount and umount cannot always follow links: 

In /etc/fstab and /etc/mtab use this line

/dev/scd0 /cdrom iso9660 ro,noauto,user 0 0
  
so you have the true device name: it works for me.  Now, if I type mount
/cdrom as a user, there is a short wait as the module loads then I can cd
/cdrom and use any files, then umount /cdrom and the module unloads.  
If no cdrom is mounted /cdrom is just an empty mount point and shows two 
directories. ls -al shows:
 
drwxrwsr-x   2 root cdrom   1024Sep 14  1995 .
drwxr-xr-x  19 root root1024Apr  8 16:50 .. 

Hope this helps,

Andy

Andrew Martin Adrian Cater (Andy) +44 1242 672705 [EMAIL PROTECTED]


Re: Problem on mounting CD...

1997-04-11 Thread David Wright
On Fri, 11 Apr 1997 [EMAIL PROTECTED] wrote:
> >   I've been tried to allow the normal users in my system to mount a CD-ROM
> > but with no success... I even put the following line in my /etc/fstab:
> > 
> > /dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0
> > 
> >   Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
> > has the following permitions: 
> > 
> > drwxr-xr-x   2 root root 1024 Apr 11 10:23 /cdrom/
> > 
> >   The problem is that the users can mount the CD but cannot umount it! The
> > "mount /cdrom" works fine but "umount /cdrom" gives the error message: 
> > 
> > umount:  /cdrom mount disagrees with the fstab
> 
> Hm, strange.  I've got the following line working in my fstab (it's not
> scsi though):
> /dev/hdd/cdrom   iso9660 defaults,ro,user,noauto 0 0
> 
> permissions are
> drwxrwsr-x   2 root cdrom1024 Sep 14  1995 /cdrom/
> 
> Does this help?

Yes, because you've put /dev/hdd in fstab.

When you mount, the cdrom link is followed and mount mounts hdd (look at
/etc/mtab). When you umount, it finds /dev/hdd in mtab, but /cdrom in
fstab, and complains.
--
David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA
U.K.  email: [EMAIL PROTECTED]  tel: +44 1908 653 739  fax: +44 1908 655 151


Re: Problem on mounting CD...

1997-04-11 Thread Riku Saikkonen
Felix Almeida wrote:
>/dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0
>  Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
...
>"mount /cdrom" works fine but "umount /cdrom" gives the error message: 
>umount:  /cdrom mount disagrees with the fstab

I had this problem a while ago, and noticed that the symbolic link is the
problem. Put /dev/scd0 in your /etc/fstab instead of /dev/cdrom, and it
should work...

(I'm not sure where this problem comes from, but I think it's a problem with
mount not supporting symbolic links properly. My guess is that mount passes
through the link when mounting or umounting, but not both (so umount can't
find the device in mtab because it has a different device file name).)

-- 
-=- Rjs -=- [EMAIL PROTECTED], [EMAIL PROTECTED]


Re: Problem on mounting CD...

1997-04-11 Thread tgakem
> 
> Hi!
> 
>   I've been tried to allow the normal users in my system to mount a CD-ROM
> but with no success... I even put the following line in my /etc/fstab:
> 
> /dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0
> 
>   Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
> has the following permitions: 
> 
> drwxr-xr-x   2 root root 1024 Apr 11 10:23 /cdrom/
> 
>   The problem is that the users can mount the CD but cannot umount it! The
> "mount /cdrom" works fine but "umount /cdrom" gives the error message: 
> 
> umount:  /cdrom mount disagrees with the fstab

Hm, strange.  I've got the following line working in my fstab (it's not
scsi though):
/dev/hdd/cdrom   iso9660 defaults,ro,user,noauto 0 0

permissions are
drwxrwsr-x   2 root cdrom1024 Sep 14  1995 /cdrom/

Does this help?

Eric Meijer


 E.L. Meijer ([EMAIL PROTECTED])  | tel. office +31 40 2472189
 Eindhoven Univ. of Technology | tel. lab.   +31 40 2475032
 Lab. for Catalysis and Inorg. Chem. (TAK) | tel. fax+31 40 2455054


Problem on mounting CD...

1997-04-11 Thread Felix Almeida
Hi!

  I've been tried to allow the normal users in my system to mount a CD-ROM
but with no success... I even put the following line in my /etc/fstab:

/dev/cdrom /cdrom iso9660 ro,noauto,user,unhide 0 0

  Where /dev/cdrom is a symbolic link to /dev/scd0. My /cdrom directory
has the following permitions: 

drwxr-xr-x   2 root root 1024 Apr 11 10:23 /cdrom/

  The problem is that the users can mount the CD but cannot umount it! The
"mount /cdrom" works fine but "umount /cdrom" gives the error message: 

umount:  /cdrom mount disagrees with the fstab

  I don't know if this can make diference, but I have CD-ROM support as a
module in the kernel (sr_mod and isofs).

  Please, help-me! :~(


Thanks,
Felix Almeida.