|Stephen Starkey 7a1c414bc6 Caveats||3 months ago|
|src||3 months ago|
|.gitignore||3 months ago|
|README.md||3 months ago|
|build||3 months ago|
|install-deps||3 months ago|
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.
First, install Chicken Scheme.
./install-deps to install all the eggs this project
After preparing, simply run
A binary called
ensure-mounted will show up in the
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
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
Only the first
#== ensure-mounted block will be used.