Archive for April, 2007

How I got networking working on my Powerbook using Single User Mode in OS X Apr 29 2007

You NEVER want to see this on your Mac.

Update: It turns out that the reason my laptop had this problem in the first place was one of my 1GB sticks of RAM that had gone bad after running with zero problems for over a year. The kernel panics happening on a totally clean install of OS X was a clue, and then using the hardware test CD that originally came with the laptop confirmed that it was indeed bad RAM. Bad RAM sucks!

I had an unfortunate thing happen today — my trusty Powerbook decided that it had had enough and that it was going to lose it’s mind. It froze while I was working on the new version of Kristin’s website (not up yet…)

At first I was like, hmm, that’s annoying. That feeling turned into, oh crap, my laptop is broken when it wouldn’t finish booting up.

A quick Google using my Treo reminded me of the OS X startup key command to enter single-user mode (it is CMD+S). First, though, I tried the command for a verbose startup so I could see what the problem was (CMD+V). Verbose startup indicated that something was wrong with the hard drive meta data. So I decided to try starting up in single-user mode and then ran fsck -f to see if it could fix the problem. No love there.

This is the error message that showed up:


localhost:/ root# fsck -f
** /dev/rdisk0s3
** Root file system
** Checking HFS Plus volume.
** Checking Extants Overflow file.
** Checking Catalog file.
Keys out of order
(4, 23212)
** Rebuilding Catalog B-tree.
** The volume New Hotness could not be repaired.
localhost :/ root#

CRAP!!!!

At this point in time, I am VERY grateful that I had recently (~3 weeks ago) made a full backup of my entire drive (over 60GB of applications and data). All of the source code for my work projects are under version control (Subversion) so I’m pretty good there even without backups. But what about the new work that I had been doing on Kristin’s site? That wasn’t backed up, hadn’t been checked into version control yet, and had considerable amount of work done that was stored in the MySQL database.

After doing some research about possible ways to fix this error (going to go into the Apple store tomorrow morning to see if they have a DiskWarrior disk that we can use to try to fix the Catalog B-tree problem), I thought it would be a really good idea to get Kristin’s site source code onto another machine so I would have a backup of that. Oh, and maybe also it would be a good idea to copy the 1+GB of China pictures that I hadn’t backed up yet (but had deleted off my camera!). Also, email inboxes, and other home directory files that I knew weren’t part of the 3 week old backup.

Mounting my laptop in Firewire Target Disk mode (hold down T during startup) didn’t work (it didn’t mount when I plugged it into Kristin’s laptop). Booting up using the install CD only gave me options to install a fresh system or use Disk Utility, which didn’t give me the options I was looking for.

So, the problem that I now faced was this: How do I mount a drive or get network access using Single User Mode?

Lots of searches didn’t turn up any solid answers, until I found this command on the MacOSHints forum archives:

/usr/libexec/kextd
/usr/sbin/configd

So first I ran mount -uw / to mount the root filesystem in writable mode. Next I ran the commands that I found. The kextd command output a few errors, but exited cleanly otherwise. The configd command got networking running. YAY!

Once that was running, I plugged in an ethernet cable between my laptop and Kristin’s, and turned on the built-in SSH server on her laptop using the System Preference panel (Sharing > Remote Login > Start). I was then able to successfully SSH into her system and copy over all of the needed files.

Hopefully I won’t need to utilize these backups, but it is a great relief to know that I have them if needed.

I hope this can be helpful if you get in a similar jam.

My System Specs:
I’m running the latest version of OS X 10.4.9, have 2GB ram and an upgraded hard drive in a 15″ PowerPC Powerbook.

DISCLAIMER: I’m pretty sure that my laptop is really screwed up right now, and has kernel panicked and segmentation faulted a couple of times during transferring of files. If you find yourself following these directions, then you are probably already screwed too. But know that I am not responsible for what you do and also I don’t know if my copying over these files may have in fact screwed things up even more than they already are. So, your mileage may vary, proceed at your own risk, etc.

YouTube – Baby Got Back – Gilbert and Sullivan Style Apr 28 2007

Just in case you haven’t seen this yet. Brilliant.

YouTube – Baby Got Back – Gilbert and Sullivan Style

Travelling to China, returning April 18th Apr 2 2007

Passport + tickets to Seoul, Hong Kong

I’m currently travelling on my way to visit my friend Damon who is living in Guangdong, China with his lovely wife Wenhui and their awesome baby Jackson. I’ll be returning home on April 18th.

Things we’ll probably be doing:

  • Hanging out in Guangzhou
  • Doing art
  • Nerding
  • Working on our super-duper top secret game idea
  • Visiting Macau
  • Taking a train ride to the famous mountains (the ones you see in the background of many Chinese paintings)
  • Getting rained on (probably)
  • Trying to get by in a place where everyone speaks Cantonese, not Americanese
  • Taking lots of pictures
  • Making new friends
  • Filling Moleskines
  • Playing with the baby
  • Cooking
  • Goofing around

Should be a fun time. I plan on being available via email as often as possible (gserafini [at] gmail.com) and via the usual IM channels also whenever possible. If you have an emergency, please send me an email and I will see if I can help. I will probably not be available via phone, although if I am probably the best bet would be to call my friend Damon’s cell # 159 8643 6868 (country code 86 I think..?) Calling China would probably be ridiculously expensive, so I wouldn’t recommend it. Email would be best.

I will be hopefully doing regular updates of my Flickr stream and posting into my China Trip 2007 set, so check back there every couple of days to see what I’ve been up to. If I can’t post easily from China then I may have to wait until I’m back stateside to post all the pics.

I also may be updating my Twitter page (kind of like small little micro blog updates) with what I’m doing at any given time so you can keep up with the adventures that way too maybe.

See you when I get back! 🙂

P.S. – Posted this using my Palm Treo 700p using USB modem from the airport in Chicago. Yay for mobile Internet!



sell diamonds