Archive for MacBook tag

MacBook Pro 256GB SSD upgrade experience

April 9th 2010 • Apple, Hardware (, , , , ) • 14,103 views • 16 responses

I’ve been wanting an SSD for some time and last week I caved. Armed with credit card, screwdriver and trusty MacBook Pro I fitted a sweet SSD and decided to document the experience.

Choosing a drive

There are a bewildering number of options out there. Budget, as always, dictates the combination of speed and size available.

Size

You may not need as much space as you think so even if you intend on a fresh install clean-up your current drive to get an idea of requirements.

Remembering to backup before:

  1. Identify biggest culprits
    Try DaisyDisk ($19) or Disk Inventory X (free) and drill down to catch unexpected bloat in your music library, videos etc.
  2. Clean up unused system junk
    Use CleanMyMac ($30) or MonoLingual (free) to clean up logs as well as redundant processor and language support.
  3. Archive unused content
    Move those podcasts, TV shows, applications and games you aren’t going to use again to cheap external drives.
  4. Deal with orphaned & duplicate files
    Find media in your iTunes folders missing from iTunes lists and either trash or add it back then use iTune’s Display Duplicates.

If you’re prepared to sacrifice your DVD drive then you can move your existing hard drive to the optical bay via an adaptor and purchase a smaller SSD for the OS and key performance-critical files. This saves cash and gives you more space but will cost you battery life.

Speed

SSDs are not created equal and the combination of flash and controller (on drive and in your machine) play a part in defining performance. Firmware, hardware revisions, drive size and operating system can also affect the speed so do your homework.

Anandtech have in-depth coverage of SSD’s including an SSD Bench with Tom’s providing a more general SSD Buyer’s Guide. Drives come and go quickly so keep an eye on review dates and exact model numbers as manufacturers have models with similar names with difference specifications.

My choice – lightning giant

I settled on the Crucial RealSSD C300 (CTFDDAC256MAG-1G1) because of it’s blazingly fast 256GB configuration and my storage requirements were still around 150GB.

This combination doesn’t come cheap at $699 USD. My links to the Crucial web site include my affiliate code ever optimistic I’ll get a small commission on a drive or two. (I dream that one day my blog will cover it’s own hosting charges)

Some other popular alternatives

  • Intel’s X-25M G2 is well regarded and can be had for around $430 for 160GB and $210 for 80GB
  • Intel’s X-25V (for value) can be had for around $120 for 40GB
Don’t go with Apple’s factory-options for an SSD as they use slower Samsung drives and charge a premium for it which is unacceptable especially given how easy they are to replace.

Installing my SSD & Mac OS X (without a DVD drive)

The newer Unibody MacBook Pro’s hard-drives are designed to be user-replaceable and are covered in the manual.

My non-Unibody is not however those nice chaps over at iFixit have put together a hard drive replacement guide for 15” that is close enough but I have one complication. My DVD drive died which raised the question (and subsequent section)

How do I install Snow Leopard without a DVD drive?

Remote Install

Remote Install let’s you put the a DVD into a machine with a drive, run Utilities > Remote Install and follow a few steps which include holding down the alt key on the machine that doesn’t have a drive.

Unfortunately the machine wanting to boot has to be a Mac mini or a MacBook Air from 2009 or later – i.e. something Apple shipped without a DVD drive.

NetBoot

Mac’s can boot from network images however there are also obstacles here:

  1. Apple’s official Netboot server is part of Mac OS X Server and that costs $499
  2. The only unofficial server-less guide I could find is out of date  (nicl & NetInfo were deprecated in Leopard)

You will also need to create an image of the Mac OS X DVD to be able to install from.

USB image

Your USB device will require over 6.2GB to fit the image of Snow Leopard and need to be partitioned with GUID Partition Table which will wipe it. My 4GB memory stick was too small and I didn’t want to wipe my 1TB external drive so ended up using my 8GB Compact Flash card.

To get the Snow Leopard DVD copied to it:

  1. Use a Mac that has a DVD drive and insert both the install DVD and USB storage device
  2. Launch Disk Utility from the Utilities folder
  3. Select the USB storage device from the list of devices and then choose the Partition tab
  4. Choose 1 Partition from the Volume Scheme drop-down
  5. Press Options… choose GUID Partition Table then OK
  6. Press Apply to confirm you are happy to wipe away all the data on the device
  7. Select the install DVD from the list of devices and then choose the Restore tab
  8. Drag the install DVD from the list of devices into the Source text box
  9. Drag the USB storage device from the list of devices into the Destination text box
  10. Press the Restore and wait a while

