Data recovery part 1: Freeze the dead hard drive 4

Posted by Aaron Feng Thu, 31 Jul 2008 12:30:00 GMT

frozen<em>hard</em>drive

I am sad to say that the hard drive in my Macbook died a few days ago. When I boot up the laptop all I see is a blinking folder with a question mark on it which means that it can't find necessary files to startup up the OS. I tried to run the Disk Utility from the OSX install CD, but the hard drive isn't even mounted. To make matters worse, the last backup I had was from 2 months ago.

Right before the hard drive crash I was just starting to gain some momentum on my side project. Now everything is gone, including my motivation.

I poked around Apple Discussions and found out a lot of people are having similar hard drive problems. Some people were able to retrieve their data by sending the hard drive out to a data recovery service. I called one and I realized I'm in the wrong business! The price ranges from $1500 to $2000 if the data can be recovered.

In disbelief, I went to the all knowing god, Google, for answers. I came across a couple sites that have claimed success on temporarily "fixing" a dead hard drive by putting the entire drive in the freezer for a few hours. Supposedly this will allow the hard drive to function for 10 to 30 minutes depending on the condition of the drive. Sounds pretty bogus to me, but desperate time calls for desperate measures. I have nothing to loose, so I decided to give it a go.

I sealed the hard drive in a couple zip lock bags and left it in the freezer for 3 hours then I stuck it back into my laptop. I boot up the Macbook with the frozen drive, hoping it would buy me enough time to backup a few items. Just a few seconds into the boot process, I see the blinking folder with the question mark again. I repeated the process a couple of times without any success.

Freezing the hard drive is only my first attempt on recovering the data. I purchased an identical hard drive from ebay and am hoping to repair it by swapping out parts. More to come in the next post. Before I go, I just want to say If you haven't been backing up your data recently, DO IT NOW!

Bring in the new year with Gutsy Gibbon, Parallels, Ruby, and Rails

Posted by Aaron Feng Wed, 02 Jan 2008 04:35:00 GMT

A few days ago I came up with an idea for a side ruby (possibly using rails too) project. After doing the initial research, I realized it makes more sense to test out the idea on Linux instead of OS X. I don't want to change the setup of my MacBook since I'm just toying with the idea, so I decided to install Linux using Parallels. Parallels is a virtual machine for Mac that is capable of running any operating system.

There has been a lot of hype around Ubuntu, so I decided to give it a try. The latest version at the time of this writing is 7.10 (codename Gutsy Gibbons). Installing Ubuntu on my MacBook via Parallels was a much more difficult task than I expected. Shortly after I started the installation, I was faced with the following error:

The display server has been shut down about 6 times in the last 90 seconds

After some googling, I found the fix on Shane Duffy's blog - Ubuntu 7.10 Install guide - Parallels Macbook pro. The installation worked as expected. However, Unbuntu wasn't able to connect to the internet during the installation, so the software package management system (apt-get) configuration file was commented out. apt-get is similar to MacPorts on Mac. I uncommented all the locations in the /etc/apt/source.list. I ran the following command to get the system up to date:

apt-get update
apt-get dist-update

The apt-get is pretty slick. Learning more about it will definitely pay off in the future. A good place to start is the AptGetHowto.

Moving on to the ruby and rails installation. apt-get wants to manage all the packages it installs, so installing gem using apt-get won't be feasible. Walter Wilfinger has posted complete instructions on how to get ruby and rails running in his post Installing Ruby and Ruby on Rails in Ubuntu 7.10 Gutsy Gibbon.

Last but not least, I found it annoying that I can't use the apple key as control key in Ubuntu. Once again I found a post written by Stuart Colville on how to remap the apple keys.

Wait, the system is not complete if you can't watch videos on youtube. When I tried to open a video on youtube firefox prompted me to install the missing flash plugin. Don't install it, it won't work. Download the Linux flash player from Adobe from here. Open a terminal window and run the following commands:

# exist firefox before running these commands
tar xvfz install_flash_player_9_linux.tar.gz
cd install_flash_player_9_linux
./flashplayer-installer
# at this point, the installer should ask you where the firefox
# directory is, it should be in /usr/lib/firefox

Overall, the installation went well, but was time consuming. There were some pitfalls, but they were easy to overcome. Ubuntu runs well on my MacBook with Parallels (I'm actually blogging from it). I'm sure it would run even better on a MacBook Pro. I really enjoy having a complete separate environment for development. I have complete freedom of experimenting with different things without worrying about messing up my system. If you ever wanted to play around with Ubuntu on a Mac, Parallels is definitely the way to go. If this works out well, I might just keep all my development stuff on a separate Parallels image.

Kernel Panic 2

Posted by Aaron Feng Wed, 11 Apr 2007 00:28:00 GMT

OSX Kernel Panic

In less than two months I managed to get a kernel panic on my Mac. Generally kernel panic occurs on UNIX like operating systems when it encounters an error it cannot recover from. It is similar to the blue screen of death on Windows. My MacBook has been intermittently shutting it's self off when I tilt it. It was annoying, but it turned right back on when I pressed the power button. However, last week kernel panic happened when I tried to turn it back on. No matter how many times I tried to reboot the machine, I received the same kernel panic screen. I contacted Apple, and they could not diagnose the problem over the phone, so they told me to drop the laptop off at an Apple service center.

I left my Mac at the Apple service center for two days, and they could not find any hardware related problems. They basically told me I had to pay them money to reinstall the OS in order to fix it. I decided to get the MaBbook back because I can handle the reinstall myself. Since no hardware problems were found, I had to pay 48 bucks to the Apple service center for a diagnose fee. Apparently this is standard at an Apple service center, but not at an Apple retail store, I later found out.

After I got home, I decided to boot up my MacBook. To my surprise, the kernel panic went away. At this point, I was still not convinced it was a software related issue because the laptop still shuts it's self off if I tilt it the wrong way. I called Apple back, and complained about the 48 bucks that I wasted. As reimbursement, they sent me an Airport Express. Since my MacBook is still shutting off on its own, I will have to take it back soon. Next time I will tale it to an Apple store, not a service center.

Hello Mac 1

Posted by Aaron Feng Sat, 24 Feb 2007 03:00:00 GMT

This is my new toy.

macbook

My Dell laptop recently died, so I was back in the market for another laptop. I had never owned a Mac before, but I had always wanted to. After doing some research, the MacBook seemed to fit my needs.

After using it for a few hours, I felt right at home. It has the best of both worlds, UNIX and Windows. I am a big fan of UNIX-like Operating Systems, but I have not had time to play around with one for quiet some time now. Mostly it is because I have been working in a pure Windows environment in my current project.

One of the first things on my Mac checklist is to get Rails running on my new Mac. I found a great tutorial on setting up a Rails development environment. It contained the following programs:

The directions are explicit and easy to follow. I would highly recommend it if you are trying to get Rails running on your Mac.

I downloaded Textmate once I got all the Rails components installed. It just felt right to develop Rails using Textmate :) In fact, I am currently blogging using Textmate right now.

In the past, I had a lot of problems with my Dell laptops (two to be exact). They usually turned into paper weights after about a year. I hope my luck will change with my new Mac. Only time will tell.