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.
- 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.
- Insert FreeBSD CD #1 in the CD drive and turn on the computer.
- 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...)
- If you wish to set up two hard drives as a RAID-1 mirroring drive system, perform the following:
- From the main menu, choose 'Fixit' to get a shell prompt.
- Determine which devices are your hard drives:
- Create the mirror array:
- After the array has been created, you can check the status using atacontrol:
- To return to the Main Menu, enter:
- From the main menu, choose the 'Standard' installation.
- 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.
- 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.
- 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 - Choose Distributions:
- Developer
- Ports
- Custom Distributions: Games
Choose 'OK' to go to next menu.
- Choose installation media. In this case CD/DVD.
- At the 'Last Chance' warning, choose "YES."
Click here to view Luna's hardware configuration
Click here to view Pandora's hardware configuration
Click here to view Sentinel's hardware configuration
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. |
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
# atacontrol list
You should see something similar to:
...
ATA channel 2:
Master: ad4Serial ATA v1.0
...
ATA channel 4:
Master: ad8Serial ATA v1.0
...
In this example, the two drives which will be mirrored are ad4 and ad8.
# atacontrol create RAID1 ad4 ad8
# atacontrol status ar0
The response should be:
ar0: ATA RAID1 subdisks: ad4 ad8 status: READY
# 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.
Choose 'Q' to continue.
(At this point the System will install...)
- You will be prompted for several miscellaneous configuration options:
- Ethernet device 'bge0':
- IPv6 Config: No
- DHCP: No
- Host: machine_name.your_domain.tld
- Domain: your_domain.tld
- IP Address: 10.70.153.1
- Gateway: No
- inetd: Yes
- ssh: Yes (there is some follow-up in Post-Install Cleanup)
- Anonymous FTP: No
- NFS Server: No
- NFS Client: No
- Customize console: Fast repeat rate
- Time Zone: Local, not GMT. (set to your time zone)
- Linux Binary support: No
- Mouse Configuration: No (or set to your mouse, if you're using one)
- Packages: No
- Additional users: No (Add users after Post-Install Cleanup)
- Set 'root' password: ******
Warning: If your network card is not included in the generic kernel, do not bring up the interface! - Ethernet device 'bge0':
- Exit install.
(System reboots...)
1 comment:
You need to choose cdrom under fixit else the atacontrol list command does not work. Took me some time to figure that out :)
Post a Comment