[nflug] >mount

Chris Brown Chris.Brown at ctg.com
Mon Jun 25 15:27:58 EDT 2001


Try an 'lsof' to see what is using the file system.  Remember CWDs
(current working directories) make the file system in use.  If you did
exactly what you typed, your shell was using the file system.  Try:

cd /
umount /mnt/opt

Chris


-----Original Message-----
From: Robert Dege [mailto:rdege at cse.Buffalo.EDU] 
Sent: Monday, June 25, 2001 2:43 PM
To: nflug at nflug.org
Subject: [nflug] >mount


I'm trying to write a script that will umount a drive from my linux
system.  I already have it setup so that all services that access the
drive will shutdown prior to it um-mounting.  But, I can't figure out
how
to umount the drive if somone resides in that directory.

ie:

> cd /mnt/opt
> umount /mnt/opt

Mount: device busy

How can I forcibly umount the drive?  I tried the -f option, but no
luck.


Dege

Inside some of us is a thin person struggling to get out, but
they can usually be sedated with a few pieces of chocolate cake.



More information about the nflug mailing list