2.5 CD Installation - Post-install cleanup

/tmp and /var/tmp are both often used as temporary directories. Since use is not consistent from application to application, it is worthwhile to create /tmp as a link to /var/tmp so space is not wasted in duplication.

      # chmod 1777 /mnt/tmp
      # rm -fr /mnt/var/tmp
      # ln -s /tmp /mnt/var/tmp

Note: /tmp will not work until the computer is rebooted.

The file /etc/fstab describes the disk partition layout. However, the version copied to the target disk only reflects the Live CD layout. The installed /mnt/fstab.example can be used as a starting point for creating a new /etc/fstab.

      # vi /mnt/etc/fstab.example
      # mv /mnt/etc/fstab.example /mnt/etc/fstab

A corrupted disklabel will render a disk useless. While this is thankfully very rare, having a backup of the new install's disklabel may stave off disaster at some point in the future. This is optional. (Adjust the slice name to reflect the actual installation.)

      # disklabel ad0s1 > /mnt/etc/disklabel.backup

Note: Nothing is copied to the /tmp directory that was created in the previous step. This is not an error, since /tmp is intended only for temporary storage.

Remove some unnecessary files copied over from the Live CD.

      # rm /mnt/boot/loader.conf
      # rm /mnt/boot.catalog
      # rm -r /mnt/rr_moved

The system can now be rebooted. Be sure to remove the Live CD from the CDROM drive so that the computer can boot from the newly-installed disk.

      # reboot

Note: Use the reboot command so that the disk can be unmounted cleanly. Hitting the power or reset buttons, while it won't hurt the Live CD, can leave the mounted disk in a inconsistent state.

If the system refuses to boot, there are several options to try:

After a successful boot from the newly installed hard drive, the timezone should be set. Use the command tzsetup to set the appropriate time zone.

      # tzsetup

Contact the Documentation mailing list for comments, suggestions and questions about this document.