Wednesday 12 September 2018

Upgrading a PowerBook G4 with an SSD


A while back I bought an Apple PowerBook G4. A late-2005 high-resolution 1.67ghz 17" PowerBook G4, the last PowerBook before Apple switched from PowerPC to Intel. In its day it was a mutha; nowadays its performance is leisurely and very little software is still maintained for it, although in its favour the case still looks awesome. The 1680x1050 screen is almost but not quite HD.

I use it mostly as a giant iPod - I've downloaded a tonne of podcasts - but with TenFourFox it can still surf the internet. Debate rages as to whether it's best to install OS X 10.4.11 Tiger or 10.5.8 Leopard on older Macintoshes. Tiger is apparently slightly faster than Leopard, but having tried Leopard I didn't notice much difference. Feature-wise Leopard wasn't a great leap over Tiger, although as you will discover later in this post the Time Machine backup utility was very useful.


No amount of tinkering will make a fifteen-year-old G4 run quickly, but there are a few ways to speed it up. The easiest is memory. All of the aluminium-bodied PowerBooks take a pair of PC2-4200 DDRs. OS X enjoys lots of memory but sadly the G4 motherboard only accepts a maximum of 2gb of memory (1.25gb in the early 12" models), which was a bit stingy even in 2005.


The other big upgrade is a new hard drive. The 1.67ghz PowerBook G4 originally came with a 120gb 5400rpm hard drive, which was very good for 2005 both in terms of capacity and speed. Unfortunately G4 PowerBooks used the Parallel ATA IDE interface, which is a problem because PATA drives were discontinued several years ago.

In theory the most fuss-free way to upgrade the hard drive would be to fit a 7200rpm PATA Hitachi TravelStar or similar, but they're only available used, and I'm wary of buying a used laptop hard drive. How hard was it used?


There are other options. A Compact Flash card with an IDE adapter seems like a waste of a good Compact Flash card. There are a couple of PATA solid state drives on the market, but the reviews aren't great. Amongst the PowerBook cognoscenti the most popular choice is to use a little tiny Micro-SATA SSD mounted in an MSATA-IDE adapter, viz:

A 128gb Toshiba MSATA drive (bottom) beneath an MSATA-PATA adapter (top). You have to screw the MSATA drive into the adapter otherwise it sticks out at an angle. What kind of QC did the adapter pass? Who knows.

Some laptops take MSATA cards naturally. Modern Lenovo ThinkPads often have an MSATA slot for an SSD boot drive in addition to a 2.5" drive bay. But the PowerBook G4 predates MSATA so you have to use an adapter.

What is MSATA? It's a type of tiny SSD that uses the SATA standard, but it's tiny. You can also buy 2.5" SATA-MSATA adapters if you want to put an MSATA drive into a modern laptop.

The SSD in its cradle. One day I will remember that Philippines has one L and two PPs. One day.

The adapters are available from China via eBay. They cost about £3. Just search for "MSATA PATA". We live in a world where people in China can ship little electrical trinkets half-way across the world and still make a profit from £3. Somewhere out in the ocean there's a container ship ploughing through the waves, with a container filled with little electrical trinkets from China. I like to think about that when I go to sleep at night. A container ship driving through a rough sea. Someone has just brought the captain a mug of coffee. The wipers are trying to keep the bridge windows clear of spray. The weather radar shows better weather ahead.

Ordinarily when I replace a laptop's hard drive with a newer model, I clone the original to the replacement then swap them around. That's not possible with IDE, because there's no way to power the replacement drive outside the computer. I have a special set of cables that can power SATA drives and connect them via USB to a laptop, but 2.5" IDE drives don't support external power:

This is all well and good, but it doesn't power the MSATA drive. USB doesn't deliver enough power and there's no separate power header.

There are a couple of ways around this. If you've just bought a PowerBook G4 and you don't care about retaining any of the data, or if the seller reinitialised OSX, or indeed if it doesn't have a hard drive at all, you can simply put the MSATA drive into the G4 and install OS X from scratch. Note that the brand-new MSATA drive will be unformatted, so you have to pop open Disk Utility and format it as e.g. Mac OS Extended (journaled) before OS X's installation routine will recognise it.

To dismantle the machine I followed these instructions from iFixIt, although there's nothing conceptually hard about taking the G4 apart. You need a T8 Torx screwdriver head as well as a standard Philips head.

The G4's interior is as fascinating as its exterior. The orange-and-grey colour scheme is very attractive. This is the trackpad cable.

The edge of the keyboard. Note that the lid of the laptop's base comes straight off, and also note that the final 1.67ghz models had a slightly different keyboard than earlier models - the backlight was modified - with a slightly different part number. 

The original 100gb Ultra ATA/100 hard drive, now fifteen years old. It's noisy but still works. I'm going to put it in a desk drawer as a backup.

The interior, with a big hole where the battery goes. This is a good opportunity to blow dust out of the fans.

The MSATA SSD is much smaller than the PATA drive. Have you ever heard about Kure Kure Takora? It was a Japanese children's show from the early 1970s about a greedy octopus and his pals. The characters were played by actors dressed in large costumes, a la the Teletubbies.

What makes Kure Kure Takora hilarious is the relentless ultraviolence. It's like Cannibal Holocaust but much less restrained.
Kure Takora and his pals suffer horrible injuries in almost every episode but remain upbeat.
In this clip his friends persuade him to commit seppuku(!), and he almost goes ahead with it(!!), complete with close-ups of the clearly terrified title character holding a katana to his belly(!!!). Meanwhile kids in the UK had The Clangers, which wasn't the same.

As you can see the MSATA SSD looks sad and lonely in the hard drive bay. I eventually lined the bottom of the bay with a couple of strips of masking tape so that the SSD wasn't resting on bare metal. A couple of pads of heat-resistant foam might help keep it in place.
There's a risk the SSD might bounce around inside the case and loosen the hard drive cable - or the sound card cable, which runs over the top of the drive bay, but I suspect you'd have to really bash the PowerBook before that happened.

I didn't want to lose my data and reinstall everything from scratch. It takes time to track down old PowerPC applications. So I used Time Machine to back up all my settings to an external drive. I then installed the MSATA drive, installed OS X (from a USB stick, using this handy guide), updated OS X until there were no more updates, and then used OS X's Migration Assistant to transfer my settings and applications from the external drive to the MSATA SSD. I suggest you budget at least two afternoons to do all of this formatting and data transfer.

Ordinarily I'm wary of using an operating system's built-in backup and data migration tools, perhaps because I grew up with Windows. I'm a Norton Ghost and latterly Macrium Reflect man. But OS X's combination of Time Machine and Migration Assistant worked flawlessly.


Or at least almost flawlessly. For some reason Quicktime wasn't transferred, so I had to update Quicktime to the latest version for OS X 10.5.8 before I could use iTunes. Also my installation of CS2 lost its licence information (I assume it recognises that the hard drive is different, and contacts Adobe via the internet for guidance), but CS2 is now available from Adobe basically for free, so I just downloaded another copy.

In this episode Kure Kure Takora tries to steal a book from a lizard, who fights back, so he challenges the lizard to a samurai duel - and kills him! Kills him stone dead. It turns out the book was a cookbook; the lizard was planning to pour salt over Kure Takora and then cut him into chunks and eat him.

I've never liked the default OS X 10.5 wallpaper. The 10.4 wallpaper was less dramatic but more tasteful; Leopard's wallpaper is surprisingly tacky for Apple. Begone!

All done. Compare this image with the PowerBook at the top of the article, which had the original hard drive.

Does the rigmarole of installing an SSD in a fifteen-year-old laptop make rational sense? My Toshiba MSATA SSD was designed to pump data at 500mb/s through a 6gb/s SATA III bus, but the Ultra ATA/100 interface in the G4 can only cope with 100mb/s, so four-fifths of the SSD's performance is wasted. XBench's figures for sequential block writes are no better than a good 7200rpm physical hard drive:


However the random write speed is much faster than a physical hard drive. Random write speeds measure a storage medium's seek time, which is where SSDs excel, because they don't have to move a head over a disc to pick up data. SSDs in general are faster at writing larger blocks of data than smaller blocks, and the figures above reflect this; SSDs are slowest when writing lots of tiny files.

I really should have measured the speed of the physical hard drive for the sake of comparison. I should have thought of that. Am I going to dismantle the G4, put back the physical hard drive, and test it? No.


Subjectively the G4 doesn't feel as if it's booting faster, although it is noticeably quieter. Applications launch quicker, but TenFourFox is limited more by the CPU and RAM than by hard drive access, which is unfortunate because TenFourFox is the application I use most. MSATA-PATA adapters apparently produce more heat than a physical drive, but the G4's fan seems to come on less; whether it's because I've blown out the dust, or because there's a lot more space inside the case for air to circulate, I know not. I have read that this upgrade interferes with the fan management of the 12" PowerBook G4, which has much less interior space.

A few years ago this kind of upgrade would have been economically iffy for what is essentially a novelty toy. There comes a point when the money spent on upgrading a machine would be better off put towards the cost of a replacement. However MSATA SSDs have come down in price and are now widely available on the used market, so for what amounted to £30 and an afternoon fiddling with a screwdriver I feel it was worth it. Just don't expect the kind of lighting improvements you get from replacing a physical hard drive with a SATA II or III SSD. Oh no.