time-machine-tips

Time Machine on unsupported NAS

To use an unsupported NAS as a Time Machine some configurations have to be made so it runs OK.

  • Enable unsupported NAS on TimeMachine with Terminal: “defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
  • Gather MAC Address of the Mac that will be used as a source of Time Machine Backups from Terminal: “ifconfig en0 | grep ether | awk ‘{print $2}’ | sed ‘s/://g’
  • Create a new sparsebundle file where the Time Machine backups will be archived via Terminal, replacing the appropriate fields of size,  <computer name>, is better to use a single word computer name (on Sharing option from Preferences) and <MAC Address>: “sudo hdiutil create -size <SIZE>g -type SPARSEBUNDLE -nospotlight -volname “Backup of <COMPUTER NAME>” -fs “Case-sensitive Journaled HFS+” -verbose ~/Desktop/<COMPUTER NAME>_<MAC ADDRESS>.sparsebundle“. It is recommended to use small size like 1G and resize later, in case to use full size now omit the next step.
  • Open the new created image file with Disk Utility and click on Resize Image, be careful to unroll the arrow and select “Only image size”, insert new size and click Resize. Now mount image and select Partitions tab, select create 1 partition of the dropdown menu and apply, when finished you can unmount the image.
Expand - Resize Image
Expand - New Size
  • To prevent the automatic resize of the file done by TimeMachine, use this command in Terminal App: “chflags uchg /Volumes/TimeMachine/<COMPUTER NAME>_<MAC ADDRESS>.sparsebundle/Info.*” Replacing <COMPUTER NAME> and <MAC ADDRESS> like before.
  • Now copy the sparsebundle file to the desired location of the NAS.
  • Open TimeMachine preferences and click to use the shared folder where the file image have been copied, TimeMachine will ask for the login information to the NAS and select save so it will not be asked again.

With all this TimeMachine should be running up.

Fan Control for D-Link DNS-320 with USB support

D-Link DNS-320
Based on the great script provided by John Mnemonic (here) I have adapted to use the USB Drive, to prevent the constant use of the hard disk so the hibernation can kick in, saving some energy and preventing the wear of the drives.

The files are configured to monitor only one drive and with standard temperature configuration from the original script, all this parameters are configurable within the first lines of the file fancontrol.sh from BIN folder. Tplot.sh files are only required only if you want graphics from temperature levels.

The temperature is obtained in Celsius from parameter 194 of SMART values. The script is tested and working with fun_plug 0.7.

Installation procedure:

Continue reading →