Skip to content

update.flexfs

update.flexfs is a manual update utility that installs the latest mount client binary and restarts active mounts. It provides an alternative to the automatic update mechanism built into mount.flexfs. Requires root privileges.

Terminal window
sudo update.flexfs [flags]

All flags are public.

FlagTypeDefaultDescription
--force, -fboolfalseForce update and perform a hard reset
--mount, -mboolfalseMount /etc/fstab entries after update
  1. Install: Downloads and installs the latest mount.flexfs binary to /sbin/mount.flexfs.
  2. Unmount: Attempts to cleanly unmount all active flexFS mounts.
  3. Remount (with --mount): Re-mounts all fstab entries.

If clean unmounting fails for any mount point:

  • Without --force: The utility prints an error and suggests closing processes or using --force.
  • With --force: Performs a hard reset that kills all mount users and clients, resets mount points, clears caches and logs, and remounts fstab entries.

The hard reset sequence:

  1. Kill all processes using flexFS mount points (fuser -k)
  2. Kill all mount.flexfs processes (pkill -KILL mount.flexfs)
  3. Unmount and recreate all fstab mount point directories
  4. Clear caches from /dev/shm/.flexfs* and the mount cache directory
  5. Clear log files
  6. Remount fstab entries (if --mount is set)