LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rc/rce when trying to umount network share (https://www.linuxquestions.org/questions/linux-newbie-8/rc-rce-when-trying-to-umount-network-share-4175447168/)

raphael75 01-25-2013 08:00 AM

rc/rce when trying to umount network share
 
I'm trying to unmount a network share. What are all the <x>rc and <x>rce entries?? How can I close them so I can unmount the share? Here is the output:

root@xyz:/var# umount -a /mnt
umount: /dev: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

root@xyz:/var# fuser -m /mnt
/mnt: 1rce 2rc 3rc 4rc 5rc 6rc 7rc 8rc 9rc 10rc 11rc 12rc 13rc 14rc 15rc 16rc 17rc 18rc 19rc 20rc 21rc 22rc 23rc 24rc 25rc 26rc 27rc 30rc 31rc 32rc 33rc 34rc 35rc 36rc 240rc 241rc 242rc 243rc 244rc 245rc 246rc 247rc 248rc 253rc 255rc 257rc 258rc 288rc 315rc 316rc 414rce 542rce 939rce 951rce 1136rce 1191rce 1563rce 1576rce 1577rce 1587rce 1595rce 1603rce 1604rce 1618rce 1634rce 1705rce 1706rce 1739rce 1748rce 1749rce 1755rce 1760rce 1764rce 1766rce 1777rce 1869rce 1870rce 1871rce 1884rce 1898rce 1911rce 1912rce 1926rce 1930rce 1932rc 1939rce 1942rce 1943rc 1962rce 1982rce 2001rce 2032rce 2076rce 2080rce 2081rce 2086rce 2120rce 2205rce 2370rce 2380rc 2381rc 2429rce 2440rce 2481re 2482re 2483re 2484re 2485re 2486re 2718rce 10290rce 14774rce 16047rc 16048rc 17781rce 17787rce 22962rce 22980rce 22988rce 22994rce 22996rce 22997rce 22998rce 23000rce 23003rce 23004rce 23007rce

root@xyz:/var#

Thanks!

jpollard 01-25-2013 08:18 AM

fuser reports the process id numbers for all processes that are accessing the /mnt directory.

The manpage on fuser gives:
Code:

  c      current directory.
  e      executable being run.
  f      open file. f is omitted in default display mode.
  F      open file for writing. F is omitted  in  default  display
        mode.
  r      root directory.
  m      mmap'ed file or shared library.

Before you close them, you might check which processes they are. The first entry [1rce] is init.
So if you kill this, you will either crash the system, or force a reboot.

NOTE: you did "fuser -m /mnt", which gives the list of pids using the filesystem the directory is in. That means it is giving the pids for those processes using root.

If you wanted to see what was using filesystems mounted in /mnt (usually /mnt/xyz) then you would want to use the command "fuser -m /mnt/*" instead.

What you did is valid... if /mnt is actually has a filesystem mounted on it. You might consider using "fuser -M /mnt" which will not list any processes if the directory is not used as a mount point. (instead it dumps a "usage" message preceded by "No process specification given")


All times are GMT -5. The time now is 01:12 PM.