0

As far as I know proc file system is a virtual file system. Is there any way to unmount the proc file system and even if I do that what will be the consequences after that.

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
pradeepchhetri
  • 2,899
  • 6
  • 28
  • 50

2 Answers2

2

You can check (as root) who is using a mounted filesystem like so:

fuser -m /proc

Typically, your box will not be very usable if you kill all the processes using /proc. Otherwise, there is no law saying it has to be mounted, beyond all and sundry developer assuming that it is.

Bittrance
  • 2,202
  • 2
  • 20
  • 29
1

umount will work like on any other file system (same conditions for a filesystem to be unmonted). You can expect a whole lot of this to stop working as soon as you do that though (including very simple utilities like ps).

Mat
  • 202,337
  • 40
  • 393
  • 406
  • I think there is no command called **unmount**. There is only a command called **umount** – pradeepchhetri Mar 12 '11 at 17:25
  • Not always. A process that has hung in "D" state (during an I/O syscall essentially) cannot be killed. If you have a process like that hung on /proc, you won't be able to unmount it. Note that you should not unmount /proc anyway. – Mat Mar 12 '11 at 18:35