When finished eject the USB device and insert it into your DVD-less Mac. Turn it on holding down alt until a boot selection screen shows and use the arrow keys and return to launch the installer from your USB device.

It may take a while for the installer screen to appear but be patient.

Press Options… from the installer to turn all off all the features you don’t need such as additional languages, printer drivers etc.

Open the Installer Log window and set Detail Level to Show All Logs to see more granular progress – useful if installing from silent media like networks or flash.

Performance over time & TRIM

A simplified primer

SSDs are fast but the flash technology suffers some limitations most importantly they can’t overwrite data without erasing it first.

In order to avoid this performance hit, and to preserve the life of the drive itself as blocks can be erased a fine number of times, SSD drives use fresh blocks for as long as they are available. Once they run out every write has to take the hit of an erase and performance can drop to traditional hard-drive speeds (or worse).

The problem arises sooner than you think because file-systems when deleting a file do not actually cause an erase but rather just de-allocate the block knowing it will get overwritten when it’s next needed so these fresh blocks decrease over time even if you drive never gets full. (Which is how file-recovery tools are able to undelete files)

This doesn’t sound too bad until you realise that when erasing a file in an operating system the file system just removes the block from it’s own list to be reused later and therefore the drive itself has no knowledge that the block can be erased until it runs out and starts honoring overwrites.

The solution

Manufacturers initially solved this problem by writing tools (for Windows) that examined the file-system structures to find out which blocks are unused so they can send ‘erase block’ commands down to the SSD drive and get your performance back – at least until you run out of blocks again.

This wasn’t a great solution so they agreed on a standard called ‘TRIM’ that lets file-systems tell the drive when blocks are no longer and can be erased in background on-demand. Support was built into Windows 7 and Linux 2.6.28 making a lot of SSD owners very happy.

Mac OS X & TRIM

Mac OS X doesn’t yet support the TRIM command although one Apple engineer confirmed they are looking at it back in October. They’re in no hurry as the SSD drives Apple ship don’t support TRIM yet.

In the mean time you might want to minimize unnecessary writes:

  1. Don’t use Finder’s Secure Empty Trash or the srm command line tool – the overwriting they did on magnetic drives doesn’t overwrite on SSD but steals up to 35x the blocks of the original!
  2. Keep large churning files on external drives (e.g. video processing)
  3. Don’t let your laptop run out of power as it copies the RAM to disk each time (2-8GB)
  4. Prevent unnecessary disk operations such as the ‘last accessed’ attribute on files (see below)
  5. Don’t keep running disk benchmarks that cause lots of writes!
Don’t be tempted to try and use one of the manufacturers Windows tools from your BootCamp partition as they only understand NTFS and FAT and won’t be able to even figure out which blocks can be erased as Mac OS X uses it’s own HFS+ file system.

Turn off last-access-time

These access times are pretty useless and indeed the iPhone also has them switched off. Create a file named noatime.plist in your /Library/LaunchDaemons path with the following contents:

<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>noatime</string>
    <key>ProgramArguments</key>
    <array>
      <string>mount</string>
      <string>-vuwo</string>
      <string>noatime</string>
      <string>/</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
  </dict>
</plist>

Thanks go to Ricardo Gameiro for that tip although his other Mac SSD tweaks of creating a RAM disk is questionable given the way Mac OS X manages memory and disabling the RAM copy-to-disk entirely and therefore losing data is more risky to me than running out of blocks early.

Do not

  • Turn off the sudden motion sensor – SSDs ignore the park head command anyway
  • Turn off HFS+ journaling – some users report odd issues and corruption

Last resort

If you do get into the situation where your write performance is suffering badly and you are prepared to spend a little time to get it back you can do the following:

  1. Ensure you have a full Time Machine backup
  2. Boot from a Linux Live CD containing a recent build of hdparm
  3. Use hdparm to perform an ATA Secure Erase
  4. Boot from your Mac OS X DVD/USB stick
  5. Choose the Utilities > Restore System From Backup menu option
  6. Point it at your Time Machine backup

