Archivi Blog

Use a Single External Hard Drive for Time Machine Backups and File Storage

via OSXDaily

Having regular backups of your Mac is a necessity, and there is really no easier way to consistently back up your Mac than by using the excellent Time Machine feature of OS X. But with the enormous size of external hard drives and their prices becoming cheaper and cheaper, it’s not always necessary to dedicate an entire gigantic hard disk just for Time Machine backups, particularly if your Mac has a smaller hard drive and thus the backups won’t take up that much space in general. For these situations, configuring the single external hard disk to have dual use is an excellent choice. The end result will be an external storage drive split into two partitions, one to be setup exclusively for Time Machine backups, and another partition intended for typical file system access and file storage.
The basic process may be familiar to Mac users who have setup drive partitioning and backups before, but we’ll cover every step to be sure everything is configured correctly.

Any Mac running OS X with Time Machine support (every modern version)
Large external hard drive (check out this Amazon deal)
Minor patience, and about 10 minutes for initial setup
Note on buying external hard drives: it’s almost always cheaper to buy a generic external hard drive and format it yourself to be Mac compatible. Drives that are pre-formatted for OS X are usually no different than a standard external drive, other than having a higher price tag.
Step 1: Format the Drive to “Mac OS Extended” Compatibility
The first set of steps involves formatting the drive. You can partition a drive without formatting, but we’ll cover this process anyway because many third party hard drives ship with Windows-centric FAT32 or NTFS file systems which, while they are compatible for dual use with both Mac and Windows, are not compatible for using as a Time Machine drive, and as they are not exclusively formatted for the Mac, will have other limitations which are not desirable for exclusive Mac OS X usage.
This process will erase all data on the hard drive, meaning this is best to pursue when you first get a new external drive for backups and file storage.
Connect the external hard drive to the Mac
Launch Disk Utility, found in /Applications/Utilities/
Select the external hard drive from the drive list on the left, then click the “Erase” tab
Choose “Mac OS Extended (Journaled)” as the format type, ignore the naming convention for now, then click “Erase” and confirm the drive will be erased


How long it takes to format a drive depends on a variety of factors, including drive speed, interface speed, and total disk size. Just let the process go, don’t be surprised if it takes a few minutes.
Step 2: Create Two Partitions for Time Machine & Storage
Next we’ll set up the external hard disk to have two separate partitions, one for the Time Machine backups and the other for regular file system access.
A quick note about sizing: It is good practice to set the Time Machine drive to be at least 2x-3x your primary hard disk size. For example, if the Mac has a built-in 128GB SSD drive, setting the Time Machine partition to be at least 384GB or larger would be ideal. You can certainly get away with smaller sizes, but because Time Machine takes incremental snapshots of the data on your Mac, the backups will simply capture more data for a longer period of time if the partition size is larger. To be clear, backups will not stop once the maximum space is reached, it will simply rewrite older backups, thus preventing access to old drive states as they become rewritten. We’re going to use an even 50/50 partition scheme for this example (specifically, a 1.5TB drive split into two 750GB parts) though you can configure yours as appropriate.
When the drive has finished formatting, choose the “Partition” tab
Pull down the “Partition Layout” menu and select “2 Partitions” to split the drive into two equal partition sizes divided 50/50
Adjust the partition size allocation if desired by dragging the boxes to adjust size, or by manually selecting a partition and entering a desired allocation in the “Size” input box
Name the two partitions accordingly, select the first partition and name it something like “Time Machine Backup”, then select the other partition and name it something like “File Storage”
Choose “Apply”, then confirm the changes by clicking “Partition” when asked


Partitioning a drive can take a few minutes, depending on the total capacity of the disk. Once that process is finished you can quit out of Disk Utility.
Step 3: Set Time Machine to Backup to a Specific Partition
With the most technical aspects now finished, you can specify the partition to become the Time Machine backup. This will also initiate the first backup of the entire Mac with Time Machine, which is usually the lengthiest backup since it’s going to back up every single thing.
Go to “System Preferences” from the  Apple menu and then choose “Time Machine”
Click the “Select Disk” button and let the list populate
Choose the partition named “Time Machine Backup” from the list, then confirm the choice by clicking “Use Backup Disk”
Let Time Machine backup for the first time


