Sunday, November 23, 2014

Samsung SSD 840 EVO has a slow read bug: information on the fix

Over a year ago I switched my 2009 iMac from yet another dead hard drive to a Samsung EVO 840 1TB SSD. It was a calculated gamble that has worked fairly well so far, but SSD technology has proved less mature that I’d thought (Maybe this is why Apple has been slow to transition). For example, the net is full of contradictory recommendations on TRIM use. For another, the Anandtech coverage of this complex bug ends with “None of the big SSD manufacturers have been able to avoid widespread bugs”

Recently Samsung admitted they had a problem with slow reads — something I’ve been wondering about. They’ve put out  Windows fix and a bootable DOS version that’s supposed to work on a Mac.

I haven’t tried it yet, but I’ve assembled my references…

Thanks to Conrad’s Chavez’s generous blog post I feel ready to do this - once again I appreciate the CD drive in my old iMac. After BOTH of my backup systems are completely current of course. Actually, maybe I’ll do a 3rd back up just in case.

Update 11/25/14

Wow. I did the fix and the speed improvement of my 1.5 yo SSD is amazing. I’d noticed some operations were slow, but the gradual decline hid how bad things were. Startup time is maybe 2-10% of what it was.

I think extremely slow reads on something related to directory structure were causing my Time Machine/Time Capsule restore failures (more on that in the post, later).

A few notes/extensions of Conrad’s fine post:

  • I did 2 backups beforehand and tested a file restore from one. Then I did an additional Aperture specific backup to another drive.
  • I recommend booting into and running Disk Utility disk repair prior to the fix — just as a general safety measure.
  • Unplug all peripherals — keep it simple.
  • I didn’t have to rename the .ISO file to .DMG as Conrad mentioned. Disk Utility burned CD normally.
  • On my Bluetooth keyboard I hold down the ‘c’ key immediately after startup tone to boot off CD
  • Firmware fix is very quick — but the full repair took about 4.5h. The UI writes a dot every 15min or so (see below).
  • After the fix was done I got the old (I remember DOS) prompt. I pressed restart and got a heart attack as OS X was stuck in an exotic failed boot cycle. I had to press and hold power for a few seconds to force a proper shutdown. After that all was fine.

IMG 5216

Friday, November 21, 2014

iOS 8, AT&T MVNO and the endless searching Personal Hotspot bug: toggle Bluetooth

We’re on 8.1.1 and I’ve discovered our first significant bug - the Personal Hotspot icon is stuck in endless “searching” spin on two of the 3 children’s H2O Wireless (AT&T MVNO) iPhone 4s and 4.

IMG 2038

It’s a new problem, likely related to the new Instant Hotspot features of 8.1 (even though it’s not supported on these older phones), but there was a variant of this in older iOS versions. The phones use the H2O “Locus” configuration Profile though, so I can’t follow old advice to edit APN settings.

I think there’s also a contribution to the bug from restrictions on making changes to cellular data (restricted on the children’s phones).

There’s a workaround though, one that I came up after realizing one of the 3 phones didn’t have the stuck Hotspot search. That phone had Bluetooth disabled, and Bluetooth is needed for Instant Hotspot functionality.

So I disabled Bluetooth on the #3’s phone and the endless search stopped, instead I saw “Set up Personal Hotspot”. I reenabled Bluetooth and the bug didn’t return. On #2’s phone Bluetooth was off, and enabling it stopped the search.

So it seems all I have to do is toggle Bluetooth. 

There is still weird stuff here. All 3 devices have the same Profile and H2O plan, but one 4s has the “Personal Hotspot” functionality and the other two say bring up a “Call AT&T to enable” dialog. I’m still playing around to see if I can fix that.

Subscription to Facebook Events calendar now possible, including Google Calendar - for the moment

I just added a subscription to my Facebook calendar to my Google Calendar.

Is this new?

I can't say, but knowing how it works I found documentation updated in Sept 2014. So it might be new. I briefly scanned Facebook's marketing infested 'newsroom' and didn't see any notification there.

Parenthetically, this kind of discovery is a real Facebook issue. I've looked for this feature several times over the past few years. The last time I looked I found several old hacks that were either obsolete or insanely high risk.

Why is Facebook such a mystery? Partly it's lack of documentation and feature churn, but, more importantly, geeks ignore Facebook. So my usual notification systems fail.

Anyway, this is something I've really wanted. Look for the cryptic three dot icon next to a Facebook event:

Choose "Export Event". You can email a .ICS for the event, but, more importantly, you'll see webcal URL with an embedded unique identifier (token).

Copy that URL and paste it into Google Calendar "Add by URL".

Suddenly Facebook Calendar is useful.

Thursday, November 13, 2014

Force Chrome to remember iCloud password - how I ended up with LastPass

I don’t use iCloud for much - Apple’s cloud functionality is almost as lacking as its reliability. Our family has used Google Calendar for 7 years [1], I use Simplenote and nvAlt [3] as an information store, Gmail for email [4] and Toodledo/Todo.app for tasks. [5]

