(this used to be a blog)

Terminal to the rescue

Posted: November 18th, 2007 | Author: Panos Karageorgakis | Filed under: Apple, Mac OS X, Technology | No Comments »

Background

I got my digital camera in 2004 and started making a library with all the photos I took in my vacations, journeys and other occasions with more than 2.5k photographs at this moment. These photos resided only in my Powerbook, which means a single point of failure: if something was to happen to the laptop’s hard drive (or even if I dropped it or it got stolen) all those pictures of memories of last years would be lost.

So I got my new iMac last week and decided to move the entire iPhoto library to the new computer, only to find out that there’s something wrong with the disk that won’t let the copy complete. All I got was the spinning beachball. It wouldn’t stop spinning. I tried to disconnect the network drive, turn airport off, press command-alt-escape to relaunch Finder. Nothing.

Disk problems

So I fired up Disk Utility and verified the Machintosh HD disk to get the following error message:

Verifying volume “Macintosh HD”
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Invalid node structure
The volume Macintosh HD needs to be repaired.

Error: The underlying task reported failure on exit

Apparently there’s something wrong with the filesystem, probably due to hard drive error, since I heard some “weird” sounds coming from the hard drive. How many of my files were affected by this? I don’t know. I tried to copy each one of the subfolders to the new drive, but whenever it encountered a file that was damaged, all I was getting was the beachball, and then I would have to restart the computer, identify the damaged file and copy the rest of them.

The trick

Well, doing this for my entire library could take forever, so I had to find another way to copy the files to the new computer. Apparently, there is damage in the catalog structure of the FS at some point and Finder doesn’t seem to handle this damage nicely – the whole OS is rendered unusable. But how can one copy files bypassing the Finder, when it’s the only app that does such stuff? Think deeper: Darwin.

So I opened a terminal, and used the cp command to copy all of my files to the new computer, i.e.:

Mac:~/Pictures $ cp -rv iPhoto\ Library/ /Volumes/panagiotis

The -r flag tells cp to do a recursive copy (all files and subfolders inside) and I also wanted to witness the process of copying the files, hence the -v flag (for verbose).

Luckily, the copying of the files was smooth. No delays, no freezes. Well it took sime time to transfer about 7GB of data wirelessly to the new computer, and of course the damaged files did not recover, but at least I managed to copy them to a new disk before this one completely fails some day and doom my entire photo library. After scanning quickly through my library from the iMac (thanks Frontrow + remote!) I concluded that very few pictures were damaged – most of my precious memories are still intact.

So, when the Finder fails, summon Terminal to the rescue.


K610im iSync problem: Download the solution

Posted: March 29th, 2007 | Author: Panos Karageorgakis | Filed under: Apple, Mac OS X, Technology | 12 Comments »

[Edit: It looks like Apple may have resolved this issue with the 10.4.9 update to the Mac OS X operating system. I am guessing this because after upgrading, the phone icon in iSync looks like a K610 (a red one actually). And maybe that explains my blog's visit from the apple.com domain. If there's someone that hasn't used my patch and made the phone sync with 10.4.9, please let us know by leaving a comment.]

For all of us Mac users that have bought the Sony Ericsson K610im (i-mode) phone, there was a disappointment when we got back home and tried to sync the new phone with the contacts. Luckily, the solution is quite simple, and here’s how you can make your phone sync with your mac:

Download file

iSync plugin files for SonyEricsson K610im support

Instructions

  1. Download the aforementioned file to your desktop and extract it’s contents. You will see a new folder named SonyEricsson-K610.phoneplugin
  2. Open a finder window and point locate the iSync app in your /Applications folder
    Locate the iSync app
  3. Right click iSync and choose “Show package contents”
  4. A new finder window appears that has only one folder in it, named “Contents”. Open that folder and inside it go to PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns
    Browse the Contents folder inside the app
  5. Move the folder SonyEricsson-K610.phoneplugin from your desktop into this folder
    Locate the plugins directory

That’s it, you’re done! Open up iSync again and this time your K610im will be able to sync.

It works!

If you’re having problems or would like to discuss this topic, please leave a comment.