Make sure mount points are mounted.. sometime after startup..
Stephen Starkey, ACC 7a1c414bc6 Caveats 3 months ago
src Smoother build script 3 months ago
.gitignore First commit 3 months ago
README.md Caveats 3 months ago
build No need for extensions 3 months ago
install-deps No need for extensions 3 months ago

README.md

ensure-mounted

Sometimes things in your /etc/fstab can’t mount at startup. They have to be mounted a bit later. You can run this binary in your crontab to mount those things.

preparing

First, install Chicken Scheme.

Then, run ./install-deps to install all the eggs this project requires.

building

After preparing, simply run ./build

A binary called ensure-mounted will show up in the output directory.

installing

Put the binary somewhere and run it from your crontab.

Here’s an example cron line:

*  *    * * *   root    /usr/local/bin/ensure-mounted > /var/log/mounts.log 2>&1

configuring your fstab

If you run the program without configuring your fstab, it will complain. Surround the mount declarations you want to ensure stay mounted between delimiters like so:

#== ensure-mounted
//<my-nas>/<my-share> /mnt/slow cifs noauto,credentials=/home/<myuid>/.creds,noexec,rw,uid=<myuid>,file_mode=0600,dir_mode=0700 0 1
#== ensure-mounted-end

caveats

Only the first #== ensure-mounted block will be used.