That leaves Contacts in Apple’s badlands — they’re too tightly coupled to iOS and OS X to readily migrate. So Contacts are the only bit of iCloud I use; I have to admit that they have been relatively reliable.

Hang on — this does get to the part about forcing Chrome to remember an iCloud password. But first I need a bit of setup. I have to explain something about corporate life and personal data.

Fifteen years ago many employees mixed their personal and corporate data on business laptops and workstations. It wasn’t unusual to use a single email for both work and personal use. Ever since then the two worlds have been dividing - driven by legal and security concerns. Even thumb drives are encrypted on insertion now; data on the increasingly locked down corporate laptop belongs to the corporation.

Which is fine for email and work documents - they should belong to my employer. Contacts though — they’re a problem. They don’t divide neatly between work and personal — and my work Contacts are pretty important for my future employment and family food. So, when it came time to decide where my Contacts should live, I moved them entirely into the personal sphere.

Which is why I need to use a corporate browser (Chrome [6]) to access iCloud — that’s where all of my Contacts live. I need ‘em when I work. 

Ok, so we’ve established I need to use Chrome to access iCloud. Now the problem — it makes me enter my password way too often. And my passwords aren’t easy to type or remember. There are extensions that once forced Chrome to store this password, but they don’t work any more.

So today I broke down. LastPass has a freemium model for online credential storage; the web app and Chrome extension are free. (LastPass charges for mobile services.) Unlike 1Password, which I use on iOS and OS X, there’s no need to buy a Windows client — and I don’t want to put all my credentials in the Cloud anyway. So I signed up for free LastPass, and created an account with a single stored credential - my iCloud ID and password.

It works fine. So one of my longstanding annoyances has been fixed — I can quickly bring up iCloud Contacts.

- fn - 

[1] Calendars 5.app is essential for the Google Calendar power user — we have it on every phone [2]. My native iOS Calendar syncs to my corporate calendar, Calendars 5 reads the iOS calendar database so it appears inline with my other 17 calendars, including 1 for each family member and one ‘all family’ calendar. Our family grandfathered into free Google Apps accounts, but if we didn’t I’d probably pay for the business service. Free has been nice though.

[2] It’s $7 a user. Since it’s not funded by in app purchases I believe iOS family sharing would allow one purchase to support five users. If it did use in app purchases that wouldn’t work. FWIW we still share a single Apple Store only AppleID, I use a different AppleID with iCloud.

[3] nvAlt is in maintenance mode for now — but so is Notational Velocity. Brett has a commercial replacement in the queue, as of today “it’s amazing and will probably be released”.

[4] Google’s broke Gmail usability with their last UI redo. I use Mail.app on iOS and sometimes Airmail on Mac, but mostly I gnash my teeth and weep and use Gmail.

[5] Nobody would do this by choice. Is a legacy choice.  Works and I hate to change things that work.

[6] The corporate standard is IE 9 — thanks to legacy apps. So IE for corporate apps, Chrome elsewhere.

Sunday, November 02, 2014

Taking advantage of AT&T's promotion: 2GB to 3GB for same price (exp. 11/15/2014?)

AT&T is offering 3GB of MobileShare data for the $40 price of 2GB - part of a price battle with Verizon. It’s the default for new customers, but existing customers can get it by using the web site as though changing data plan. This is what I saw on that screen:

Screen Shot 2014 11 02 at 9 09 50 PM

If you do this be careful not to miss the Submit button on the final screen, it’s lost below the formal fine print agreement.

Based on my reading and what a rep told me, there’s no known catch and no contract. Since Emily and I routinely use 1.9 GB I considered going to 1GB and paying the overage fee, but there’s no new discount at the 1GB level.

AT&T used to charge us $15 for an extra GB when we occasionally exceeded our 2GB limit, so this promotional plan should save us $45 a year — and we don’t have to be quite so obsessive about our iPhone data use.

I’m not sure how long this offer will be in place, the fine print says you have to make changes before November 15, 2014:

Screen Shot 2014 11 02 at 9 11 22 PM

We don’t have any contract with our MobileShare (all our iPhones are unlocked), so I’m less worried now about AT&T treating me badly. I can leave at any time.

The change was applied immediately. Instead of 1.8 GB left this billing cycle we have 2.8GB.

Sunday, October 26, 2014

Migration assistant didn't seem to migrate my OS X Mail mailboxes and content

I used Migration Assistant to copy a user account from a Time Capsule backup (of a Lion machine) to a Mavericks machine. The Lion machine Mail app used the Google IMAP connection.

The behavior of Mail.app surprised me. Initially it appeared empty, though mailbox folders were present. Then, overnight, messages appeared to transfer from Gmail. They didn’t appear to have been migrated from the original machine.

Curious. I couldn’t find much about this on the net, so for now I’ll share without comment.

Saturday, October 25, 2014

Adventures in using Migration Assistant to move one User from a Lion Mac to a Mavericks Mac

