>I tried the below

>On Thu, 2002-10-24 at 06:10, Bryan Whitehead wrote:
> Milos Prudek wrote:
  
> > Hi,
> > 
> > I was looking forward to use supermount but it does not work very well 
> > in Mandrake 9.0. Details in separate post. So I tried autofs.
> > 
> > Autofs in Mandrake 9.0 mounts drives automatically, but does not unmount 
> > them when timeout expires. They must by umounted manually.
> > 
> > auto.master:
> > /mnt    /etc/auto.drives --timeout=20
    
> 
> Ignore bropken man pages and do this:
> 
  

>Did this for auto.master
> /mnt    /etc/auto.drives --timeout 20
> 
> the = doesn't work. use a space.
> 
> I have over 20 linux workstations with autofs working fine. Took awile 
> to track down this problem.
> 
> 
  
>Did this for auto.drive
> > auto.drives:
> > cdrom   -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
> > floppy  -fstype=auto,user,rw            :/dev/fd0
    

>Started autofs and all the mount points under /mnt had disappeared
>making it impossible to go to say the cdrom using mc.
>Also is there a fix for the cdrom and floppy icons on the desktop to
>work?
>Currently got everything back on manual mounting.


you are close, what you need to do is simply create some soft links

if auto.drives mounts stuff under /mnt (create a /drives, leave /mnt open for the needed manual mounts)

then create a /media and in it 'ln -sf /mnt/cdrom cdrom'

so if a cd is in the drive but the mount has expired and been removed, as soon as you ls /media it will atempt to look at /media/cdrom and thus remount the device again since it was being accessed indirectly.

for more info check out Linux Journal Issue April 2002 #96, the article Virtual CDROM Jukebox goes into a discussion on this topic.


-- 

Will Merkens
Suite 1103, 505 - 4th Ave S.W.
Calgary, AB.
Canada

Primary E-Mail: [EMAIL PROTECTED]
Backup  E-Mail: [EMAIL PROTECTED]

Reply via email to