Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Sunday, May 4, 2014

On the Mac : Macbook Air and Macbook Pro SSD Upgrade Kit

Good news fellow Mac users. A couple of days ago, Transcend announced a series of SSD upgrade kits for some of the Macbook models. Specifically -

  • Late 2010 and mid-2011 Air - JetDrive 500
  • Mid-2012 Air - JetDrive 520
  • 2012 and early 2013 rMBP - JetDrive 720
The JetDrive 500 comes in 240/480GB while the 520 and 720 comes in 240/480/960GB versions. For more details on the specifications and compatibility, you can refer to the Transcend JetDrive Product page. In short, all the non-PCI-e SSD based Macs will find one model which suits it. Transcend said you'll have to wait a while for the PCI-e version for the mid-2013 Air and rMBPs.

The kit comes with all the tools that you need to open up your Mac, be it the Air or rMBP. It also includes a nice little housing where you can pop in your original SSD and turn it into an external drive with a USB3 connector. Follow the video posted on the Transcend page for the installation instructions.

When you're done, do remember to set your spanking new drive as the boot disk and also install the Transcend toolbox software that comes with the kit. This toolbox software will enable TRIM on your new SSD. For those who are wondering why we have to do this - because Apple does not like 3rd party SSDs and will not enable TRIM on them. SSD without TRIM is not the wisest of choice to make.

Initial reviews from some early adopters are very positive, including ease of installation and better performance than the stock Apple SSDs.

Transcend made all these models available on Amazon -
At this point, all the base models list at $189.99 and some models has a ship time of between 2-4 weeks. All qualifies for free international shipping to Singapore. Take note that only the 240GB versions are GST exempted while the 480/960GB version attracts import tax.
This is definitely going to give my 128GB mid-2011 Air some new lease of life.

Monday, February 24, 2014

On the Mac : Mavericks and Safari TLS/SSL exploits

OK, I noticed about a third to one half of my audience reads this blog on iOS devices and Macs. I guess it makes sense since no Windows users will be interested in these 'On the Mac' series of articles. If you have not notice already, Apple quietly releases iOS 7.0.6 and 6.1.6 over the weekend to address a vulnerability in the underlying SSL implementation framework.

My advice to all of you : Just Patch It. If you have iOS 7, upgrade now to 7.0.6 and likewise if you iOS 6, upgrade to 6.1.6. The vulnerability is serious enough for Apple to warrant a standalone iOS release, even for iOS 6. Apparently, iOS 5 is not affected. More information at HT6147.

It has also been discovered that the same vulnerability exists on Mavericks. There is no patch at this point from Apple so you have to stay tuned for updates as to when this patch will be made available. Meanwhile, you can try to mitigate the risk by not hooking up to public Wifi systems (where the exploits are most easily executed). Perhaps you can just use FireFox or Chrome for now until Safari is fixed.

Update : Apple has rolled out Mavericks 10.9.2 which contains the fix for the TLS/SSL vulnerability.

Monday, December 23, 2013

On the Mac : Windows, VMs and Flash Drives

If you do not prefer the Bootcamp approach describe in my other article, obviously you can just run Fusion or Parallels and have a virtual Windows environment running alongside your Mac. But again, due to the precious disk space on some Airs, carving out this 20GB to run a VM might not be something you can afford. In reality, this article also applies to Windows laptop with a similarly sized SSD on board. If you have such a machine and just need another Windows VM for testing, continue reading.

Now, there are obvious workarounds to this problem. You can, for example, run it on an SD card or run it on a thumb drive or external portable disks. If you can use an external portable disk, it'll be the most economical way. Read my other article about them. There's one problem with running it off an external disk. It's not exactly very portable since you have to move around with the drive attached to your Air (or laptop). It works, but there's this caveat. If you're going to be sitting on your desk while running the VM, then I think this approach works well. It's not going to be very high performing, but it's reasonable. I do have a few test VMs running off 'Desktop' class external disks.

I've hunted for some time since getting the Air, for a thumb drive/SD card that is reasonably fast so that I can just stick it to the USB port (or SD slot) and carry it around with me. SD card never works, period. They are just too slow. I must admit that I haven't really tried many of them, but I don't really want to waste any more money. The seriously fast ones (as claimed by Sandisk) cost multiple dollars per GB. Unless Sandisk wants to send me one to play with, I'm not going to outright buy them and pray that it works. For the record, I tried a Sony Class 10 and an HP Class 10. Both are 32GB, and both never complete the Windows installation after 1 hour, as far as I can remember.

