FreeNas 11.2 directory in /mnt disappears

zorin1us

Cadet
Joined
Dec 28, 2018
Messages
7
I’m working on a script that will mount an external share. I have a USB NTFS drive plugged into one of my routers. This router is a little hidden in house and I wanted to use this drive as a backup. I know that you should have an offsite backup. But I’m too cheap to do that, and I like to be in control of my stuff.

This is what I’m doing:
mkdir /mnt/RabbitHDD – Only did this once to initial create the directory.

My script does this:
mount_smbfs –E UTF-8:UTF-8 –I Rabbit //Rabbit/RabbitHDD /mnt/RabbitHDD
Then I’m doing an rsync command to mirror my files to /mnt/RabbitHDD

The issue that I’m running into is that the /mnt/RabbitHDD is disappearing. What is removing it? Should I not be mounting to /mnt?
 

Meyers

Patron
Joined
Nov 16, 2016
Messages
211
It's disappearing on reboot I assume? Just have your script do mkdir -p /mnt/RabbitHDD at the top of it.
 

zorin1us

Cadet
Joined
Dec 28, 2018
Messages
7
It's disappearing on reboot I assume? Just have your script do mkdir -p /mnt/RabbitHDD at the top of it.

I found out that the /mnt is tmpfs file system. So on a reboot it is gone. That makes sense. I just wanted to make sure that something else was not removing the directory.
 
Top