[SATLUG] Stopping an external hard drive

David Kowis dkowis at shlrm.org
Wed Sep 17 22:29:34 CDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
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

www.ronpaul2008.com - Ron Paul for President!
www.sourcemage.org  - SourceMage GNU/Linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQGcBAEBCgAGBQJI0cseAAoJEMnf+vRw63ObwBgL/jte8rzFp00mc/ZfWcZSxUAw
Eikf54+hTCSTvW/QZZr+r9gkcnPuN6MKzsFYflV+P96hFCLKNUQuKxxf/HCZrpYU
nwQbm8nYTqSUaPcEG9BAg2fSe8QsbwfpYxzwF06Wy05XufAfYHZ3OBPBJTfpmJpl
WiE/399FVIYEVJpoyEhjbWqyK1lds4M4502RtN1uJ2HPyZ9+DbiMWpkCUhSs/UPp
FP10CoNzUoaeZeAxP20pxHIoi5rn9qXEUGbYvk9bTDqx6Z0vDu2kIYoO/cG5APiv
eQkpfSi8/5UxJmkrx1+GBG81R6esRMUKEEZFZE06noIRdFo62qNBrsK4ejC39sT0
pKiE14TAeOqei41q72xMvhVUSykZxxOPTwJ/VvDVZ2juhYsOISgZJHwdUS0ASqGQ
sUXFDf5g3l6JVbmFvCrtjuvT+bsJ0kQfs329Vq8cVOzwOt5lnPNvzMrTqKTTao6l
OUhFUkk2ONnLHcI9JNJ091fsOSbqojvz7VO9bSFCmg==
=XpUk
-----END PGP SIGNATURE-----


More information about the SATLUG mailing list