pizzaazzip
Dabbler
- Joined
- Dec 3, 2015
- Messages
- 25
Hey all, you may remember me from the post I made earlier this month, I decided to follow this official documentation to mount remote shares instead of messing around with the fstab file since that causes/caused problems for me. All I did was head over to Tasks>Init/Shutdown Scripts and put in two postinit commands to mount smb shares following this format:
It works quite well although when I reboot the server, I have to type in the smb share password (once for each share) which is a real pain. I have the bios set to continue previous state on power failure so if/when my UPS runs out of battery in some outage situation or something, it will boot right up when power is restored. If I'm not home, it will hang on where it requires me to punch in the password(s). Anyone have an idea how I can make this boot unattended? As far as I know, I cannot mount guest file shares in FreeNAS which is a shame because I access these shares on different boxes through guest since they only have read access.
Code:
mount_smbfs -I 192.168.1.1 //myUser@serverName/mySharedFolder /media/mySharedFolder
It works quite well although when I reboot the server, I have to type in the smb share password (once for each share) which is a real pain. I have the bios set to continue previous state on power failure so if/when my UPS runs out of battery in some outage situation or something, it will boot right up when power is restored. If I'm not home, it will hang on where it requires me to punch in the password(s). Anyone have an idea how I can make this boot unattended? As far as I know, I cannot mount guest file shares in FreeNAS which is a shame because I access these shares on different boxes through guest since they only have read access.