Saifi Khan wrote:
> Hi:
>
> i mounted a partition /dev/hdb1 on /data/d1 directory
> on the Gentoo machine.
>
> #mount /dev/hdb1 /data/d1
>
> Now, when i attempt to (un)mount the device the system
> responds "twice" for the device is busy. 
>
> #umount /data/d1
>
> /dev/hdb1 resource or device busy
> /dev/hdb1 resource or device busy
>
> i have taken care that i am executing the command 
> from '/' directory.
>
> Can somebody point out, what i could be missing here ?
>
> Additionally, why the device is shown to be busy twice ?
>
> Any suggestions ?
>
>
> thanks
> Saifi.
>   
Hi Saifi,

You can find out which process is using the file/filesystem using 'lsof' 
or 'fuser'.
If you don't find any process using it, then try :

'unmount -f -l /data/d1'

-f is for forced
-l as per the man pages is
"Lazy unmount. Detach the filesystem from the filesystem  hierarchy now,
and cleanup all references to the filesystem as soon as
it is not busy anymore.  (Requires kernel 2.4.11 or later.)"

-f alone will not work.

Not sure why it responds twice though.

Hope this helps.

Namita

Reply via email to