On Friday 23 September 2005 19:13, Luca Dionisi wrote:
> Hi folks
>
> I've just finished the installation of autofs, following the
> instructions of BLFS in chapter 3. I was curious to see
> if it was useful.
> It is working... I think. But I have a few questions:
>
> 1. when I look in the mount point I can't see anything.
>     For example, I do a "ls /mnt" and there is no files nor
>     directories. But when I do "ls /mnt/cd" then the cdrom
>     is mounted.
>     Is this the correct way that autofs is expected to do?
>     Isn't it a little confusing the fact that I can't see which
>     are the devices I can mount?

I suggest that you have the actual autofs directory be somewhere else, 
eg /var/autofs, and have each mountplace be a symlink in /mnt to /var/autofs, 
eg /mnt/cd -> /var/autofs/cd.
When you do ls /mnt, currently usable devices will be valid symlinks (light 
blue if your ls output is colored) and unusable devices will be invalid 
symlinks (red in ls.)  
Caveat: Doing an ls on /mnt can take a long time this way!

> 2. when I have mounted a cdrom, the timeout (yes, I
>     know I can configure the value) ... is it the only way
>     to remove the cd? I mean, is there no way to remove
>     the cd before the inactivity timeout expires? Even
>     if there is no user or process accessing the files in
>     it? ...ehm, I mean without being root.

Why is this a problem?  Just set the timeout lower if it is locking the drive.  
If there's no user or process accessing it, it shouldn't be mounted; a 
timeout of two seconds is fine for CDs.

Nick Matteo
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to