While you’re in the Time Machine settings, you can choose to encrypt the backups by checking the appropriate box (yes, you can encrypt them later if you change your mind), and you can also exclude files or folders from the backups through simple drag and drop specification by way of the “Options” button if desired. The default configuration remains unencrypted and excludes nothing, which is satisfactory for many use cases.
Again, the first initial backup process will take quite a while since the entire Mac is being backed up. Let the entire process run through its course, this may be best done overnight if the primary Mac hard drive is enormous since it can several hours to perform the initial backup. Backups performed after the initial sequence will be much faster and smaller, because they will be delta backups, focusing on files that have been added, deleted, or changed from the Mac, rather than just copying the entire drive and it’s untouched contents over and over again.
All done! Easy backups and access to classic file storage are good to go
Now that everything is setup you will have one partition automatically serving as the backup drive, and the other accessible as usual through the file system for general file storage of things like movies, large video collections, pictures, media, downloads, or whatever else. How to differentiate between the two drives? Other than the obvious name differences that were specified during configuration, you’ll discover the icons serve as an indicator of which partition/drive does what purpose. The normal file system storage partition will have a standard orange external drive icon, and the Time Machine partition will have a green icon with the backup logo on it.
Accessing the standard file system partition is done through any Finder window, where it will appear in the sidebar under “Devices”, or if you have drive icons set to show up on the desktop, it will appear there.

How to Connect a Mac to a TV

via OSxDaily

Ever wanted to connect a Mac to a TV screen? Maybe you want to use the TV as a giant external monitor, to play games on a big screen, or just for video playback and movie streaming? It’s actually quite easy to do, and we’ll cover the entire process from start to finish. We’re going to focus on connecting any newer Mac to any fairly modern TV by way of a physical HDMI connection, thus, a few third party accessories will be necessary for the task. The result will be the Mac exporting both video and audio signals to the TV.

HDMI is really the best way to connect a MacBook Air, Pro, iMac, or Mini to an HDTV screen, whatever your intended usage purpose is. Yes, the AirPlay feature can also export a screen to show up on a TV through an Apple TV box, but the HDMI method has several distinct advantages; it’s cheaper, resource usage is considerably less, there are no slowdowns, the video quality does not depend on network latency, and it’s just generally much more versatile, making the only real downside to the HDMI approach being the physical cable connectivity. Lets get started and cover the basic requirements first.

Virtually every semi-modern Mac will fit the bill, but you will need the following:

Mac with Mini-DisplayPort, Mini-DVI*, or Thunderbolt port
Mini DisplayPort/Thunderbolt to HDMI Adapter with Audio Support ($10-$15)
HDMI cable ($5-$20 depending on length)
HDTV with HDMI input, just about any modern HDTV
Note about HDMI adapters and audio support: there are many options available on Amazon and some are very cheap, many of which will not actually carry audio despite advertising that they do. Generally, the adapters that cost a little bit more tend to be more reliable, so be sure to read the reviews and make sure that audio does indeed work for the adapter you are ordering. I’ve had the best experience with the Monoprice brand, but your mileage may vary. Also note that for 2010 and older Macs, the Mini-DVI to HDMI adapters do not carry audio at all, thus you will need a separate audio output option that we won’t cover here (external speakers, separate audio cable, etc).

If you plan to control the TV using your Mac from a distance, spend a couple extra bucks on a longer HDMI cable. 15 feet is usually adequate for most cases, but if you have a gigantic room you may want a longer cable.

For the purpose of this walkthrough we’ll focus on the newer Mac models with Mini-DisplayPort and Thunderbolt ports, this guide was crafted using a MacBook Air and MacBook Pro, but the same applies to newer Mac Mini and iMac models too.

Connect the Mac to the TV

Establishing the initial connection is remarkably straightforward and is just a matter of physically connecting the cables to one another from the Mac to the TV.

If you have never connected anything to a Mini-Display Port or Thunderbolt Port, you’re looking for this port:


The location of the video output port varies per Mac model, but it’s usually on the right-side of the MacBook Air, the left side on the MacBook Pro, and it’s always on the back of the iMac and Mac Mini. The Mini-DisplayPort to HDMI adapter that connects to the Mac will look something like this:


With everything ready, it’s time to hook everything up and get the connection going:

Connect that HDMI adapter to the video output port on the Mac
Connect the HDMI cable to the adapter, and the other end of the HDMI cable needs to go into an available HDMI source port on the back or side of a TV
Turn the Mac on if it isn’t already
Flip the TV’s video input source over to HDMI (often through a “Video Source” button on the TV’s remote control)
The Mac should instantly recognize the TV and extend the desktop over to the HDTV’s screen. If that doesn’t happen, you are probably on the wrong video source of the TV, so try another HDMI source. Some modern HDTV’s have up to 6 HDMI ports, meaning you’ll have to flip through each of them to find the proper one carrying the Macs video and audio output signal. You’ll know it works because the desktop shows up on the TV instantly like this:

If you’re satisfied with this alone, which basically makes the TV an external display, then you can call it quits here. On the other hand, if you’re looking to watch movies through apps, watch web video, or use another playback source from the Mac on the larger TV screen, then you’ll want to take a few additional steps to greatly improve the experience. Plus you’ll probably want to get sound working properly, as you’ll notice by default audio won’t play through the TV screen and stays playing through the Macs speakers instead. Read on to optimize the TV for video playback, get sound working, and for some more tips for having the best experience.

