Bash USBKeepAlive

Recently noticed that my NFS share always taken s little time to respond when using it after a while and it turns out if because the storage shared was on USB drive so until the disk spin up there was a delay.

Quick and easy fix is just edit / write to a file in the USB mount point periodically so I created a quick script that will do just that.

Simple way you can download this script and run is against your USB device, now I tested this on #Raspbian and #Ubuntu but nothing else.

Via command line:

$ cd ~
$ wget -O USBkeepAlive.bash https://bit.ly/3fjebLa
$ chmod +x USBkeepAlive.bash
$ cat USBkeepAlive.bash # to view the script
$ sudo ./USBkeepAlive.bash /media/usbdevice &

I hope it helps or at least gives you some idea how to help yourself.

Donate

SMALLTARBKP v4

Yet another version and what is the difference between v3 & v4 well to be honest only a few minor bugs that may or may not happen depending on how the script was being used but the biggest difference is the fact that v4 has a separate config file ${HOME}/.config/.smalltarbkp giving the ability to convert […]

SMALLTARBKP v3.0

This is a small tar backup script (smalltarbkp ) as it says in the name it was written in bash shell scripting designed for simplicity and purposely for Linux systems, this script is easy to use, easy to modify for those that want to improve, change or embed their own custom controls or reports.This is […]