[EMAIL PROTECTED] writes:

> In general, I think that it is the system administrator's responsibility
> to ensure that that filesystems mounted through a PCMCIA card -- whether
> SCSI, IDE, NFS, or other -- are properly unmounted before the PCMCIA
> utilities are shut down.  For NFS directories that should be 
> automatically
> mounted when the network connection is established, the MOUNTS variable
> is the /etc/pcmcia/network.opts file should be used; however keep in
> mind, that in using this, the network card cannot be ejected without
> first using either cardctl or cardinfo to shut down the network card.

This is silly.  The administrator is not expected to manually unmount
filesystems in any other configuration and should not be expected to
here.  Particularly insidious is the situation of SCSI, wherein the
PCMCIA system is shutdown before the system unmounts it (!!).  While I 
don't have a SCSI system to test it on, this is the order it does
things in (incorrectly).

> If you are in the habit of manually mounting an NFS directory to /mnt 
> and
> are prone to forgetting to unmount before shutting down the system, may
> I suggest that you add `umount /mnt' to the stop_fn function defined in
> /etc/pcmcia/network.opts.  This way, the network script will 
> automatically
> detach any filesystem mounted to /mnt before the PCMCIA cardmgr is 
> halted.

The PCMCIA scripts should not force me to explicitly define all the
possible things that I may mount via PCMCIA.  (What if, for instance,
/mnt may sometimes by a different partition on the hard disk?)

I feel very strongly that the bug that causes it to lock up is NOT
trivial and should be FIXED.  Requiring the sysadmin to manually
unmount, automatically unmounting one specific filesystem regardless
of whether it deals with PCMCIA, etc. is NOT an acceptable solution.
It is merely a workaround, and forgetting to umount before shutting
down a machine (or simply not knowing that somebody else mounted
something) should not cause data loss.  EVER.  But it does.

The real solution is to only turn PCMCIA off AFTER everything using it 
is finished.  That probably means that it would theoretically be
turned off after the filesystems are unmounted, although that isn't
really possible.  Perhaps Linux doesn't have to worry about turning it 
off on system shutdown, just as Windows 95 doesn't worry about turning 
if off on system shutdown (and thus neatly sidesteps these insidious
bugs).

-- 
John Goerzen             | Developing for Debian GNU/Linux (www.debian.org)
Custom Programming       | Debian GNU/Linux is a free replacement for
[EMAIL PROTECTED]    | DOS/Windows -- check it out at www.debian.org.
-------------------------+----------------------------------------------
uuencode - < /vmlinux | mail -s "Windows NT security fix" [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to