Configure the TV Screen for Optimal Video Display

By default the Mac will attempt to use the TV as an external display, extending the desktop to the TV screen. That’s great if you intend on using the TV as a large external monitor, but if you’re aiming to watch video or a movie, or play games, you’re better off using Display Mirroring in many case. Option A describes how to do this easily:

A: Set Up Mirroring

With the Mac connected to the TV, open System Preferences
Choose “Displays” and then click the “Arrangements” tab
Check the box for “Mirror displays”


While this almost always looks better on a 720p TV screen, that’s not always the case for 1080p HDTV’s. Since the 1080p resolution is greater than that seen on many Mac displays, you’ll either need to scale down the resolution, deal with a pixelated image, or just set the external display as the primary display and go into full-screen mode on the TV screen when playing video as described in Option B:

B: Set the TV Display as the Primary Display

Open System Preferences from the  Apple menu after the Mac & TV are connected to one another
Choose “Displays” and then go to the “Arrangements” tab
Drag the white menubar from the smaller built-in display to the external TV display, thereby turning the TV into the primary screen


This will reverse the default configuration of a dual-display setup, thereby turning the Macs screen into the extended desktop, and the HDTV as the main desktop where the menu bar shows and apps appear by default.

Change Sound Output from the Mac to TV via HDMI

Unless the Mac is hooked up to some great external speakers, you’ll almost certainly want to set audio output to go through the TV’s speakers rather than the tiny ones built into the computer. For just about every HDMI based Mac-to-TV connection, these audio settings must be adjusted manually after the two have been attached to one another and video is already displaying on the TV screen:

Open System Preferences from the  Apple menu and choose “Sound”
Click the “Output” tab and look under the “Type” list to find the “HDMI” option and select it


The Output tab will usually show the TV’s model name, but since most people don’t know the model number of their TV that’s fairly meaningless and it’s much easier to just look for “HDMI” in the list. In the screenshot example, the LCD HDTV’s model is “VO320E” for a Visio 32″ but the names are often much more convoluted than that.

Note that once you set the audio output to go through the TV you will lose the ability to adjust the sound volume levels through the Mac’s audio output controls, meaning you’ll need to use the TV’s built-in volume adjustment buttons or a remote control.

Get a Good Video Playback App

If the entire reason you’re doing this is to watch videos on a bigger screen, be sure you get a good video playback app. Here are four great free apps:

XBMC – media center and much more, plays almost any video you can throw at it
Plex – media center app that also plays virtually every video format
VLC – barebones but powerful video playback app that works with nearly all video formats
MplayerX – more full-featured video player that is compatible with the majority of video formats
QuickTime Player is also a fine choice for playing .MOV, m4v, .mp4 files, but for other movie file formats like .WMV, Flash .flv, .mpeg, .avi, and others, you’ll want to get a third party app instead. For other formats, VLC is a classic app and should be included in just about every Mac users app toolbox, and MplayerX is becoming increasingly popular for being just as versatile while having the added bonus of supporting BluRay and MKV playback.

Both XBMC and Plex are full featured media apps, which are capable of turning a Mac into a media center when they’re running. If you have a spare Mac, you can even turn it into a full-time media center, server, and torrents box, and the Mac Mini is particularly great for that purpose.

Video Playback Too Small? Black Bars Showing? Use Screen Zoom

Not all movies or videos will play at true full screen, and sometimes you’ll end up with a large black border around the sides of the video. This is frequently true with many web-based streaming movies, or when playing video that is lower resolution in general. Some playback apps like QuickTime and VLC have the ability to play video at 1.5x and 2x resolution to solve that problem, but for web players and other apps you can just use screen zoom instead.

First, let’s enable screen zoom if you haven’t done so yet:

Open System Preferences from the  Apple menu and choose “Accessibility”
Choose “Zoom” and enable the zoom features, choose either the keyboard shortcut or zoom gesture option


Optionally, check the “Smooth Images” option to attempt to have less pixelation when zoomed in, though this tends to blur the picture for heavy zooming and can look strange. You’re better off trying this out yourself to see if it works for the video you want to watch.

Now to put this to you use, play back a video as usual either from a web player or movie file, center the mouse cursor in the middle of the video, and now use the zoom feature to eliminate the black borders. For those who enabled the gesture option, this is done by holding the “Control” key and then using a two-fingered upward gesture to zoom in (or two finger down to zoom out).

For example, this video of an older NOVA Origins video is fairly low resolution, and when maximized in the web-based player it still won’t play at full screen. This is a perfect situation to use screen zoom for, which turns this:

