Mounting external cifs share with password

Status
Not open for further replies.

unca_NAS

Explorer
Joined
Mar 25, 2012
Messages
87
Hello,
Half of my media library exist on mediaplayers HD. Cifs share.

I'd like the miniDLNA to recoqnize the contents of this share and including them.

With following command I'm able to manually add the mount to FreeNAS. After reboot the mount is gone. Is there a way to include to password to command / make the mount happen automatically?

Code:
$ mount_smbfs -W mydomain.com //mim@MyServer/SharedFolder /mnt/OldWindowsShare
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Using a cronjob you should be able to do this. The FreeNAS web interface doesn't support creating cronjobs that run on the @reboot function, so you will have to create the task on your own. The file to edit is /conf/base/etc/crontab. If you do some Googling you should be able to figure out the format of the file. All you'll need to do is mount the USB stick as writable, edit the file, then mark it read-only again.

Keep in mind that you will have to make this change every time you upgrade FreeNAS.
 
Status
Not open for further replies.
Top