cryfs-unmount Verified current stable Not installed? Filesystem

Cryfs Unmount / Unmount Encrypted Filesystem

Unmount Encrypted Filesystem

Unmounts an encrypted filesystem mounted with CryFS.

$
Terminal
cryfs-unmount <path/to/mount_point>

When To Use

When secure data needs to be locked down after use, preventing unauthorized access.

Pro Tip

Use the `--force` option if a process is blocking unmounting, but use cautiously.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Unmounting /mnt/encrypted_filesystem...
Success: Unmounted /mnt/encrypted_filesystem.

Anatomy of Output

Understanding the result

CryFS unmounted: /path/to/mount_point Unmount Status

Indicates successful unmounting.

All buffers flushed, data secured. Data Safety Message

Ensures all writes are completed before unmount.

File system state: Clean File System Condition

Confirms no errors during the unmount operation.

Power User Variants

Optimized versions

cryfs-unmount -f path/to/mount_point

Forcefully unmount the CryFS filesystem.

cryfs-unmount --verbose path/to/mount_point

Provides detailed output while unmounting.

Troubleshooting

Common pitfalls

cryfs-unmount: No such mount point

Solution: Check if the given mount point is correct and currently mounted.

cryfs-unmount: Device is busy

Solution: Terminate any process using files in the mount.

cryfs-unmount: Unable to unmount

Solution: Use `sync` before attempting to unmount again.

Command Breakdown

What each part is doing

cryfs-unmount
Base Command
The executable that performs this operation. Here it runs Cryfs Unmount before the shell applies any redirect operators.
<path/to/mount_point>
path to mount point
The value supplied for path to mount point.

How To Run

Execution path

  1. Step 1

    Run the command: cryfs-unmount /mnt/encrypted_filesystem

  2. Step 2

    Verify the unmount by checking with: ls /mnt/encrypted_filesystem

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.