Auto mounts SCSI-drives (sda, sdb etc.), including USB sticks and SD cards on initialization of NAP Core, before the application is loaded. The module also watches and notifies the user about changes in SCSI disk configuration, automatically mounting new drives and unmounting disconnected ones. Linux only.
Compatible with NAP 0.7 and higher - package release and source context.
Download the module as .zip archive and
install it into the nap modules directory:
cd tools
./install_module.sh ~/Downloads/napmount-main.zip
Clone the repository and setup the module in the nap modules directory.
cd modules
clone https://github.com/naivisoftware/napmount.git
./../tools/setup_module.sh napmount
This application, when configured to mount drives (default), requires NOPASSWD sudo privileges for the following commands:
- /bin/mount
- /bin/umount
- /usr/sbin/blkid
Add a new file to /etc/sudoers.d:
cd /etc/sudoers.d
sudo nano napmount
And add the following line, replace user with your username:
# give user no-pass mount permissions
user ALL=(ALL) NOPASSWD:/bin/mount, /bin/umount, /usr/sbin/blkid