3

I have seen enough answers on how to mount USB Disks via command line but I would like to know if is it there a text tool for managing the USB Drives.

Scenery

I own a server in a remote place. The server one HDD for the Operating System and Data, and a USB Drive for Backups.

Sometimes I need to remotely (SSH) manage the USB Drive in order to mount/unmount as desired.

It would be useful if we find a text only USB Disk manager.

Thanks in advance.

Glossary

  • "manage" = Mount and Unmount in a visual mode, without doing magic in order to guess which /dev/sdX drive is and without having to memorize and write every single command in order to mount and unmount.
  • "Manage" = Mount and Unmount in a terminal as you do in your favorite file browser.
muru
  • 207,228

1 Answers1

0

If you are using udisks2 you can consider using udiskie for this.

udiskie-info -a

This command will show all manageable attached devices. to mount or unmount these devices use these commands:

udiskie-mount /dev/device
udiskie-umount /dev/device

Where devices are mounted can be specified in a config file for udiskie, default is /media or /run/media.

Ferdi
  • 527