When my G5 iMac finally died (1995-2014) I first thought we’d need another machine - like Apple’s top-secret max value DVD containing laptop. As it turned out, we didn’t, which is probably not great news for Apple. I did have to reconfigure our existing devices and order an external display, but we ended up with a better hardware distribution than we started with.

The reconfiguration did require migrating a user from an older machine running Lion to a Mavericks machine [1]. That’s what this post is mostly about, so feel free to skip the hardware refactoring discussion.

The hardware refactoring

Before the G5 iMac (2005-2014) died our family of five (not counting Kateva) had 1 iPhone apiece, no iPads, a 2009 27” iMac [2], a 2006 MacBook Core 2 Duo (Lion) [3], a 2011 11” MacBook Air [4] and, of course the G5. (And two of the kids are getting school iPads in a few weeks.)

Each machine had its constituency. 

The SSD revitalized 2009 iMac is our family server and my personal machine — thanks to its 1TB Samsung SSD power I’d need to spend $2,800 to replace it with a better machine. The 2005 G5 iMac was used by the boys for writing and light web browsing, and it was a DVD playing / iTunes streaming entertainment center. The Air has always been sadly underutilized — it’s my laptop but I usually travel with a corporate winter thing. The 2006 MacBook (Lion) is the main homework machine and my wife’s laptop [5].

We played around with a few options, most of which involved spending about $1,600 and dealing with the pain of a new Mac [6], but we realized that we actually had everything we needed. 

So the 2009 iMac stays where it is, the 2011 Air will become Emily’s primary workstation (hence the account migration need), and the 2006 MacBook with its DVD player will get a $240 external 27” display with integrated speakers. It  will become the DVD/iTunes streaming media center and, with the new external display, a much improved homework machine [7].

All the hardware gets used, we save about $1,300 and weeks of pain (burning coals, pins in eyes, etc). 

Moving the user - quirks of Migration Assistant

I wanted to move Emily’s data from the MacBook (Lion) to the Air (Mavericks) and I remembered that Migration Assistant can move a single user account (or much more) [8]. So I hooked up the two machines with an ethernet cable and … it didn’t work. The User Accounts from the MacBook didn’t show up — only apps and config data appeared.

I did, however, see that I could move Emily’s data from the MacBook backup on Time Capsule. I hadn’t known that was possible. (Turns out this is also a way to restore User data to a new machine from the backup of a defunct device.)

Google told me the missing User option can be a permissions issue, so I did a safe boot (power up while holding shift key). That runs a number of cleanups including permissions repair and disk utility repair. 

Then I turned WiFi off - to reduce any network confusion.

This time it seemed to work — until it hung with the dreaded “Less than a minute remaining” message.

From my reading it looks like this might be related to disk issues, or file corruption, or the fact that computers hate us (it’s mutual). There are a few options:

  1. Run Disk Utility repair or Disk Warrior or equivalent, seeking the bad file. (I’d already done the safe boot, which I believe runs Disk Utility repair.)
  2. Wait overnight. Sometimes many hours later, the process may complete.
  3. Force quit Migration assistant on the sending machine.
  4. Use Time Capsule instead. (Yay!)

I decided to let it run overnight and try a force quit in the morning… but the MacBook closed its session. I noticed it was repeatedly trying to logout, and in user preferences security was set to logout after 8 minutes of inactivity. I wonder if the logout attempts were causing the problem. I ran fsck -fy in single user mode but the MacBook seemed fine.

So rather than try again I switched to Time Capsule using a direct ethernet connection. It took 16 min to move the data over. I ran into 1 (replicable) UI bug that’s hard to explain. If you don’t see a “continue” prompt, click somewhere else.

Then I tried email - and saw nothing. As I submit this post it appears emails are streaming in from Google - NOT from the backup. I may be running into Mavericks Gmail problems, compounded by a migration from Lion. I think that’s going to be a different post. (At least I have the original machine to work with!)

PS. The Air has an encrypted drive; Mavericks Migration Assistant does not automatically enable migrated non-admin users to unlock the drive on startup. That has to be done in security settings from an admin account.

- fn -

[1] I’m waiting a bit longer before going to Yosemite.

[2] Which, like the G5 iMac, had a troublesome youth, multiple hardware issues, and display discoloration — but has settled into a reliable middle-age. People wonder why I hate buying new Macs.

[3] Suffered from plastic case disintegration syndrome — I missed the recall notice for that one. Has had off-kilter hinges and 1 dead drive, easily replaces because it’s freakily easy to service. Yeah, I hate buying new Macs.

[4] Aside from the early demise of the power supply (replaced by Apple) this machine has been insanely trouble free. Reminds me of the remarkably reliable machines before Jobs and Ives. I can’t explain why the Air actually seems to work.

[5] She likes it, and she doesn’t like dealing with unreliable machines.

[6] Typically something between needles in the eyes and walking on hot coals.

[7] If the drive falters I can put in 250GB SSD for $120 or so and it will be supercharged. This was one of the last of the truly serviceable Macs.

[8] If an account of the same name already exists on the target machine Migration Assistant will help, but I prefer to delete the target machine account if, as is usually the case, it’s not worth keeping.