[SATLUG] Stopping an external hard drive

Alan Lesmerises alesmerises at satx.rr.com
Wed Sep 17 23:12:28 CDT 2008

That did the trick.  Thanks!

Al Lesmerises

David Kowis wrote:
> Hash: SHA512
> Alan Lesmerises wrote:
> | I have an external NTFS hard-drive mounted to my system (to transfer
> | some files from a Windows system), and now that I want to unmount it, I
> | get an error message saying the device is busy.  When I look at the
> | running processes (ps -ef), I find nothing that refers to that device
> | (sdc1) or the mount point (/mnt/usb_drive).
> |
> | How can stop whatever process is making the device busy or find out 
> what
> | process is accessing that device?  I really don't want to just
> | disconnect it and risk corrupting something ...
> |
> | Al Lesmerises
> There is lsof which will show you an output of the open files.
> so `lsof | grep /mnt/usb_drive` should show you the list of files that
> are open on that device. Then you can do whatever to get them to be
> closed ;)
> - --
> David Kowis

More information about the SATLUG mailing list