iTunes, iPhoto and Migration Assistant

I migrated my MacBook to a new MacBook Pro 2010 release using Migration Assistant and just as many others, found that my iPhoto did not show any photos (only thumbnails) as well as iTunes did not show any music. The Finder did show the files though.

Don’t panic!

And don’t blame Migration Assistant for it. What has happened is that you are probably running older versions of iTunes and iPhoto (and probably OS X too for that matter) than you were at the other Mac. So, just run Software Upgrade (with restarts and everything) until it tells you that you are up to date. Then all should be well with iTunes and iPhoto too.

Credit: this tip was kindly pointed out by AndyField. Thanks!

Overfilled ZFS won’t delete files

Today I ran into a trouble when I had filled my ZFS filesystem and tried to free up some space:

$ rm boxroom-0.6.3.zip
rm: boxroom-0.6.3.zip: Disc quota exceeded

The same error was given for all kinds of rm options, recursive, force, etc.

Digging around, pointed me to this post and that B solution was excellent:

$ ls -larth boxroom-0.6.3.zip
-rw-r--r--  1 laas  wheel   344K Apr 19  2009 boxroom-0.6.3.zip

$ cat /dev/null > boxroom-0.6.3.zip
$ rm boxroom-0.6.3.zip

Though this only freed up 344 kilobytes, it was enough that I could remove the file itself and then move on to more bigger files to free up the needed space.

Note: It was pointed out to me that the ZFS filesystem was compressed, which would shed light on the whys of the problem, as modifying compressed structures might increase the size, whereas truncating is the only option to decrease it.