installs

Suse 9.0/FreeBSD 4.9 x86

February 2004

Security Labs
Department of Information Technology
Rochester Institute of Technology
Rochester, New York

Desktop Configuration

Intel 731 MHz
v512 MB RAM
5.85 GB HDD
Realtek 8129/8139 PCI Ethernet Card

Pre-installation Steps

FreeBSD must exist in a primary partition on the hard drive, and never on an extended partition. D. J. Bernstein provides his documentation of dual boot installation of KRUD and FreeBSD 4.8 on an IBM T40 model. GNU/Linux had to be installed first. I had to make boot floppy images to boot from them as we don't have permission to enter the BIOS in these labs. I made the following "boot floppy images" for SuSE 9 (the floppy images are available in CD1 under the boot directory):

    * bootdisk
    * modules1

For FreeBSD 4.9, I made the following "boot floppy disk" images (which are available in CD1):

    * kern.flp
    * mfsroot.flp

I proceeded with installing GNU/Linux first.

SuSE Linux 9.0 Installation

I inserted SuSE Linux CD1 and the bootdisk floppy image and rebooted the machine. The installation began. I chose English for installation language. My partitioning scheme is as follows:

 Partition  Start  End  Id  System
 /dev/hda1  1  66  82  Linux Swap
 /dev/hda2  67  328  83  Linux

I gave 512MB for swap space and 2 GB memory for "/" filesystem. The remaining free space is to be used for FreeBSD. I then chose the software packages to be installed. Default grub bootloader settings were accepted. I proceeded to begin the installation. After CD1 finished, the system updated the cache and rebooted. It then asked me to insert CD2. After CD2 installation completed, I had to add user information. After completion, I logged into the SuSE system. The /etc/fstab file contents are as follows:

 /dev/hda2  /  reiserfs  defaults  1  1
 /dev/hda1  swap  swap  pri=42  0  0
 devpts  /dev/pts  devpts  mode=0620,gid=5  0  0
 proc  /proc  proc  defaults  0  0
 /dev/hdd4  /media/zip  auto  noauto,user  0  0
 /dev/cdrom  /media/cdrom  auto  ro,noauto,user,exec  0  0
 /dev/fd0  /media/floppy  auto  noauto,user,sync  0  0

SuSE Linux was successfully installed. The hard disk has free space at the end.

FreeBSD UNIX 4.9 Installation

I booted the machine after inserting FreeBSD CD1 into the CD-ROM drive and kern.flp floppy disk into the floppy drive.

It then asked me to insert the mfsroot.flp floppy disk. After copying the images, it asked me to press "Enter" to boot with the kernel. It then launched the kernel configuration menu.

Selected the Start kernel configuration in full-screen visual mode.

Entered this mode to check and make sure I didn't have any driver conflicts. There were no conflicts.

Pressed Q to save and exit. It then took me to the Sysinstall Main Menu.

Entered the Options tool to enter the options editor and changed DHCP value to "Yes" and NFS Secure value to "Yes".

Pressed Q to quit.

It returned me to the Sysinstall Main menu and I proceeded to choose the Standard option for installation. It took me to the Fdisk Partition editor.

Installation is for the free disk space at the end. I highlighted the free disk space and pressed C to create the slices.

I then pressed S to make the slice bootable. The Flags will automatically be updated, by adding an A next to the C Flag.

Pressed Q to finish and exit the disk partitioning.

It took me to the Boot Manager installation menu and I chose to Leave the Master Boot Record untouched. It then took me to the FreeBSD Disklabel Editor where I had to create partitions for the slice.

Pressed A to create auto default partitions.

Pressed Q to finish.

It then took me to the package installation menu.

Selected All to install all the system sources, binaries and X Window system.

Pressed Yes for installing the portage collection.

Chose Exit to exit from the package distribution menu. It then took me to the Installation Medium menu and I chose CD/DVD.

I then pressed Yes to commit with the installation. Installation started. It took about 10 minutes to complete.

Started with configuring the network card. It detected the realtek card as rl0.

Selected No to try IPv6 configuration for the interface. Used DHCP to obtain an IP address.

Chose No for network gateway, Internet services, anonymous FTP, NFS server, NFS client.

Security settings were configured to Medium.

Selected No for customizing system console settings.

Set the Timezone by selecting America -- North and South -> United States -> Eastern Time.

Enabled Linux binary compatibility by clicking Yes.

Chose Yes for the non-USB mouse and tested it by running the mouse daemon in option 2 Enable. It worked by default.

Additional network services configuration was skipped.

Configured X and installed the KDE X window manager.

Installed All software packages.

A User ID was added.

Selected Exit to exit the menu.

It then prompted to enter a root password. After entering a password, it returned to the sysinstall main menu. I chose X Exit Install to exit the menu and to reboot.

I rebooted into Linux, as that was the only option. I had to add FreeBSD to grub config so that I will have an option to boot into FreeBSD. As root, I edited the /boot/grub/menu.lst file in Linux and added the following lines for FreeBSD:

###Title FreeBSD 4.9###
root (hd0,2,a)
kernel /boot/loader

I saved the file and rebooted. On reboot, FreeBSD option is shown by grub and I was able to boot into FreeBSD. The contents of the /etc/fstab file in FreeBSD is as follows:

 device
 mountpoint  FSType  Options  Dump  Pass
 /dev/ad0s3b  none  swap  sw  0  0
 /dev/ad0s3a  /  ufs  rw  1   1
 /dev/ad0s3f  /tmp  ufs  rw  2  2
 /dev/ad0s3g  /usr  ufs  rw  2  2
 /dev/ad0s3e  /var  ufs  rw  2  2
 /dev/acd0c  /cdrom  cd9660  ro,noauto  0  0
 proc  /proc   rw  rw  0  0

Installation was successful for FreeBSD and dual boot was setup!