Sunday, July 24, 2011

Creating a Symbolic Link

This walkthrough was a little bit complicated for yesterday's SSD setup guide, so I made a separate post for this specifically. If you are running a computer with an SSD and an HDD, obviously you want to keep the larger files on the HDD. However, certain files and folders are needed by applications so that they can run properly. You can't just simply move those folders because then the application won't run properly. Certain apps such as Steam, iTunes, even iPhoto, all store information in your home directory. This is fine on an HDD, but on an SSD where you have minimal space this is not ok. So, how do we move these files? We have to create what is called a Symbolic Link. What this will do is make the OS "think" the files are in the right place, when really you are directing it to the HDD instead of the SSD. This does use terminal, so if you are not comfortable with using terminal I suggest you get comfortable soon, or deal with the space issue you have another way.
1. Find the folder you would like to move. I am going to use my iTunes Music folder located in /User/*insert your username here*/Music/iTunes

2. Copy that folder that you have chosen anywhere you want on your HDD

3. When you are done copying, open up terminal. We want to delete the previous folder, so type:
cd /User/*insert your username here*/Music/iTunes
That will make sure terminal knows what folder we are in. Next type:
sudo rm -rf iTunes Music
It will ask you for your password, and then it will delete your iTunes Music folder from your SSD.

4.Now we have to create the Symbolic Link. Before moving forward, make sure terminal is still in the folder iTunes since that is where we are making the link. If you are doing this for something else, just make sure that you are in the folder that the original file (the one we just deleted) was in. Here is the difference between being in a folder and not being in a folder in terminal:
Notice one says desktop and the other doesn't.
Now, while in the folder type the following into terminal to create the Symbolic Link:
ln -s /Volumes/*Name of hard drive you moved the file to*/path/to/the/file
For me, I would type ln -s /Volumes/Applications/iTunes Music
All we are doing here is telling the computer to make a redirect folder pointing to where we moved the folder to.

If everything went as planned, then you should have something that looks like this:
Notice the folder with the arrow. That is a symbolic link
So go ahead, and give it a try. Best of luck to those you want to do this. Took me a couple of tries to get it right.

~Dave

Saturday, July 23, 2011

Optimizing an SSD for Lion

TRIM
First and foremost, the one thing you must do after installing Lion is run Trim Enabler. What this does is enable the trim feature for your SSD if it is a non-Apple certified one (e.g if you bought something like an OCZ or a Corsair drive). Without trim enabled, you will wear down your SSD faster because the SSD will have to re-write information a lot more. What trim does is when you delete a file it is completely removed from the memory block. However, without trim, the SSD will think the file is not in the memory block, even though it still is. That means that when a new file has to be written, the no trim SSD will have to delete the old file and write the new one, where the trim SSD just has to write the new one.

HIBERNATION OFF
When OS X goes to sleep normally, it uses hibernation mode. This is ok on a HDD as you have a ton of space. However, on an SSD you don't have a ton of space and every byte counts. When hibernation mode is enabled, your computer will write all the contents of your RAM to your SSD. That means if you have a total of 8 GB or RAM, it will be written to your SSD. That is a lot of space to lose to RAM. We want to turn this off, so go ahead and open up Terminal.
Note: The $ sign is not required as part of the code.
1. In Terminal type the following:

$ sudo pmset -a hibernatemode 0
This will then turn off hibernation.
2. Next we have to remove the old file (you may not have a file to remove if you just installed Lion and haven't put your computer to sleep yet). To remove the file type into Terminal the following:
$ sudo rm /var/vm/sleepimage
And that is it, you will now have no hibernation on your computer!

HARD DRIVE SLEEP
By default OS X enables the command to put your hard drive to sleep when inactive. However, SSDs don't need to be put to sleep. Some even are known to freeze up when put to sleep. To disable this, simply go to System Preferences->Energy Saver and disable it. If you are on a laptop, make sure to disable it for both with and without the power adapter.

SUDDEN MOTION SENSOR
Another feature that is Hard Drive specific. This feature prepares a HDD for impact if it detects the computer falling suddenly. The features will disengage the hard drive head and stops the disks from spinning. With an SSD however, there are no moving parts, so this command is useless. To turn it off, type the following code into Terminal:

sudo pmset -a sms 0

DISABLE SPOTLIGHT
If you don't search your computer a lot, then you have not reason to let spotlight index your computer. Simply turn it off by typing the following into Terminal:
sudo mdutil -a -i off

I hope these tips help you out there who wanted to optimize your SSD for Mac.

~Dave

Friday, July 22, 2011

Installing Lion

The installation of Lion was a smooth and painless one. After making the $30 purchase from the App Store, it only took about an hour for me to download it. The download is added to your applications folder, and will launch when done. Once you click through the installation screens, Lion will say "setting up". What most people don't know about this faze is that when Lion says "setting up", it really is partitioning your drive to add a recovery partition. You may wonder "Why do I need a recovery partition?". Well let me remind you, you don't have an installation disk. With out an install disk you can't recover right? Because of this, Apple added the ability to have the installation disk stored in a recovery partition. Pretty nifty right?

After that your computer will restart and from there you just select the Hard Drive (or Solid State if you are using one) and let Lion install. It can take anywhere from 20 minutes to maybe an hour depending on your hard drive speed. It took my SSD about 15 minutes to install. After that, the computer will reboot and you are good to go!

I will go over some SSD tweaks tomorrow, and later this weekend I will go over the new products from Apple.

~Dave

Wednesday, July 20, 2011

Lion unleashes its "Roar".

As I write this, the Apple Store website is currently down. Suspected to be coming out of this downtime are new Macbook Airs as well as new Mac Minis. What is confirmed as coming out of this down time is OS X Lion. Lion is the next installment in Apple's major operating system releases, and brings a slew of new features, as well as kills some old ones. For example, Launch Pad will be a new way to open applications, however something like Front Row will no longer exist. Lion will be digitally distributed through the Mac App Store, not through physical copies. However, if you search around, there are tutorials on how to make an OS X Lion install disk. Another thing to consider is that once you update your Mac, if you are running an SSD it is best to do a clean install. In addition, make sure you google how to tweak your SSD for OS X. Later this week I will write an article about that, I have to go through the process myself first. Lion will run you about $30, so be ready.

~Dave

Tuesday, July 19, 2011

Flash on the iPad

No flash on the iPad. That is what you are told to believe. That is all fine and dandy, but if you look around (legally of course) there is a work around. This work around is an app called Photon Flash. Photon Flash is a web browser that allows you to stream flash to your device. The app is great in the way that it allows you to use it as a normal web browser, and when you come across flash you can activate it at any time. All you have to do is tap the lightning bolt button in the top right. The page will then reload and say "Now streaming flash content" and the flash content will be there. Since it is streaming, you won't get perfect frame rates, however it does a pretty decent job of handling flash. You can watch videos, look at ads, even play online flash games. Your games, however, may be limited since you can't make a lot of quick actions. That means you can't really play any games that need a lot of mouse movement.

Another neat aspect is that the app allows you to call upon a keyboard when ever you need. This is particularly great for playing games when you need to have to use multiple keyboard commands at once. The app does come with some stability issues, and crashes every once and a while. I would say that this is the best way to browse with flash on an iPad. For $4 you can pick this app up in the App Store.

~Dave