Hmm, I may feel humbled to say it, but I've gone back to Linux, but this time I'm using Debian Linux. It was simply too much work trying to get all the hardware support on the FreeBSD kernel, particularly when Linux seems to be ahead in this regard. So with this thought in mind, I kiss FreeBSD goodbye as I wait for a solid Unix version (or as close to it as I can get), and while I'm waiting, I'll be using Linux. Of course, nothing is perfect, and I'm having my own issues with Debian at the moment, with that cursed xf86-video-intel driver. Hopefully I'll get it compiled and installed soon.

Well, what can I say? FreeBSD is installed. It was a fairly ugly process, however. The real problem came with partitioning, which is what I expected. From the research I did, it appeared that the FreeBSD installer and operating system recognized and was capable of working with GPT partition tables. Just to be sure, I removed my MBR sync of the GPT and turned it into one huge EFI protective partition. If the installer saw my partition table, then I could rest assured that it would handle everything appropriately and my system wasn't in danger (at least not too much).

Well, my partitions showed, so I went ahead and created slices and partitions within it. After completing the install, I did the big reboot that would determine whether or not the installer had succeeded. A folder with a flashing question mark. Hm, not good. After a few seconds, the FreeBSD bootloader came up, and I was able to boot into my new system. My next priority was to make sure that my other operating systems were still usable. After some testing with several rescue disks, I determined that somehow the FreeBSD installer had somehow managed to add a partition to my GPT, but in the process destroyed it to the point that OS X and Windows XP were unbootable.

I ended up having to scrap my entire system and reinstall it from scratch. Here's what I did.


  1. Install OS X on a partition that doesn't take up the entire hard drive. Use Disk Utility to accomplish this.

  2. Install rEFIt.

  3. Use a *Linux* installer CD that has 'parted' on it. I used the Gentoo minimal CD for this. Using parted, create a partition that will be used to house FreeBSD. Type doesn't matter.

  4. Boot off the FreeBSD installation disk. Your level of success may vary, if it panics because of some Apple APM, reboot and try again. The next time you see "Apple APM" on the screen, hit your Mac's power button briefly. It worked for me, oddly enough.

  5. In the partitioning setup, change the type of the partition you created in parted to 165 and set it as bootable.

  6. In the bootloader setup, make sure you choose the standard FreeBSD boot manager -- just the regular loader probably won't work, as I found out.

  7. After it's finished installing, you should probably be able to boot FreeBSD, but not OS X. You'll need to boot back into the Linux CD.

  8. Start up parted. It'll probably say something about it not being sure if the partition table is GPT or not. Just say yes. Next, print out the partition table in sectors and write down the starting sector and size of the partition (also in sectors). Then delete (yes, delete!) the FreeBSD partition.

  9. Your partition table is now repaired. At this point, you can probably boot OS X once again. What you need to do now is boot from your OS X installation disk, start up Terminal. After umounting your OS X partition which is automatically mounted, run the following command to recreate the FreeBSD partition:
    gpt add -b (starting sector) -i 3 -s (size of partition) -t 516E7CB4-6ECF-11D6-8FF8-00022D09712B /dev/disk0

  10. Reboot, and rEFIt should list both OS X and FreeBSD as boot options.



Of course, I still haven't gotten a lot of things working (such as X), but I'm trusting that the payoff will be a solid system that doesn't require a lot of fiddling. I'll update any progress I make with it.

After many hours of struggling, going to several mailing lists, I have finally found the solution to what I was looking for. My xorg installation worked on my MacBook, but I couldn't get it to use my full 1920x1200 resolution that was available on my Dell 24" 2407WFP. Finally, someone suggested to me on xorg@lists.freedesktop.org that it was most likely a driver issue. While I was already using the 'intel' driver, I suspected something may be up with it, and I decided to download the latest source code of the driver from intellinuxgraphics.org. After a successful compilation and installation, everything worked perfectly. Needless to say, I was very pleased.

But then as I began trying to use Gentoo more, I started to realize how broken this distro is, or to be more exact, portage. For one thing, I can't install qemu no matter how hard I try, because a known bug in portage prevents gcc3 from compiling. And of course, using gcc4 has even more bugs and difficulties to deal with. But what really set me off was when I was trying to update 'world', and packages that were previously installed before started crapping out. That's where I draw the line. I'm using the latest unmasked gentoo-sources kernel, set up the entire system exactly to the way described in the Gentoo handbook, and there are bugs that prevent me from using software that I know would work perfectly on some other brands of *nix.

So, I'm backing up my system as I speak, and preparing for a FreeBSD install. Why? There's no one single reason. Maybe it's the fact that it's installed and runs without a hitch on my servers, the fact that so many high-end servers rely on it for solidity that convinces me it's the one to use. Or perhaps I just like Unix, or as close to it as I can get. In any case, I'm looking forward to using X11 on my MacBook -- but it'll be running on a BSD kernel this time.

I'm just your average Joe. Living as a programmer, and writing this because I'm at a loss for what else to write. My hope is that this will become my output for thoughts, feelings, and random tidbits related to the computer world. If you have any input, please let me know. I'd love to hear it. :-)



Blogroll


DaniWeb
Bruton Garden


About


Hi there, I'm John, and I'm a blogger from Canada. I dabble with C and C++, and enjoy using a variety of operating systems. You can contact me at
john [at] tuxation.com

 

Copyright (c) 2007-2008 by John Altenmueller