You should also be able to do this with other full-system backup tools like SuperDuper but you’ll have to figure out the steps for yourself ;-)

Performance

I wish I had some better benchmarking tools but Xbench is all I have, sorry! It’s worth bearing in mind that the non-unibody MacBook Pro I have (MacBookPro3,1) is limited to 1.5GB/sec on the SATA bus (despite having an Intel ICH-8M SATA controller)

Xbench HD Test

My original performance figures with the original as-shipped 0001 firmware and Crucial’s updated 0002 firmware:

0001
Sequential
0001
Random
0002
Sequential
0002
Random
Overall 137.66 643.14 137.39 648.57
Uncached write 4K 200.40 762.30 185.92 789.45
Uncached write 256K 196.34 357.61 196.05 359.23
Uncached read 4K 67.56 1926.31 69.27 1942.94
Uncached read 256K 239.73 628.06 238.22 624.15

Thoughts

SSD is fast but given the hype I was expecting everything to be instant and it wasn’t quite there. Applications do normally launched within a single dock bounce and everything feels a lot snappier but there wasn’t the massive WOW! I was expecting – at least not yet.

There are also a few other advantages often overlooked, especially on a laptop:

  • lower power consumption
  • less weight, noise & heat
  • greater shock, dust and magnetic resistance

Here’s a table that pulls the specs compared to the 7200RPM Travestar that was previously my main drive.

Crucial RealSSD C300 256GB Hitachi Travelstar 7K320
Power consumption (W) 0.094 – 2.1 – 4.3 0.2 – 2.2 – 5.5
Weight (g) 75 110
Shock resistance (G/1.0ms) 1500 200
Noise (Bels) 0 2.8
Seek time (ms) < .1 12

Time will tell how well the machine now deals with large Aperture libraries of RAW images and Visual Studio compilations from inside Parallels and I’ll be sure to report them here.

[)amien

New iMac available only with glossy display

August 8th 2007 • Apple (, , , ) • 861 views • 4 responses

Showing the glossy MacBook screen When I use a computer I want to view my email, pages and work and not watch a light-show of what’s going on behind me. Glossy displays are therefore rather unappealing and Apple’s latest iMac update has me suitably worried.

First it was the cheap-end MacBooks available only with a glossy display, then it was an option on the MacBook Pro and now the iMac is blemished with its mirror-like display (and downgraded video card from Nvidia 7300 GT to ATI HD2400 XT).

John Siracusa published a great article on Ars Technica last year called And we all shine on that covered the subject in some detail including his take on the reasons why they are popular.

John believes it comes down to shopping being an emotional experience and not a logical one with shoppers easily distracted by shiny things, loud things and bright things all of which they irrationally consider ‘better’ without a thought. This translates to purchases of reflective laptops, deafening speakers and glaring TV screens being purchased over devices that deliver solid, accurate and balanced results.

It is a sad state of affairs if we consumers are nothing more than magpies with wallets.

Do the purchasers of these devices not find their eyes and ears fatigued by the strain of dealing with displays that glare and require the brightness whacked up or speakers that sound so muddy you can’t make out detail?

The only hope is the mention of "glass cover" and "SiO2" on the iMac page. Perhaps Apple has worked out how to increase contrast without introducing copious amounts of glare by using glass rather than plastics but I doubt it.

Still iWork 08 and iLife 08 look great and the keyboard will be worth trying although I doubt it feels as good as the Das 2.

Shame Apple are still locking out Channel Islanders from their on-line store, even when it is just to purchase a serial number. Guess I’ll have to wait a couple of days for iQ Guernsey to get some in.

[)amien

Keeping an eye on the MacBook/Pro temperature

June 29th 2006 • Apple, Hardware (, ) • 1,352 views • no response

As most people know these things run quite warm but at last two applications are available for getting hold of those elusive CPU temperature figures.

When in Mac OS X grab a copy of the free CoreDuoTemp.

In Windows the excellent (but not free) Everest 3.0 will reveal each core’s temperature individually as well as more detail about your machine than you ever cared to know.

[)amien

Hardware hacking the MacBook movement sensor

