Thursday, June 7, 2007

Installing FreeBSD

Installing FreeBSD

Applicable to: FreeBSD 6.x (i386)

This Sheet describes the procedure for installing FreeBSD. Before performing this procedure, you should review the FreeBSD Handbook article Installing FreeBSD.

  1. Inventory your computer hardware and ensure that it is compatibile with FreeBSD. The current compatibility list can be found in the FreeBSD/i386 Hardware Notes.
  2. Click here to view Luna's hardware configuration
    Click here to view Pandora's hardware configuration
    Click here to view Sentinel's hardware configuration

  3. Insert FreeBSD CD #1 in the CD drive and turn on the computer.
  4. You may need to go into the computer's system configuration and enable the CD drive as a boot device, or change the boot order so that the computer boots to the CD first.

    If your computer cannot boot from the CD drive, follow the instructions listed in the FreeBSD Installation Instructions for creating boot floppies.

  5. If you are using a USB keyboard, choose the 'Boot FreeBSD with USB keyboard' option at the boot menu. (If you don't, your system will be non-responsive. Trust me...)
  6. Note: If you are installing FreeBSD 5.x with a USB keyboard, choose the 'Escape to loader prompt' option at the boot menu, then enter the following commands:

    OK set hint.atkbd.0.flags="0x1"
    OK boot

  7. If you wish to set up two hard drives as a RAID-1 mirroring drive system, perform the following:
    1. From the main menu, choose 'Fixit' to get a shell prompt.
    2. Determine which devices are your hard drives:
    3. # atacontrol list

      You should see something similar to:

      ...
      ATA channel 2:
      Master: ad4 Serial ATA v1.0
      ...
      ATA channel 4:
      Master: ad8 Serial ATA v1.0
      ...

      In this example, the two drives which will be mirrored are ad4 and ad8.

    4. Create the mirror array:
    5. # atacontrol create RAID1 ad4 ad8

    6. After the array has been created, you can check the status using atacontrol:
    7. # atacontrol status ar0

      The response should be:

      ar0: ATA RAID1 subdisks: ad4 ad8 status: READY

    8. To return to the Main Menu, enter:
    9. # exit

      At the main menu, choose 'Exit Install' to reboot the computer. After the computer reboots, the array device ar0 will be available for installing FreeBSD.

  8. From the main menu, choose the 'Standard' installation.
  9. In the FDISK Partition Editor, choose 'A' to use the entire disk. Choose 'S' to make this partition the boot partition. Press 'Q' to continue.
  10. At the "Install Boot Manager" prompt, choose the appropriate boot manager. This procedure assumes that FreeBSD is the only operating system, so choose the 'Standard' master boot record.
  11. In the Disklabel Editor, create the following partitions:
    ar0s1a   /      512MB as UFS2
    ar0s1b swap 2048MB as swap (4x system RAM)
    ar0s1d /var 4096MB as UFS2 + Softupdates
    ar0s1e /usr remaining as UFS2 + Softupdates
  12. Choose 'Q' to continue.

  13. Choose Distributions:
    • Developer
    • Ports
    • Custom Distributions: Games

    Choose 'OK' to go to next menu.

  14. Choose installation media. In this case CD/DVD.
  15. At the 'Last Chance' warning, choose "YES."

(At this point the System will install...)

  1. You will be prompted for several miscellaneous configuration options:
    1. Ethernet device 'bge0':
      • IPv6 Config: No
      • DHCP: No
      • Host: machine_name.your_domain.tld
      • Domain: your_domain.tld
      • IP Address: 10.70.153.1
    2. Warning: If your network card is not included in the generic kernel, do not bring up the interface!
    3. Gateway: No
    4. inetd: Yes
    5. ssh: Yes (there is some follow-up in Post-Install Cleanup)
    6. Anonymous FTP: No
    7. NFS Server: No
    8. NFS Client: No
    9. Customize console: Fast repeat rate
    10. Time Zone: Local, not GMT. (set to your time zone)
    11. Linux Binary support: No
    12. Mouse Configuration: No (or set to your mouse, if you're using one)
    13. Packages: No
    14. Additional users: No (Add users after Post-Install Cleanup)
    15. Set 'root' password: ******
  2. Exit install.

(System reboots...)

1 comment:

Unknown said...

You need to choose cdrom under fixit else the atacontrol list command does not work. Took me some time to figure that out :)