This page contains some notes about the steps the BSDInstaller takes to prepare disks before installing FreeBSD.

Current Version

Steps:

  1. Select the disk to install to
  2. Format the disk
    1. Check the disk geomentry
    2. Runs Storage.Disk.cmds_format:
      1. fdisk -I <raw_device_name>

      2. echo "g c<cylinders> h<heads> s<sectors>" > format.fdisk

      3. echo "p 1 <sysid> <sectors> <size>" >> format.disk (size = disksize - sectors)

      4. echo "p 2 0 0 0" >> format.disk

      5. echo "p 3 0 0 0" >> format.disk

      6. echo "p 4 0 0 0" >> format.disk

      7. echo "a 1" >> format.disk

      8. fdisk -v -f format.disk <device_name>

      9. fdisk <device_name>

      10. yes | fdisk -B <devide name>

  3. Slice the disk
    1. Foreach slice add it to the table of slices to create
    2. Runs Storage.Disk.cmds_partition:
      1. echo "g c<cylinders> h<heads> s<sectors>" > new.fdisk

      2. Foreach slice (up to 4)
        1. echo "p <number> <sysid> <start> <size>" >> new.disk

      3. echo "a <active_part>" >> new.fdisk

      4. fdisk -v -f newfdisk <device_name>

      5. fdisk <device_name>

  4. Install Bootblocks
  5. Select the slice to install to
  6. Select Partitions to create
  7. Additional Filesystems

BSDInstaller/PrepareDisk (last edited 2008-06-17 21:37:36 by localhost)