automount weirdness

From: Amadeus (nobody_at_nowhere.org)
Date: 05/02/04


Date: Sun, 02 May 2004 02:06:10 -0400

I'm trying to get the floppy and the zip disks mount/unmount
automatically with autofs. So I have

In /etc/auto.master:

/misc /etc/auto.misc --timeout=60

and in /etc/auto.misc:

floppy -fstype=auto,rw,sync,umask=000 :/dev/fd0
zip -fstype=auto,rw,sync,umask=000 :/dev/hdb4

Then if I cd /misc/floppy, the floppy gets mounted, and after 1 min
it is unmounted. Also, as root I can umount /misc/floppy within
1 minute since it was mounted.

Different story with the zip drive. I can cd /misc/zip and it
gets mounted, but it never gets unmounted. If I try to unmount it
manually, as root,

# umount /misc/zip/
umount: /misc/zip: device is busy

# fuser -auv /misc/zip
 
                     USER PID ACCESS COMMAND
/misc/zip root kernel mount /misc/zip

# /etc/rc.d/init.d/autofs stop
umount2: Device or resource busy [FAILED]
umount: /misc: device is busy

I don't know what I'm doing wrong, nor do I understand how this
is possible. The floppy and zip entries in auto.misc are virtually
the same. I'm running Fedora 1 with kernel 2.4.22-1.2188.nptl
and autofs-3.1.7-42. Is there some stale lock file for the zip and
not for floppy? What else can it be?



Relevant Pages

  • Re: [SLE] Floppy trouble
    ... On Thursday 02 December 2004 08:40 pm, Steven Pasternak wrote: ... > My stupid floppy isn't letting me write to it. ... mount & unmount as you have in the past. ... tell you only root can unmount it. ...
    (SuSE)
  • Ridiculous floppy crap
    ... Mount a floppy, copy a file, umount the floppy - oops, device is busy!!! ... want it, close EVERYTHING, click unmount - device is busy. ...
    (alt.linux)
  • Re: Im impressed ...
    ... How do I unmount these USB file systems? ... su to root and umount them, but is there a way of doing it automatically, or as ...
    (comp.unix.solaris)
  • Re: Ridiculous floppy crap
    ... > Mount a floppy, copy a file, umount the floppy - oops, device is busy!!! ... Su to root, umount - ... > want it, close EVERYTHING, click unmount - device is busy. ...
    (alt.linux)
  • Re: Cannot umount any device, Mounting works ok
    ... Yeah I also think thinking is bad for you. ... umount: only root can unmount /dev/fd0 from /floppy ...
    (comp.os.linux.misc)