Hint and kinks: Difference between revisions

From GammaSphere DAQ
Jump to navigation Jump to search
Line 2: Line 2:
==unmounting a USB disk==
==unmounting a USB disk==


Sometimes a user has cd'ed to a USB disk and then if someone else tries  
Sometimes a user has cd'ed to a USB disk in some window (shell)
to unmount the disk they will get this message:
and then if someone else tries  
to unmount the disk they will get a message like this:


   looking for message, stand by
   umount: /media/120514a: umount failed: Operation not permitted


The solution is to find the offending process and kill it cold.  
The solution is to find the offending process and kill it ''cold''.  
If the disk is labeled '120514a', then the steps are:
If the disk is labeled '120514a', then the steps are:


Line 14: Line 15:
you might see something like this
you might see something like this


bash      8367      dgs  cwd      DIR      8,49    20480  61341743 /media/120514a/user/cs
  bash      8367      dgs  cwd      DIR      8,49    20480  61341743 /media/120514a/user/cs


you can now kill this offending process as
you can now kill this offending process as

Revision as of 17:14, January 23, 2013

unmounting a USB disk

Sometimes a user has cd'ed to a USB disk in some window (shell) and then if someone else tries to unmount the disk they will get a message like this:

 umount: /media/120514a: umount failed: Operation not permitted

The solution is to find the offending process and kill it cold. If the disk is labeled '120514a', then the steps are:

  lsof | grep 120514a

you might see something like this

 bash       8367       dgs  cwd       DIR       8,49    20480   61341743 /media/120514a/user/cs

you can now kill this offending process as

  kill -9 8367

and then you can do

  umount /media/120514a