bashmount - easily mount/unmount your drives from the terminal

Moderator: Forum moderators

Post Reply
User avatar
sc0ttman
Posts: 93
Joined: Sat Aug 22, 2020 3:55 pm
Has thanked: 4 times
Been thanked: 33 times

bashmount - easily mount/unmount your drives from the terminal

Post by sc0ttman »

bashmount

bashmount is a command-line tool to easily manage removable media.

Homepage: https://github.com/jamielinux/bashmount

Image

Installation

  1. Install the
    script
    somewhere in your path (eg, /usr/bin/bashmount).
  2. Optional: Install the
    configuration file
    at either /etc/bashmount.conf or $HOME/.config/bashmount/config.

Dependencies

  • bash
  • eject
  • Optional: udisks2

udisks2 is recommended, so that regular users can manage removable media
without sudo. By default, udisks2 is auto-detected, but you can force use
of udisks2 on or off in the configuration file.

Configuration

bashmount works fine without a configuration file, but there's some neat
things you can do.

Have a look at the example
configuration file.

  • Open your desired file manager at the mountpoint of a device. (The default is
    to open in your terminal.)
  • Hide certain devices from the list.
  • Configure custom commands to run on removable devices.
  • Automatically run custom commands after a mount or unmount.
Post Reply

Return to “Filesystem”