Dual-Booting FreeBSD with Linux

Well, my other post outlined my first experiences with FreeBSD installation and setup. This post regards my dual-boot setup with Crunchbang Linux. If you run Linux and want to also try FreeBSD, this post may provide you with some insites and some basic information. I am very new to BSD and have relied heavily on the feedback from other BSD users.

Also, with Linux/Unix there is always more than one way to skin a cat. They way I have done things may not be the best way, but they work for me. I have learned a lot in the last week, and am very comfortable using a BSD system now. There is a learning curve, but nothing a Linux user can’t handle without the help of Google, The FreeBSD forms and the BSD users on Fossunet.

What system am I using?

Acer  Aspire 3004
AMD Mobile Athlon 32bit 3000+ (1.8Gb)
1Gb RAM
Sis Graphics card (64Mb)
Broadcom Wireless Network Card
1280X800 Widescreen Monitor

It has an 80Gb harddrive which is split into two partitions.

Partition 1: Has Crunchbang Statler installed on Ext3 inside an Extended partition which also has 1Gb Swap.

Partition 2: Has a single slice with FreeBSD 8 installed and also has its own Swap partition.

The Installation

Partitions and Grub2 Bootlader

Linux on the first partition with Grub2 installed to MBR. FreeBSD on the second partition with no Boot Loader as we will just add it to Grub2 from Linux.

I booted to Linux, opened Gparted, and deleted the spare 40Gb partition to leave 40Gb of free space. This will be used by FreeBSD as it asks you where to install itself.

Install FreeBSD from the PcBsd netinstall iso, see my other post for more info: HERE but the only thing you need to make sure of is that you choose FreeBSD, No PcBsd Bootloader and only install BSD-Ports as an extra package.

Add FreeBSD to Grub2

Grub2 has special files that you can add “Custom” additions such as un detected Linux OS’s and Unix based systems such as FreeBSD.

sudo nano /etc/grub.d/40_custom

And add this (remember I have only two partitions)

menuentry "freebsd 8.0" {
set root=(hd0,2)
chainloader +1
}

Now you have to update Grub2 so that it retrieves that info and you can now boot to FreeBSD

sudo update-grub

First Steps With Your FreeBSD system

More to come………

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s