Removing orphaned virtfs mounts

Posted by & filed under Linux.

Shows who is logged in:
# who

Anybody running a virtfs, or any orphaned virtfs users?
cat /proc/mounts | grep virtfs

Unmount them!
for i in `cat /proc/mounts |grep virtfs |grep user_name_here |awk ‘{print$2}’`; do umount $i; done

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Bitnami