Adding New Disk

From MediaWiki

Jump to: navigation, search

Adding A New Drive in FreeBSD

About time to document how to add a new disk and move the OS to it. Bigger hard disks keep coming around and each time I keep reinventing the wheel.

Overview

Install GRUB as the boot loader on the current disk. Its a lot easier to work with than the default BSD loader in case of trouble. Make this as step one prio.

Add the new disk as a slave to the existing disk configuration and create a primary parition using "fdisk". Create two slices via "bsdlabel" for swap and / as a bare minumum. Mount it as "/mnt/newdisk". CVSup to latest sources and do a "installworld" with the DESTDIR=/mnt/newdisk set. Update the MBR of newdisk with "boot0cfg". Populate fstab, rc.conf etc.

Reboot into the new drive using the grub options and test new install. After things check out OK,change fstab on newdisk to point to the correct devices and promote it to master. Jumper the old disk as slave.

If the drives are a combination of SATA/IDE, the boot order can be changed via the BIOS.

Steps

  • *TODO*
Personal tools