Into this full-screen maximized version, simply by zooming in on the playing video:

Much better huh? It won’t do a anything to resolve the lower resolution playback, but at least it doesn’t have the large black bordering bars showing alongside all of the video, making the playback itself smaller than it needs to be. Sometimes just increasing the web browser zoom works too for just web video, but that shouldn’t be considered universally reliable enough to recommend for all situations.

That should be about it, enjoy your Mac-TV hookup, go watch some movies, browser the web on an enormous screen, game on the big screen, and have fun!

Sidenote: If you happen to have an Apple TV and a Mac running 10.8 or later, you can just use AirPlay Mirroring and do this entire thing wirelessly without the need for any cables or HDMI adapters. Typically AirPlay offers excellent video playback, but on weak wi-fi signals the connection can suffer, which is never a problem with a physical HDMI cable. Plus, the combination of an HDMI adapter and cable is about 1/10th the price of an Apple TV box, making the method offered above a much more economical choice.

Free Up Inactive Memory in Mac OS X with Purge Command

via OSXDaily


Mac OS X has fairly good memory management but it’s not perfect, and sometimes RAM can be held unnecessarily in the “inactive” state despite the contents no longer being needed. If you’ve been participating in memory heavy activities or you just need to free up some available RAM you can actually force Mac OS X to clear out inactive memory.
Launch Terminal, found in /Applications/Utilities/ and enter the following command

Give OS X a minute or two to complete the process
Open Activity Monitor to see the before and after results yourself, you’ll find dramatic changes at the “Free”, “Used”, and “Inactive” meters under System Memory.
The purge command forces disk and memory caches to be emptied, offering a ‘cold disk buffer cache’ which is similar to the state of the operating system after a reboot. Of course, the benefit of using purge rather than rebooting is that you don’t have to restart the machine and you can maintain currently active applications while still freeing up memory.
This is not necessary for most Mac users, but power users and those with heavy memory demands will undoubtedly find this command helpful in the future. If you feel like you are frequently hitting a memory ceiling learn how to check if your Mac needs a RAM upgrade and consider upgrading, it can dramatically improve overall system performance.
Note: You may need to have XCode & Developer Tools installed in order to use the purge command, that can be downloaded for free from the Mac App Store.

Verifica se il tuo mac è stato infettato da troyan flashback

Via ispaziomac/spidermac

Il team di sviluppo del ben noto antivirus per mac “Intego” ha appunto scoperto un nuovo lato nascosto del Troyan FlashBack che negli ultimi tempi affligge numerosi sistemi Mac.

La variante A del virus FlashBack si introduceva nel vostro sistema attraverso alcuni bug del vostro FlashPlayer, una volta scovata questa falla e riparata il virus non si è arrestato, anzi ha migliorato le sue capacità evolvendosi in una nuova variante denominata FlashBack G.

Questa nuova variante sfrutta Java al posto di FlashPlayer ma il succo del discorso è sempre lo stesso, tramite il camuffaggio da aggiornamento, l’incauto utente installava volutamente il malware sul proprio sistema.

Intego ha però divulgato un metodo per verificare se appunto il vostro computer Mac sia infetto o meno dal suddetto virus e la stessa Intego ha già fatto sapere che il suo software VirusBarrier X6 è in grado di rilevare Flashback se è installato, e persino impedirne l’installazione.

Come parte del suo processo di installazione, il malware mette un file invisibile nella cartella /Users/Shared/ del vostro sistema, il nome del file può variare, ma utilizza un’ estensione di tipo “.so“.

Il Trojan installa altri file in:




E posiziona un applet Java in ~/Library/Caches.

Per capire se il vostro Mac è stato infettato dal virus FlashBack è sufficiente inserire il seguente comando nel vostro Terminale:

ls /Users/Shared/.*.so

Se la risposta che appare nel Terminale è “No such file or directory” NON siete stati infettati.

Se invece viene visualizzato un elenco di uno o più file con estensione .so e nessuna frase “No such file”, siete stati infettati dal malware.

Se si scopre di essere stati infettati, dovete rimuovere i file a cui si fa riferimento sopra o installare un software antivirus come Intego.

Spesso si dice che un sistema operativo evoluto ed avanzato come Mac non possa essere infettato dai virus presenti in rete ma in realtà questo tipo di affermazioni risultano azzardate e poco fondate.

Un sistema operativo è parte integrante del nostro sistema, come tale esegue continuamente comandi macchina in grado di comunicare con il kernel installato sul vostro sistema, così facendo una qualsiasi applicazione che esegue determinati comandi avrà facoltà di interagire in maniera benevola o malevola sul vostro sistema operativo, compromettendone o migliorandone l’intero funzionamento.