Skip to content

Instantly share code, notes, and snippets.

@Hornet-C
Hornet-C / Install FreeNAS SCALE on a partition and create a mirror.md
Created February 9, 2024 10:07 — forked from gangefors/Install FreeNAS SCALE on a partition and create a mirror.md
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

#!/bin/sh -e
# based on https://gist.github.com/corny/7a07f5ac901844bd20c9
# updates the (public) IPv6 address and the (local?) IPv4 address
# cp ./dynv6.sh /usr/local/bin/
# chmod +x /usr/local/bin/dynv6.sh
# sudo touch /var/log/dynv6
# sudo chown $USER /var/log/dynv6
#
# ADD A CRONJOB (crontab -e)
@Hornet-C
Hornet-C / dynv6-windows.vbs
Last active November 16, 2017 19:34
Update script for dynv6.com to set your IPv4 address and IPv6 prefix. works with only one devices MAC-adress. Use it as cronjob to automate updates.
mydnv6token = "auth-token"
mydnv6hostname = "username.dynv6.net"
' MAC adress of desired device
searchingFor = "20:CF:30:09:F3:80"
Dim myIP4Address : myIP4Address = ""
Dim myIP6Address : myIP6Address = ""
Dim objWMIService : Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
@Hornet-C
Hornet-C / dynv6.sh
Last active January 12, 2022 14:12 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
# based on https://gist.github.com/corny/7a07f5ac901844bd20c9
# updates the (public) IPv6 address and the (local?) IPv4 address
# cp ./dynv6.sh /usr/sbin
# chmod +x /usr/sbin/dynv6.sh
# ADD A CRONJOB (crontab -e)
# @reboot /usr/sbin/dynv6.sh <public_dns> <token> [device] >/var/log/dynv6 2>&1
# */20 * * * * /usr/sbin/dynv6.sh <public_dns> <token> [device] >/var/log/dynv6 2>&1