This page is a description of the FreeBSD operating system in contrast to
other systems I am familiar with such as Linux.
Most of FreeBSD's bootstrap and configuration scripts are located in the
"/etc" directory in contrast to Linux having most configuration scripts
located in "/etc/rc.d/" and for RedHat "/etc/sysconfig/".
-----------------------------------------------------------------------------
Devices "/dev":
Ethernet:
"/dev/ed0", "/dev/ed1"
Serial:
"/dev/cuaa0", "/dev/cuaa1"
IDE Hard disks:
"/dev/wd0", "/dev/wd1", etc..
CDROM:
"/dev/acd0a"
Floppy:
"/dev/fd0" or "/dev/da0"
To preserve or backup the MBR of disk0 to a floppy:
dd if=/dev/ad0 of=/dev/fd0 bs=512 count=1
To restore the FreeBSD boot manager (boot0):
boot0cfg -B ad0
-----------------------------------------------------------------------------
To enable IP Packet forwarding you'll need to edit the /etc/rc.conf file.
This file contains overrides of the defaults in /etc/defaults/rc.conf.
The default gateway setting is controlled by the line
gateway_enable="NO"
in that file. To override it, add a line like
gateway_enable="YES"
-----------------------------------------------------------------------------
#/etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s2b none swap sw 0 0
/dev/ad0s2a / ufs rw 1 1
/dev/ad0s2f /usr ufs rw 2 2
/dev/ad0s2e /var ufs rw 2 2
/dev/acd0a /cdrom cd9660 ro,noauto 0 0
#/dev/wcd0c /cdrom cd9660 ro,noauto 0 0
/dev/da0 /floppy msdos rw,noauto 0 0
proc /proc procfs rw 0 0
sapphire:/mnt/cdrom /nfs/cdrom nfs ro,intr,soft,noauto 0 0
sapphire:/mnt/cdrw /nfs/cdrw nfs ro,intr,soft,noauto 0 0
sapphire:/mnt/cdrw /cdrom nfs ro,intr,soft,noauto 0 0
-----------------------------------------------------------------------------
Mount partition 1:
mount -t msdos /dev/ad0s1 /mnt
Mount partition 2, slice a:
mount -t ufs /dev/ad0s2a /mnt