So I'm left with thumb drives. I had a SanDisk Ultra 64 GB USB Flash Drive SDCZ45-064G-U46 at that time and I decided to try it. It's ok, but still slow. I didn't wait for the Windows installation to complete. I ended up putting Diablo III client on that thumb drive. Yes, that works reasonably but you can get killed due to disk read latency. I know I did a few times. At this point, I realized what I need is something which performs well for small I/O read/write. And it just happens that SanDisk announced their latest thumb drive, the SanDisk Extreme 64 GB USB 3.0 Flash Drive up to 190 MB/s SDCZ80-064G-X46. This is an interesting drive. It sports an USB3 connection and some insane claimed transfer speed. And the best part? It costs about SGD1.4/GB locally here.

I began trawling the web for benchmarks. I found exactly 1 (I can't remember the site, sorry, but it compares this drive with a ton of others). Remember this is more than a year back (probably towards the end of 2012) and USB3 drives with real performance isn't that common place. Most USB3 drives at that time are just their standard USB2 parts retrofitted with an USB3 port. I knew this drive is going to be the one when I saw the benchmarks. The CDM 4K readings are unheard of. They read close to 10MB/s write with the default 4K test. You just have to trust my word as I don't have the URL anymore. Just for comparison sake, almost all flash drive at that time managed barely 1MB/s read/write on the default 4K CDM test.

I took the leap of faith and buy the 64GB version. I popped it into the Air's USB2 ports, format it to HFS+ and straight away put a Fusion VM on it running Windows 7. The speed is incredible, even on an USB2 port. It feels faster than those VMs running off normal external disks. I've been running my primary Windows VM on this drive since. After a year of hard hammering, it's getting slower and slower. I've yet to research this. You can start to feel the momentarily freeze at times, Outlook is not as responsive opening a cached Inbox etc. I'm not exactly sure why this is happening at this point. However, that said, it's still plenty fast mind you.

Even though I'm extremely happy with the purchase, there's a few things I ought to mention.

  • This drive is expensive! Price is relative when I said it cost SGD1.4/GB. The other 'normal' flash drives cost like SGD0.80/GB. Price is lower now compared to a year ago.
  • If you need to just copy huge files back and forth, you might want to look elsewhere. This guy doesn't score number 1 in sequential transfer. Nor is it the most cost effective for bulk storage.
  • This drive shines only if you have a workload which requires small random read/write IO. Running VMs off it is one example.
If you skip all the post and come straight here, I'll say just buy this guy to run VMs off it. You won't go wrong. 

Friday, December 20, 2013

On the Mac : Bootcamp, Thunderbolt and SSDs

I'm going to side track and talk a little bit about my experience trying to bootcamp my MacBook Air (mid-2011). Now, I'm sure everybody with a MBA that sports either 64GB or 128GB of internal storage will be able to attest that we are always doing some house keeping to prevent our apps from overwhelming the puny storage. I am no different, especially when I also need a Windows environment to get some of my work done.

In short, I'm ill equipped to run a VM using the internal disk. Fusion wants 20GB (which I think is reasonable for a Windows 7 Setup) and that will leave me with even less storage to deal with. The options I have is either run the VM off a USB stick (which I eventually did and will be a story for another day), or run the VM off the Thunderbolt port, which I did as well, but it's a little clumsy and not exactly very portable.

But what if I want to 'boot camp' and play some Windows-only games? The storage consideration alone will be daunting as there's really no way both partitions can fit into the internal 128GB SSD. Not for me at least. And so I have a thought, to simply put the Windows partition on its own disk and run it off the Thunderbolt port!

First, let's talk a little about the hardware I actually use. I opted for an SSD instead of a traditional spinning disk for obvious reason. In my case, I picked Intel 530 Series 240GB 2.5-Inch Internal Solid State Drive (Reseller Kit) SSDSC2BW240A4K5.

Now, I need some kind of a disk enclosure or an adaptor which can convert the Thunderbolt port to a SATA port. Seagate has exactly this contraption, Seagate Backup Plus Portable Thunderbolt Adapter (STAE128). This adaptor is actually designed for the Seagate Backup Plus Portable series of external disk drives. This family of external drives (sans the newer 2TB versions) come with a detachable USB3 dongle, which you can remove and expose the naked SATA connector on the disk itself. You then plug this into the adaptor and it will then becomes a Thunderbolt portable external disk. Neat! And since the connector on the adaptor is a standard SATA connector, you can plug any standard SATA 2.5" disks to it and turn it into a Thunderbolt portable external disk.

There is one caveat. The adaptor itself does not provide 12V power and as a result, it is unable to power certain drives, notably the Seagate Constellation.2 1 TB 7200RPM SATA 6Gb/s 64MB Cache 2.5-Inch Internal Bare Drive ST91000640NS. This guy requires both 5V and 12V rails to be available and will not work with the adaptor.

So now I have these, how do I put Windows on it? We're going to make use of a lesser known technique in the consumer world to install Windows : Windows Automated Installation Kit. Windows AIK tool is a free download from Microsoft, you can get it here. In reality, you only need 'imagex.exe' from the whole bundle so you probably can find just the binary alone by searching the web. In addition to Windows AIK, you'll also need Apple's Bootcamp drivers. It's easy to get the drivers, all you need to do is just run Bootcamp Assistant and it will download the correct drivers for your Mac. Put these drivers onto a thumb drive or something. Lastly, you'll obviously need the Windows installer itself. It can be a physical disc or an ISO image.

Next, you'll need a Windows environment to prepare the drive. It can be a physical desktop/laptop or a simple Windows VM. I'm going to assume you have access to all the components on the same desktop/laptop/VM -
  • Target disk drive you're putting Windows on
  • imagex.exe
  • Windows installer disc or ISO
Step #1. Wipe the drive and create a primary 350MB partition. Format it with FAT32 and make it Active. Assign a drive letter to it, let's call it 'B' (for Boot).

Step #2. Create a second partition consisting of the rest of the drive. Format it with NTFS. Assign a drive letter to it, let's call it 'W' (for Windows).

Step #3. Determine the INDEX number of the desired Windows edition you want on the Installer disc/ISO. You need to do this because your disc/ISO may contain multiple versions of Windows, like 'Professional' or 'Enterprise' etc. To do this, you need 'imagex.exe'. Assuming your disc/ISO is mounted on drive I:, the command to do this is
<PATH to IMAGEX.EXE>\imagex.exe /info I:\wim\install.wim
It will list out all the available editions you have on your current disc/ISO. The output is quite lengthy but otherwise very self-explanatory. Let's assume the edition you want is located at INDEX 0.

Step #4. Deploy Windows. The command to do this is

<PATH to IMAGEX.EXE>\imagex.exe /apply I:\wim\install.wim 0 W:


This will take some time so you have to wait patiently for it to complete.

Step #5. Install the boot sector.

W:\windows\system32\bcdboot W:\windows /f ALL /s B:
Once you reached here, you're done with the disk. Shutdown your Mac. Stick the disk onto the Seagate adaptor and plug the adaptor into the Thunderbolt port of your Mac. Remove ALL USB devices from your Mac now. USB connected drives will prevent your Mac from booting up from the Thunderbolt disk correctly. Check that you have nothing on your USB ports and also no SD cards in the SD slot (if you have one).

Boot your Mac and hold onto the 'Option' key. You know this will lead you to the Boot Drives selection screen. You should see a disk named 'Windows' along with your usual Mac boot disk and also the Recovery partition. Use your arrow keys to select 'Windows' and hit 'Return'. If you have done everything correctly as listed, your Windows partition will boot and installation starts. Just follow the on-screen instructions. It should be no different from a normal installation procedure.

At this point, Windows might reboot a few times during the course of installation. You have to remember to do the hold 'Option' key dance and select 'Windows' on the selection screen. After the installation completes, login and run 'setup.exe' from the Bootcamp Drivers thumb drive as Administrator. Follow instructions to complete the installation.

You should now have a fully bootable and working copy of Windows on the disk. Note that this procedure also works on a USB adaptor as well.

Something to take note -
  • If your installer is 64-bit, then you need 64-bit versions of everything, including BCDBOOT, Bootcamp drivers etc.
  • Make sure you don't have any USB devices attached when booting. Otherwise, it will not boot correctly.
Since this procedure works also for external USB disk, you can also use any of these types of disk. The BUFFALO MiniStation 1 TB Thunderbolt / USB 3.0 Portable Hard Drive with Thunderbolt Cable - HD-PA1.0TU3works pretty well. It comes with both USB3 and Thunderbolt connector. However, it is a spinning disk inside. If you must have an SSD, then using the Seagate Backup Plus Portable Thunderbolt Adapter (STAE128)might still be the best bet.