Thursday, May 31, 2007

Only Three?

Only 3 posts this month!? That's just ridiculous. Luckily this post will bring that count up to a nice even four. Some big things are coming though... BIG THINGS! I'm almost ready for an initial release of my ourbunny radio station website. It will take me about another week to get some of the back end stuff done. jShout hasn't seen much development recently but I have discovered a few bugs and that's always good!

Mat gets home this evening and so that's basically when summer REALLY starts. We have big plans for some new shorts and possibly even a new dvd which is always exciting. More information will be released shortly.

Creative Commons License

Thursday, May 17, 2007

jShout Version 0.1

It's finally here! Today I finished up the last bit of code that needed to be included before I could package jShout up. I haven't done that much testing other than streaming audio from OSX to an XP machine running in Parallels so it might not be perfect, but hey, it's just version 0.1.

Now to get some sleep so that I can go to work tomorrow!

jShout Project Homepage

Creative Commons License

Monday, May 7, 2007

Removing Ubuntu from my MacBook Pro

You've followed some how-to's online and setup your MacBook Pro to dual boot OSX/Ubuntu. Now you realize that you never use Ubuntu and really want that space back on your OSX partition so that you can keep downloading episodes of The Office. Well it's not as easy as it sounds.

It was a long process but I finally got that sucker off of my laptop. I found a lot of stuff on the internet about resizing* an HFS+ partition but basically only Bootcamp and commercial software can do it. The most important piece of information in the post is at the very end, about restoring a backup image using the OSX install disk.

What Doesn't Work

Bootcamp - Normally what a user does is repartition their drive with Bootcamp, install Windows, gets bored, then uses Bootcamp to delete the Windows partition and have their OSX partition take back the space. If you alter the partitions at all after running the Bootcamp utility to repartition your drive you cannot use Bootcamp to restore it. It will display a message telling you that it cannot recognize the Windows partition and then exit.

Disk Utility - This program is pretty much useless. It won't let you alter any partition that it doesn't understand and just about the only type it does understand is HFS+.

GParted - I found this great utility for repartitioning drives. Too bad it doesn't support resizing of HFS+ partitions.

Tricking Bootcamp - I used GParted to reformat the linux partition to FAT32 and NTFS but try as I may, I couldn't trick Bootcamp into thinking that there was a Windows partition that needed removing.

What Does Work


These are the steps I went through to completely restore my computer back to working order, complete with the stupid things that don't work that'll drive you crazy trying to figure out.

Preparing the USB Drive For the Backup

Most USB drives are formatted to FAT32 because both Windows and Macs can read/write to it. Too bad FAT32 doesn't support large files.
  1. Boot up using GParted
  2. Shrink the FAT32 partition to make room for another partition that is LARGER than the amount of data that is on your OSX partition.
  3. Boot up using the OSX install disk and run Disk Utility to create a new HFS+ partition on the USB disk from the free space.
How to Make the Backup
  1. Boot up using the OSX install disk
  2. Click on the OSX partition you want to back up (probably called "Macintosh HD")
  3. Click "New Image" and save to the partition on your external USB device that you just created.
Repartitioning

Any changes you make to your partition table using Disk Utility WILL indeed erase all the data on it. It is not lying when it warns you of this fact. Just delete the extra partition and make the OSX one as big as you can.

How to Restore the Backup

This is probably the most annoying part of the whole thing. You see there is a problem with the version of Disk Utility that comes on the Intel OSX install disks. Basically you can't use it to restore a backup. Damn them!
  1. Using Disk Utility, mount your backup image
  2. Quit Disk Utility and open up the Terminal
  3. Type in the following commands
    • cd /Volumes/{mounted backup}/Applications/Utilities
    • cp "Disk Utility.app" /Volumes/{usb backup}/
  4. Replace {mounted backup} with the name of the partition image, probably something like "Macintosh HD 1" and replace {usb backup} with the name of the HFS+ partition on your USB drive.
  5. Quit Terminal and open Disk Utility
  6. Unmount the backup image
  7. Quit Disk Utility and open up Terminal
  8. Run the new Disk Utility program
    • cd /Volumes/{usb backup}/"Disk Utility.app"/Contents/MacOS
    • ./Disk\ Utility
  9. Now you can properly restore the disk image
    • just select the partition you want to restore
    • click "Restore" and drag the partition to "Destination"
    • click "Image..." and select your backup
  10. You're Done! Reboot and enjoy.
Basically to restore your backup you just need a working version of Disk Utility. You could do this multiple ways other than retrieving it from your backup image. It would probably make more sense to copy it over to your usb drive before you started trying to mess with partitioning at all.

*One method to resize an HFS+ partition I cam across was to use the command diskutil resizeVolume but I was unable to get this to work.

Creative Commons License

Wednesday, May 2, 2007

Damn you Apple

I was under the impression that when I "switched" from Microsoft Windows to Apple's OSX that I would never have to reboot after installing a new application ever again. Let it be known that OSX sucks. A new version of QuickTime should NOT require a reboot. I am sufficiently pissed.

It seems like every time "Software Update" has a new update I end up having to reboot. OSX was built from BSD, the only time I should have to reboot is when there is a change to the kernel. Some stupid media player software ought not be messing with my kernel!