May 29th 2006 • Apple (, ) • 1,667 views • one response

Developers keep finding new and unexpected uses for hardware and software – seemingly never more so than on the Mac and OS X.

Whether they’re using the iSight camera to scan bar codes into your Delicious Library or turning the AppleRemote into a alarm key-fob in TheftSensor there’s always some novel hack around the corner for the latest bit of kit.

Current attention is focused on the motion sensor added to MacBook and MacBook Pro’s that is used to park the hard-drive should sudden movement be detected.

In true Apple fashion rather than add a simple yes/no movement sensor the device can detect tilts and both the X and Y axis as well as the current level of force.

With a little imagination those enterprising third-party developers have come up with…

Sudden Motion Sensor
Amit Singh is a man with a mission – which is just as well because he doesn’t have a MacBook or a MacBook Pro. So quite how he’s written a bunch of fun apps and a useful command line motion sensor tool is another matter.

Amit includes some technical coverage of the sensor and how it works over the I2C bus Apple also use for temperature sensing, fan control etc.

He also has a useful command-line tool and some fun hacks such as showing a MacBook Pro in 3D oriented as yours currently is and a window that self-adjusts itself to always be horizontal. Alas, at least on my MacBook Pro, the X axis seems to be inverted and the invert X axis didn’t work so the effect fails to impress.

More interesting is his page on using the motion sensor as an input device. While not as advanced as the Nintendo Wand – it doesn’t support detection of position – it still holds some promise as he illustrates.

MacSaber
With the sensor sporting a force level it was only a matter of time before somebody used that sensor magic to come up with something like MacSaber.

The sole purpose of this app is to make your $2,000 laptop hum like a StarWars lightsaber as you swing it dangerously around the room with a satisfying tzzzzum and sheuw.

Just don’t rely on the midichorians to stop your MacBook slipping through your fingers…

SmackBook Pro
You might be thinking this sensor is nothing but a curiosity but SmackBook Pro illustrates a rather novel use to desktop switching.

Desktop switching is one of those problem areas for short cuts. You might be using any one of tens of apps and finding a good shortcut that’s not taken by any of those applications could really be a problem.

SmackBook Pro’s solution is to tap the side of your machine to switch desktops and the way the new desktop flies in from the side is a great visual indicator of what has just happened as the video illustrates.

I’m not sure constantly tapping the side of an LCD is good for it’s health.

Update: Many more hacks to be found at Raul’s blog.

[)amien

Apple MacBook released – cheaper than comparable Dell

May 16th 2006 • Apple, Hardware (, ) • 1,262 views • 3 responses

Apple have released their MacBook to compete on the low-end with similar PC laptops. I thought I’d compare it to a very similar Dell offering by using the Apple and Dell web sites…

Dell Inspiron 640m Apple MacBook
Processor Intel Core Duo Intel Core Duo
Processor speed GHz 1.83 1.83
Operating system Win XP Pro Mac OS X
Warranty 1 year 1 year
RAM size MB 512 512
RAM speed MHz 553 DDR2 667 DDR2
HD size GB 60 60
HD speed RPM 5400 5400
Optical 24xCD-RW
8xDVD
16xCD-RW
8xDVD
Screen size 14.1″ 13.3″
Screen res 1280×800 1280×800
Modem Yes No
Bluetooth No Yes
Wireless Mb 54 54
Battery Whr 53 55
Ethernet Mb 100 1,000
Height mm 38.6 27.5
Width mm 333 325
Depth mm 243 227
Weight kg 2.5 2.36
Audio-out Stereo jack Optical + stereo jack
Audio-in Mono jack Optical + mono jack
Video-out S-Video Mini DVI
Camera No Yes
Extras Works 7
5-in-1-media
iLife 06
Apple Remote
MagSafe power
Price – VAT £642.34 £637.45
Price + VAT £754.75 £749.00

That’s right, the Apple comes out at £5 cheaper.

In Dell’s favour is a .7″ bigger screen, modem and a card reader.

In Apple’s favour is Bluetooth, iLife 06, media center features, remote control, web camera, DVI and optical outputs, faster networking, bigger battery, faster RAM and a smaller and lighter package.

No doubt the anti-Apple brigade will find something to whine about but it certainly can’t be that it doesn’t run Windows.

[)amien