SixArm / umount-nexus

umount-nexus: unmount a Nexus device from a Unix filesystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

umount-nexus:
unmount a Nexus device from a Unix filesystem

Syntax:

umount-nexus [path]

Example:

umount-nexus

Example using a specific device:

umount-nexus /media/nexus6

The path defaults to the most recent directory that matches:

/media/nexus*

This script tries these steps to unmount:

  • use umount to unmount the directory
  • test if the directory still exists
  • if so, then try lsof, then try fuser

About

umount-nexus: unmount a Nexus device from a Unix filesystem


Languages

Language:Shell 100.0%