A little script to mount encrypted disk image created with mdconfig and geli.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yorick Barbanneau aee895f1dd First commit 4 years ago
README.md First commit 4 years ago
mount.sh First commit 4 years ago



A small script utility to mount encrypted image disk in FreeBSD / FreeNAS then execute desired services

this script is inspired by one you can find here


First you’ll need to customize a little for your need, there 3 variables to modify :

  • IMAGE_DISK : full path to your disk image
  • MOUNT_PATH : full path to your mount point
  • SERVICES : services you want to start after mounting image.


I want to mount my image /data/backup_drive.img to /var/spool/burp/ then start burp service. Here is all three variables :


Then, i just need to launch the script then prey there is no bug ;-)

#mount.sh mount