automatic import and mounting of external exfat storage

ccdff

Dabbler
Joined
Nov 12, 2020
Messages
11
Hi fellow TrueNasers

I have a Blackmagic Camera which utilises external exfat SSDs. My goal is to plug in the ssd over usb and the NAS automatically import it. It does not need to create a folder structure based on exif data, but that of course would be ideal.

But I'm stuck at even mounting the SSD. After creating a new folder /mnt/usb, loading the fuse and mount /dev/da1s1 /mnt/usb/.

I tried: https://www.truenas.com/community/threads/mount-usb-external-drive.38960/ but didn't get any results.

When trying to use pkg I get this problem:
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!

I hope someone can give me some pointers. If it works without pkg that would be awesome but I don't mind getting my hands a bit diy.

cheers
ccdff
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you want to use pkg, you need to be in a jail.

You are also certainly barking up the wrong tree trying to mount filesystems other than ZFS for use by anything other than the built-in import process.

I think you're going to need to find another way to get the files moved over. The path you're going down is to break the appliance concept, so you should expect that even if you do get it to work somehow, your mods will break with some or even all future updates of TrueNAS.
 

ccdff

Dabbler
Joined
Nov 12, 2020
Messages
11
I will try to go the jail route, if I stumble into problems I'll keep this thread updated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you do try that, you're going to need to get into the devfs ruleset changes required to allow the jail access to mount the drive... basically it will need to be a jail with no restrictions since mounting a disk will call a kernel module on the host that a jail would normally not be allowed to call..
 
Top